cancel
Showing results for 
Search instead for 
Did you mean: 

Badi BBP_CREATE_BE_PO_NEW is not getting trigger when Creating PO from SOCO.

Pratik2228
Participant
0 Kudos

Hi ..

I have a requirement to Change Po details when passing the PO to ECC.

I have Implemented Badi BBP_CREATE_BE_PO_NEW but when i place a break point in BADI , it does not get trigger when i create a PO from SOCO.

Please give clue than is there any way to trigger this badi, or its another way to enhance the the PO data while it create PO in ECC.

Thanks In Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

This BAdI will be triggered in Classic Scenario only, i.e., when shopping cart creates PO in ECC directly (there is no SRM PO).
This BAdI is called in background, right after workflow is completed.
What you can do is to create a shopping cart in saved status.
Then take its header GUID and use it as input of function BBP_PD_SC_TRANSFER.
Breakpoint should stop now.

Regards,
Ricardo

Pratik2228
Participant
0 Kudos

Hi Ricardo,

I have kept the SC in Save Status and passed the header GUID in FM : BBP_PD_SC_TRANSFER.

but break point did not stopped.

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

You mentioned that you are trying to create PO from SOCO.
The best approach to test your BAdI is to skip the SOCO customizing when running BBP_PD_SC_TRANSFER.
Because when running this function and SOCO customizing is done, cart will be sent to SOCO again (SOURCE_REL_IND will be set to X).
Therefore, there is no PO creation.

Please, remove the sourcing customizing (to never be carried out), set the BP and create a shopping cart with fixed vendor.

Now your breakpoint should stop.

Regards,
Ricardo