cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Shopping Cart Number in ECC PO

Former Member
0 Kudos

Hi All,

My requirement is to update the SRM shopping cart number in ECC Purchase Order.

I have gone through the below Wiki and implemented the same but this could not work.

I have even implemented the BBP_DOC_CHANGE_BADI and BBP_DOC_CHECK_BADI  but both the badi's could not update the Shopping cart number in ECC PO.

http://wiki.sdn.sap.com/wiki/display/SRM/Shopping+cart+number+in+ECC+PO

Could Anyone help me out of this.

Thanks&Regards,

Sharmista.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sharmista,

You mentioned you implemented DOC_CHANGE and DOC_CHECK BADI's but those BADI's do not require to update Shopping cart number into ECC PO. Which Interface you have implemented in BBP_CREATE_BE_PO_NEW? There are two FILL_PO_INTERFACE1  & FILL_PO_INTERFACE. You should put your code in FILL_PO_INTERFACE1.

Also please share your code if possible which you have put in.

Thank you

Ritesh

Former Member
0 Kudos

Hi Sharmista,

We are have done this same thing already by putting the SC# into the ECC PO.

Classes and methods.
BADI Name:                                            BBP_CREATE_BE_PO_NEW
BADI Implementation:     Z_SRM_DEFLT_PO_DATA
BADI Method:     IF_EX_BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE1

1. Get Shopping Cart Number from the BADI Method Import Structure IS_SC_DOCUMENT
Shopping Cart Number: IS_SC_DOCUMENT-HEADER-OBJECT_ID
2.      Update the above value (Tracking Number) in the Changing Table of the BADI Method CS_PO1_DOCUMENT
CS_PO1_DOCUMENT-IT_POITEM-TRACKINGNO
= IS_SC_DOCUMENT-HEADER-OBJECT_ID
CS_PO1_DOCUMENT-IT_POITEMX-TRACKINGNO
= ‘X’

                When multiple shopping carts are assigned to the same ECC PO the
                        tracking number field in ECC PO shows only the first shopping cart number.
                        This should be actually displaying each individual shopping cart numbers.
                       1.) Method IF_EX_BBP_CREATE_BE_PO_NEW~FILL_PO_INTERFACE1 of BAdI
                            Implementation class ZCL_IM__SRM_DEFLT_PO_DATA needs to be modified.
                       2.) Assignment of shopping cart number to tracking number field should be
                            done within the shopping cart header loop. Earlier we had only loop at
                            shopping cart item.
                                LOOP AT is_sc_document-header ASSIGNING <ls_sc_header>.
LOOP AT is_sc_document-item ASSIGNING <ls_sc_item>
WHERE parent = <ls_sc_header>-guid.
READ TABLE cs_po1_document-it_poitem ASSIGNING <ls_po_item> WITH KEY item_guid = <ls_sc_item>-guid.
IF sy-subrc EQ 0.
IF <ls_po_item>-trackingno IS INITIAL.
<ls_po_item>
-trackingno = <ls_sc_header>-object_id.
READ TABLE cs_po1_document-it_poitemx ASSIGNING <ls_po_itemx> INDEX sy-tabix.
IF sy-subrc EQ 0.
<ls_po_itemx>
-trackingno = abap_true.
ENDIF.
ENDIF.

Thanks,

Jeff Miller



Former Member
0 Kudos

Hi,

We are creating the PO in ECC using XML- PurchaseOrderERPRequest_In_V1.

We could not find the shopping cart number in SRM XML-PurchaseOrderERPRequest_Out_V1.

PLease Suggest how this can be solved using SOA XML.

Thanks&Regards,

Sharmista.