‎2005 Sep 12 7:01 PM
Hai all,
I need to raise an event soon after the completion of a data load in BW. I am using this in a process chain. All I need is that command goes to a program and the program should raise an event. I have the following code. Can somebody help me in building my code?
I have the following. Please correct me if I am wrong.
call function 'BP_EVENT_RAISE'
eventid = 'p_event'.
if sy-subrc = 0.
Message S007(zfn) with text-001 'EVENT RAISED'.
else.
Message E007(zfn) with text-002 'EVENT RAISING FAILED'.
end if.
Thank you very much.
‎2005 Sep 12 8:00 PM
Where are you raising this event? You want to raise this event in data load program of BW and once the event is raised, you want another program to start. If that is true, then you need a background job defined for this other program which will start when this event is triggered.
Rasing the event looks ok.
Srinivas
‎2005 Sep 12 8:38 PM
Hai Srinivas,
Thansk for the reply. I have a job that runs before this and a job after this. The only thing is that I need to be clear with the code. I guess I can see this event once raised in sm37 right? From your reply I assume the code is good. Is it? An suggestions?
Thanks.
‎2005 Sep 12 8:51 PM
If they run in background jobs, then why don't you simply add them as steps of the same job?
I need some clarifications. You have your dataload program A. Now you need one program B to run before A and another one C to run after A. Is this what you want?
Please let me know.
Srinivas
‎2005 Sep 16 4:11 AM
Did the answers help you? Can you please close the post if resolved?
Thanks,
Srinivas