07-23-2010 6:48 AM
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
07-23-2010 7:08 AM
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
07-23-2010 7:08 AM
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