cancel
Showing results for 
Search instead for 
Did you mean: 

Shopping Cart : 'BBP_CREATE_BE_PO_NEW'

Former Member
0 Kudos

Hello All,

In SRM 7,

Created two custom fields on shopping cart under item data and these fields must be mapped to standard fields from ekko table .

These custom fields are mapped using BADI ''BBP_CREATE_BE_PO_NEW'.

  METHOD if_ex_bbp_create_be_po_new~fill_po_interface1.


    LOOP AT is_sc_document-item INTO l_wa_item.

    cs_po1_document-is_poheader-collect_no =  l_wa_item-zcolle .
    cs_po1_document-is_poheader-our_ref = l_wa_item-zourre.

    cs_po1_document-is_poheaderx-collect_no =  abap_true .
    cs_po1_document-is_poheaderx-our_ref = abap_true.

EXIT.
  ENDLOOP.

   ENDMETHOD.

but the relevant fields of ekko table wasn't updated when PO created.

Pls advice, how to resolve.

Thanks,

SRM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Could you please put break point in this BADI and then execute the Shopping cart push through Function module BBP_PD_SC_TRANSFER and see if you are seeing value of l_wa_item-zcolle correctly populating cs_po1_document-is_poheader-collect_no or not?

Also, i am not sure you will need these two statements;

cs_po1_document-is_poheaderx-collect_no =  abap_true .

    cs_po1_document-is_poheaderx-our_ref = abap_true.

Please try to comment and also process the fields.

Thank you

Ritesh

Former Member
0 Kudos

Hello,

Thanks for your inputs.. but breakpoint not stopping in the BADI. so, could not through...

any advice, how to resolve.. expecting..

Thanks,

SRM