Question:
Hi,
I would like to run an abap program in background after a process order has been saved (transactions COR1-COR2).
In the save exit (EXIT_SAPLCOZV_001) of the process order, I create the job that will run the abap program. after the process order is saved
I created an event with SM62 but I do not know how to set it up.
Or may be there is another solution.
Thanks for your help.
Answer:
In your user exit you need the call fuction BP_EVENT_RAISE with the event name you just created and it will run the job. Hope this heps.
ex:
call function 'BP_EVENT_RAISE'
exporting
eventid = 'Z_COR1_EXEC' "<--- EVENT NAME
eventparm = ' '
* TARGET_INSTANCE = ' '
exceptions
eventid_does_not_exist = 1
eventid_missing = 2
raise_failed = 3.