Hello Everyone,
I would like to share my knowledge on how to create a background job and call it using a background event from the abap program. I have provided the steps and screen shots in the document.
Creating a Background Event
- Go to SM64 Transaction.
- Click on create button.
- Enter the Event Name and a Description.
- Save it.
Event is now created.
Refer screenshots below.
Creating a background Job and calling it using the Background Event from the ABAP program
Creating an ABAP program
- Go to SE38.
- Create a program and a variant.
- Call the background event using the function module ‘RP_EVENT_RAISE’ in the abap program.
Now create a background job.
- Go to SM36.
- Enter the job name and click on start condition.
- In the pop up window click on ‘AFTER EVENT’
- Enter the event name and click on SAVE.
- Now click on the ‘STEP’ from the background job window.
- Enter the name of the abap program and the Variant name of the program.
- Click on SAVE.
- Refer the below screen shots.
Thanks & Regards,
Santhosh A