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

BADI for SAP EWM after Confirm and save WT in program /SCWM/SAPLUI_TO_CONF

acetedi
Participant
0 Kudos
3,308

Hello All,

I have a requirement where I need to update my custom table after confirm and save warehouse task in program /SCWM/SAPLUI_TO_CONF.

I have tried using BADI /SCWM/IF_EX_CORE_CO_POST, which based on the definition "BAdI: Posting of Confirmed Warehouse Tasks" however when I tried to click on Confirm + Save button it's not getting trigger.

acetedi_0-1723629638932.png

Is there another way to find this BADI, or can you suggest which BADI I should use?

Best Regards,

Tedi

5 REPLIES 5
Read only

DominikTylczyn
SAP Champion
SAP Champion
3,291

Hello @acetedi 

That is the right BAdI. Most probably it is called in an update task. That is why you might have problems debugging it.

Best regards

Dominik Tylczynski

Read only

0 Kudos
3,250

Hello Dominik,

Thank you for your reply. I still don't understand how to access this BADI when I can't debug it?

From my understanding, I need to create an implementation of this BADI (/SCWM/IF_EX_CORE_CO_POST). However, how can I ensure that my code is correct if I can't debug it? Could you please provide some advice on this? Thank you.Best Regards

Tedi

Read only

acetedi
Participant
3,218

I solved this problem. The BADI wasn't triggered because new data is required before the WT is confirmed. The program skips this BADI under certain conditions, such as when the WT is confirmed.

Thank you again, @DominikTylczyn, for confirming that this is the correct BADI.

Best regards,
Tedi

Read only

0 Kudos
2,466

Hello Tedi,

I'm having the same issue as you.
Could you point me to the code section where those conditions are checked?
Thanking you in advance, looking forward to your answer.

Best regards,
Mattia

Read only

0 Kudos
1,859

Dear Mattia,

You can use the BAdI /SCWM/EX_CORE_CO_POST and set a breakpoint in the method /SCWM/IF_EX_CORE_CO_POST~POST. In the program, click the Confirm + Save button, then activate debugging with /h and set a breakpoint at the 'call function in update task' statement. Ensure you use the correct data or a warehouse order that has not yet been confirmed. Also, configure the debugger settings accordingly.

acetedi_1-1738512255333.png

 

acetedi_0-1738511964270.png

Best Regards,

Tedi