cancel
Showing results for 
Search instead for 
Did you mean: 

SRM 7 Get Shopping Cart using Purchase Order

Former Member
0 Kudos

Hi all,

Good day.

In SRM 7 System Classic Scenario, I could see an Approved Shopping Cart and that a corresponding Follow-on Document / Purchase Order was already created from the backend for it via Transaction BBP_BW_SC2.

In SRM 7 System Classic Scenario,  if I already have the Purchase Order, can you kindly provide the technical solution on how I can retrieve the corresponding Shopping Cart?  Can you please provide the BAPI/FM/Tables and procedure how to use them to be able to get the Shopping Cart?

Note: I have tried using BBP_PD_PO_GETDETAIL and entered the PO Number in I_OBJECT_ID but I'm not getting any result.

Thank you very much in advance for your inputs.

Best regards,

Brando

Accepted Solutions (1)

Accepted Solutions (1)

ivy_li
Active Contributor
0 Kudos

Hi Brando,

Please insert import parameters I_OBJECT_KEY:

H_OBJECT_TYPE                  BUS2201

H_GUID                         header guid of PO

and run this FM. Then in ET_HISTORY, it will list the related SC.

Best regards,

Ivy

Former Member
0 Kudos

Hi Ivy,

Do you happen to know how I can get the Header GUID of my PO?   Does my PO have a "Header GUID" in SRM considering it's created in backend (ECC)?  Thank you.

Best regards,

Brando

ivy_li
Active Contributor
0 Kudos

Hi Brando,

You may get guid of PO from trx bbp_pd if you are using extended classic scenario.

If not, I am afraid that you can't find this PO in SRM side.

If you only have ECC PO, I suggest you check this PO in trx me23n directly to find its SC.

It is meaningless to find SC with ECC PO number in SRM side.

Best regards,

Ivy

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks Konstantin and Ivy.  I will check the said table. 

Best regards,

Brando

robin_janke
Contributor
0 Kudos

Or table BBP_PDBEI - I think that should hold the backend PO as well for a shopping cart item.

konstantin_anikeev
Active Contributor
0 Kudos

Hi Robin,

BBP_PDBEI is a not safe solution.

1. There can be a purchase requisition number (SC->PR->PO)

2. If more, than 1 PO from position (via sourcing), table holds only last po number. from the first po you'll not find shopping cart via this table

3. Sometimes table holds PO number, if it is not created (error by transmission).

Regards

Konstantin

robin_janke
Contributor
0 Kudos

Hi,

1. Than the BE_OBJECT_TYPE should be checked as well: BUS2012 for PO if I recall correctly.

2. agreed

3. yep.

So nope that is not the best solution

konstantin_anikeev
Active Contributor
0 Kudos

Hi, Brando,

try the table srrelroles

Regards

Konstantin

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

call META_PO_GETDETAIL in SRM to get a PO-Info from ECC.

Important field is LOGICAL_SYSTEM - it defines a backend, where PO should be searched.

or

BBP_PD_PO_GETDETAIL to get Info from SRM

Regards

Konstantin

ivy_li
Active Contributor
0 Kudos

Hi Konstantin,

I tried with the proposed FM, but I can't find information about its SC.

Are you sure they can be used to get information of SC?

Regards,

ivy

konstantin_anikeev
Active Contributor
0 Kudos

Oooops

have too much opened browser tabs

suppose that was an answer to another topic.

ivy_li
Active Contributor
0 Kudos

Hi Brando,

Would you please try with FM BBP_PD_GETHISTORY?

Regards,

Ivy