cancel
Showing results for 
Search instead for 
Did you mean: 

Get SC detail in PO BAdI

Former Member
0 Kudos

Hi all.

SRM 4.0.

In the BAdI BBP_ECS_PO_OUT_BADI I need to bring in some details from the shopping cart related to the PO. How would I do this from here? I need to retrieve the currency from the shopping cart, and was thinking about using the FM BBP_PD_SC_ITEM_GETDETAIL, but I am not sure how to link this with the exact SC? How can I link the FM in the BAdI for the PO to retrieve the SC details?

Thanks for input.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member206968
Active Contributor
0 Kudos

Hi Dennis,

Its easy. You just need to query table bbp_pdbei with PO number in be_object_id field and BU2201 in be_object_type field.You will get all the SC item guids.You can use the item guids to get the SC detail directly using FM BBP_PD_SC_ITEM_GETDETAIL.

Hope it helps

Thanks

Sanjeev

Former Member
0 Kudos

Hi,

You can use BBP_PD_PO_GETDETAIL to retrieve the SC linked in the table E_HEADER_REL (OBJTYPE_A = BUS2121)

and after you can use the BBP_PD_SC_GETDETAIL to retrieve the currency

Regards

Olivier