Application Development 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: 

background job using event trigger

Former Member
0 Kudos

Hi all,

i wants to update batch when i release and save the process order.i am using badi workorder_update ,in that i am not able to use the bapi_batch_change directly because it has commit work and it is giving me dump if i use the bapi so now i had written bdc in that ,but this is also not working as the batch tables are locked....

now i am planning to write report program and schedule it as background and will trigger based on event whihc i do it in the badi again.now my question is the user will be releasing the order so when i want to trigger the program in bg job i have to pass the materila and plant using parameter ids will this work as bg job will have wf-batch as user...please suggest..

Babita

1 ACCEPTED SOLUTION

former_member585060
Active Contributor
0 Kudos

Hi,

You can do it by below way,

1) Create an Event in Transaction SM62.

Select User Events Names Maintain Radio button

Create an Event

2) In BADI, call the Function module BP_EVENT_RAISE, with the event name and the Parameters(Material & Plant) in Event Param parameter. It will trigger the backgound job.

Regards

Bala Krishna

1 REPLY 1

former_member585060
Active Contributor
0 Kudos

Hi,

You can do it by below way,

1) Create an Event in Transaction SM62.

Select User Events Names Maintain Radio button

Create an Event

2) In BADI, call the Function module BP_EVENT_RAISE, with the event name and the Parameters(Material & Plant) in Event Param parameter. It will trigger the backgound job.

Regards

Bala Krishna