cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart Number from Purchase Order

Former Member
0 Kudos

Hi Ppl,

Santosh here. Does anyone have any idea of the Function Module(or possibly any other solution) to get the Shopping Cart Number from the Purchase Order.

I have an requirement where in i need to determine the Shopping cart number from a purchase order.

Please provide me with some solution ASAP if anyone is aware of it.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Santosh,

To directly get the SC ID from the PO ID, you can use FM BBP_PD_OBJREL_READ_VIA_REF, with:

- IV_OBJECTKEY = your PO ID

- IV_OBJECTLINE = only if you aggregate N SC into one PO

- IV_OBJECT_TYPE = BUS2201 for SRM PO, BUS2012 for R/3 PO

Rgds

Christophe

PS: please reward points for helpful answers

Former Member
0 Kudos

@Christophe

Thanks buddy,

It worked.

Am passing the data to the specified FM with the object id and Object type and am able to locate SC id in FM table E_HEADER.

But tell me what's the significance of the field

IV_OBJECTLINE?

Former Member
0 Kudos

This field is used to pass the PO item number.

As I told you, this is relevant only if you aggregate N SC into 1 PO, then you could require to indentify the exact SC for a particular PO item.

Rgds

Christophe

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can use : BBP_PD_PO_GETDETAIL

you'll find the guid of the Shoping cart in E_HEADER_REL,

the shopping cart guid is in field GUID_A.

you'll find easily the link between guid and object ID in table CRMD_ORDERADM_H.

Bertrand

Former Member
0 Kudos

@ Bertrand

Thanks buddy, based on the GUID, the SC details can be fetched from table CRMD_ORDERADM_H.