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 asynchron in program

Former Member
0 Likes
368

Hi,

i would like to know if it's possible to do that : in my program i launch a background job and when this job finished an event is triggered and i would like to catch this event in my program.

Thanks for your help.

1 REPLY 1
Read only

Former Member
0 Likes
325

Hi ToraTora,

well, you may program a background job with two steps:

- first one, the program you'd like to run

- second one, one simple program that calls function 'BP_EVENT_RAISE' (sorry, it's obsolete, try "CALL METHOD cl_batch_event=>raise" instead)

One workaround could be:

- the last task of your background job is updating a Z table with a value

- on your program, read this table. If it's populated, delete the content, and perform the action you want.

I hope it helps. Kind regards,

Alvaro