Application Development and Automation 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: 
Read only

event-oriented program execution

Former Member
0 Likes
498

Hi experts,

Can anyone give me a example of event oriented program execution..

it ll be helpful for me ..

Thanks

2 REPLIES 2
Read only

former_member196651
Contributor
0 Likes
455

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

Read only

nandakumar_sasidharan
Product and Topic Expert
Product and Topic Expert
0 Likes
455

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