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

Update Method in BADI Implementation Triggering twice

Former Member
0 Likes
1,021

Hello Friends,

I implemented BADI BADI_LE_SHIPMENT and  using IN_UPDATE method. I put my code in IN_UPDATE method.

My requirement is to create a new task in separate session after shipment is saved. In new session(FM new task) we are updating billing docs and sending outputs and DRP. It works fine but not all the times .

When an Sales Order is locked , and shipment is saved, implementation is called twice. Triggering two new sessions and executes the FM in each session.

I tried  setting flag with Class variable ,  export/import to memory options. It did not work .

Could you please help me how to restrict implementation execution for the second time which stops triggering the FM in new task for the second time.



Thanks.

Krishna

1 REPLY 1
Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
621

Hi Krishna,

The variable IM_SHIPMENTS_IN_UPDATE-FLAG_TRA_COMPLETE is shipment complete indicator.

The below are the values for this variable

  • A         Shipment data incomplete
  • B         Changed shipment data complete, incomplete data missing
  • C          All shipment data complete and available
  • Space   No statement on completeness

Please check the values in variable IM_SHIPMENTS_IN_UPDATE-FLAG_TRA_COMPLETE in debugging mode.

Thanks

-Learner