Hi Nitin,
if it is a custom table then you can use events in TMG........
to do so go to SE11-> generate TMG -> from environment -> go to modifications->Events.
Create new entries and select the required event number....and create routine.......write the required logic and save it activate it.........
--
Jack