Hi Iira ,
Since you made changes to your Transformation ie added new code as end routine . Your transformation and DTP got Inactive .
I would suggest that you please re-activate the DTP . Collect the Transformation and DTP together in one Transport request and move it to the Production this time . Your issue will be resolved .
Since your DTP was in Modified Version you need to retransport together this time . Let me know how that goes ?
Regards
Zeenath