cancel
Showing results for 
Search instead for 
Did you mean: 

Hi christophe>>>Same Badi

Former Member
0 Kudos

Hi christophe,

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

In REFFIELD1 u told to give as po_item..it is giving error ?

and for REFVAL1 we pass 00001 directly

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

...REFFIELD1 = PO_ITEM.

IS it true?

it is giving error.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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...).

So:

REFFIELD1 = 'PO_ITEM'.

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

Rgds

Christophe

Former Member
0 Kudos

Hi christophe,

i never used the field NUMBER_INT??

how to use it??

Thanks in advance

Former Member
0 Kudos

Ravi,

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).

Rgds

Christophe

Answers (0)