Skip to Content
avatar image
Former Member

Shopping Cart : 'BBP_CREATE_BE_PO_NEW'

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



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 09, 2013 at 09:13 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

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

      any advice, how to resolve.. expecting..

      Thanks,

      SRM