Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To Run ABAP Program Automatically..

Former Member
0 Kudos
630

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

3 REPLIES 3

Former Member
0 Kudos
106

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

kiran_k8
Active Contributor
0 Kudos
106

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.

Former Member
0 Kudos
106

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...