Skip to Content
avatar image
Former Member

Hi christophe>>>Same Badi

Hi christophe,

In BBP_ECS_PO_OUT_BADI in SRM..........

In REFFIELD1 u told to give as is giving error ?

and for REFVAL1 we pass 00001 directly

i.e, ...REFVAL1 = '0001'.


IS it true?

it is giving error.

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    May 25, 2006 at 02:08 PM

    Hi Ravi,

    I told you to pass 'PO_ITEM' in field REFFIELD1, and not PO_ITEM as a variable that of course does not exist...).



    REVAL1 = '00001'. --> but here you must use the incoming item field NUMBER_INT.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      On which object are you working ? a Purchase Order, isn't it ?

      By what is composed a PO ? By a header, items, partners, accounting, documents, texts, tax, and so on.

      Your goal is to send the item catalog ID to R/3 PO item, isn't it ?

      So in this BADI, you must loop on the incoming item table, and for each PO item you must append a customer field to pass each item catalog ID.

      SRM PO items have a GUID, an internal PO item number(10, 20, 30...) and an external PO item number = R/3 PO item number (numeric field of 5 positions).

      So in your incoming item table IT_ITEM, you can find this field, which correspond to field CT_BAPI_POITEM-PO_ITEM. CT_BAPI_POITEM is the target table with the format wanted by R/3 BAPI_PO_CREATE.

      So you must pass the R/3 item number in this ref field (use IT_ITEM-NUMBER_INT or CT_BAPI_POITEM-PO_ITEM).