2014 Jun 26 6:00 AM
Hi experts,
Can anyone give me a example of event oriented program execution..
it ll be helpful for me ..
Thanks
Hi Niraj,
Can you elaborate on your question? As of my knowledge, ABAP is already executing programs based on events, for reports as well as module pool programs. So can give a clearer idea.
Regards,
Abijith
2014 Jun 26 6:09 AM
Hi Niraj,
Can you elaborate on your question? As of my knowledge, ABAP is already executing programs based on events, for reports as well as module pool programs. So can give a clearer idea.
Regards,
Abijith
2014 Jun 26 6:28 AM
Hi Niraj,
We can create events using transaction SM64 and it can be triggered using the following method.
1) A background job needs to be defined and configured to wait for the event.
2) Hence you create a background job via SM36 and specify the new event name as the "Start Condition".
3) To trigger an Event for a Batch job you can use the function module 'BP_EVENT_RAISE'.
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
EVENTID = EVENT_NAME
EXCEPTIONS
BAD_EVENTID = 1
EVENTID_DOES_NOT_EXIST = 2
EVENTID_MISSING = 3
RAISE_FAILED = 4
OTHERS = 5.
If your question is related to Business object events please refer the below link
http://wiki.scn.sap.com/wiki/display/Snippets/Trigger+a+Business+Object+Event
Thanks & Regards,
Nandakumar
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |