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

Help with code

Former Member
0 Likes
569

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.

4 REPLIES 4
Read only

Former Member
0 Likes
542

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

Read only

0 Likes
542

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.

Read only

0 Likes
542

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

Read only

0 Likes
542

Did the answers help you? Can you please close the post if resolved?

Thanks,

Srinivas