‎2010 Mar 17 7:30 AM
Hi Friends,
I have a program : ZXXXX.
I have requirement that whenever user adds an entry to the table : ZYYY(i.e when a new entry is added for the table : ZYYY),the program ZXXXX has to be processed in background mode.
Please suggest how we can achieve this requirement.
Regards,
Sree
‎2010 Mar 17 7:40 AM
If you have a maintenance view for the table maintenance modify the event 02 after save to call your program
‎2010 Mar 17 7:40 AM
Hi,
Create table maintenence generator for ZYYY.
Then go to table maintenence generator -> environment -> modifications -> envents
Click on new entries.
Give event type as 05.Give routine name and click on create option.
It will take you to that routine.
In this routine call program ZXXXX using SUBMIT statement. It will execute your probram in background mode for every new entry.
Thanks.
‎2010 Mar 17 7:59 AM
Hi Sreeram,
You can use the venets in Ztable.
You can make use of On Save event.
Whe ever user enters a new entry and clicks on Save ....your program will get triggered in teh background.
To execute a program in Background.
1) CALL TRANSACTION... IN BACKGROUND TASK with the function module actually submitting the report OR
2) SUBMIT report... VIA JOB.. AND RETURN with use of the JOB_OPEN and JOB_CLOSE function modules
For Reference :-
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609
Regards,
Kittu
Edited by: Kittu on Mar 17, 2010 9:06 AM