2007 Sep 05 10:22 AM
Hi,
I Have Written ABAP Program that should run automatically in background,when there is new record inserted in the Table "ZABC"
the Program Should Trigger the Record Which is Inserted in the Table and execute it in background automatically.
How can We trigger such type of things..
Points will be awarded.
Regards,
Jayasimha Jangam
2007 Sep 05 10:26 AM
Hi,
Can u provide the information on fields of Z-table.does having any date and time fields in z-table.
With regards,
K K V
2007 Sep 05 10:30 AM
Jayasimsha,
Frist you can have a variable which stores the no.of records in the ztable.Then you can check sy-subrc for the change in no.of records,if there is any changes you can schedule the desired program for a background job else not.
Try.
K.Kiran.
2007 Sep 05 10:34 AM
although there is no provision in sap for triggers on dictionary tables....you could create one on the underlying database table...
if you still want to go with it...i guess you will have to call your program at every place where you are inserting some value in the table ...this is a dirty solution i know but .....sometimes we may need to use these things..
have a look at this thread if it helps you...