cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping cart (External requirement) number to be setup as external range and use PR numebr for SC

former_member533535
Participant
0 Kudos
455

Hi Experts,


We are implementing SRM PPS for one of the customer and the requirement in PDP scenario is when Shopping carts created from ECC PR through PI message we need to create Shopping Cart (external Requirements) with same number as PR in ECC. We have setup the ECC PR number range as external number range for Shopping cart transaction type "EXTR" but we could not find the any attribute in BBP_DOC_CHANGE_BADI to update PR number to Shopping Cart.

Can any one suggest how to setup ECC PR number to Shopping cart through enhancement?

Best Regards,

Karthikeyan BN

Accepted Solutions (1)

Accepted Solutions (1)

edaniel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Karthikeyan,


I recommend you to check Class: /SAPSRM/CL_PDO_FACTORY_SC_ADV Method: CREATE_SC_INT and

Class: /SAPSRM/CL_CH_SOA_BO_MAPPER_PR Method: /SAPSRM/IF_CH_SOA_BO_MAPPER_PR~CREATE


Best regards,

Daniel

former_member533535
Participant
0 Kudos

Hi Daniel,

Thanks for the details. With the class /SAPSRM/CL_PDO_FACTORY_SC_ADV and method: CREATE_SC_INT we could make change to the Shopping cart number range but we could not able to read Shopping Cart item details in this Class and Method and hence we could not read PR number that we are planning to use as Shopping cart number.

Can you please help with SAP Class which we can use to read the Shopping cart Header and item data that is associated with the temporary Header GUID that we read in the class "/SAPSRM/CL_PDO_FACTORY_SC_ADV"?

If we could able to read the PR number that is coming in this class then we could able to complete this requirement

Best Regards,

Karthikeyan BN

Answers (3)

Answers (3)

former_member533535
Participant
0 Kudos

Hi Experts and Daniel Erdei,

We could able to achieve the requirement using Class: /SAPSRM/CL_PDO_FACTORY_SC_ADV Method: CREATE_SC_INT but with this method we could only read a limited header data also the GUID we get in this method is used to fetch any item details using FM. Is there a way to determine complete Shopping Cart details including item with the GUID?

Can any one help me determining item data of Shopping Cart from the GUID obtained from the method CREATE_SC_INT?

Your help is appreciated and thanks in Advance

Best Regards,

Karthi

former_member533535
Participant
0 Kudos

Hi Experts and Daniel Erdei,

We are able to make number range change using class /SAPSRM/CL_PDO_FACTORY_SC_ADV and method: CREATE_SC_INT

But in the above method we are able to read only SC header and the GUID we are getting is not usable to get the Shopping Cart item data as this GUID is a temporary one not committed in tables. Is there a way to get complete Shopping cart item data using the GUID we obtain from the methos "CREATE_SC_INT"?

You help is greatly appreciated and Thanks in Advance

Best Regards,

Karthi

former_member533535
Participant
0 Kudos

Hi Daniel,

Thanks for the details. With the class /SAPSRM/CL_PDO_FACTORY_SC_ADV and method: CREATE_SC_INT we could make change to the Shopping cart number range but we could not able to read Shopping Cart item details in this Class and Method and hence we could not read PR number that we are planning to use as Shopping cart number.

Can you please help with SAP Class which we can use to read the Shopping cart Header and item data that is associated with the temporary Header GUID that we read in the class "/SAPSRM/CL_PDO_FACTORY_SC_ADV"?

If we could able to read the PR number that is coming in this class then we could able to complete this requirement

Best Regards,

Karthikeyan BN