cancel
Showing results for 
Search instead for 
Did you mean: 

How do debug BBP_ECS_PO_OUT_BADI?

Former Member
0 Kudos

Hi Experts.

SRM 4.0, backend ECC 6.0.

I know how to debug in SRM using the web-debugger, but has anyone tried to debug this BAdI? As far as I can tell when debugging the creation of a shopping cart, this function is called after this. I cannot reach this, so how would you debug it? Any ideas would be highly appreciated.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

pvanhoove
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

This badi is called in an update process, you cannot debug it in web gui.

But you can debug it in sapgui by calling the function trnsferring the PO to ECC: BBP_PD_PO_TRANSFER_EXEC_V2.

Rgds,

Pierre

Former Member
0 Kudos

Thanks, that actually helped me a bit. Here is my real issue:

In my dev system I have made some changes within the BBP_ECS_PO_OUT_BADI - this works fine in Dev, where this BAdI then updates a field in R/3.

But in my QA system this does not work at all - however, when I then test the BBP_PD_PO_TRANSFER_EXEC_V2 with the GUID of a purchase order not correct, I can see through debugging that this is working fine, and the purchase order in R/3 is also correct. But why do I need to run the FM manually before the PO in R/3 is correct, could something be missing? Any ideas, anyone?

Former Member
0 Kudos

According to Note 828231 it is possible to debug the BAPI_PO_CREATE1 by debugging the FM BBP_PD_PO_TRANSFER_EXEC_V2, but I have not succeeded in this? Has anyone been able to debug the BAPI_PO_CREATE1?

Former Member
0 Kudos

Hi Denis,

If you want to debug BAPI_PO_CREATE1 just automatically create test data for this FM /BAPI (accessable thru SE37 >> test data button). You can the SAP system let it fill automatically with data coming from an SRM PO (fbgenmac).

Alternatively, you can put an endless loop in your BADI BBP_ECS_PO_OUT and debug it starting from SM50 (take process that keeps hangs in your endless loop).

I don't think you will end up in the BAPI, but you will be able to debug the SRM badi.

Hope this helps,

Best regards,

Kristof