Hi,
If you have written the code in End Routine, then you have to make the setting update all fields, check if data is coming in new data table and when you activate data is not coming in end routine, this is due to the setting that you have to maintain in transformation.
Let me know if that is the case, I will let you know the setting, by pasting the screen shot.
Regards,
Mayank