Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HELP bout EXTENSIONIN in BAPI_PO_CHANGE

I want to use 'BAPI_PO_CHANGE' to update PO items by passing EXTENSIONIN in unicode system ECC6.0. I have update the structure of BAPI_TE_MEPOITEMX and CI_EKPODBX.

Here's my code, no error, but the value didn't change.Is anything wrong with my code?

Thanks.

DATA:

it_extensionin TYPE STANDARD TABLE OF BAPIPAREX,

wa_extensionin TYPE BAPIPAREX,

BAPI_TE_MEPOITEM LIKE BAPI_TE_MEPOITEM,

BAPI_TE_MEPOITEMX LIKE BAPI_TE_MEPOITEMX.

BAPI_TE_MEPOITEM-ZZ_COMM_STO_NUM = '111'.

wa_extensionin-structure = 'BAPI_TE_MEPOITEM'.

wa_extensionin-valuepart1(5) = '00010'.

*that's the value i want to update

wa_extensionin-valuepart1+5(10) = BAPI_TE_MEPOITEM-ZZ_COMM_STO_NUM.

wa_extensionin- valuepart1+15(10) = ''.

wa_extensionin-valuepart1+25(8) = ''.

wa_extensionin-valuepart1+33(8) = ''.

wa_extensionin-valuepart1+41(8) = ''.

wa_extensionin-valuepart1+49(8) = ''.

wa_extensionin-valuepart1+57(1) = ''.

APPEND wa_extensionin to it_extensionin.

wa_extensionin-structure = 'BAPI_TE_MEPOITEMX'.

wa_extensionin-valuepart1(5) = '00010'.

wa_extensionin-valuepart1+5(1) = 'X'.

wa_extensionin-valuepart1+6(1) = ''.

wa_extensionin-valuepart1+7(1) = ''.

wa_extensionin-valuepart1+8(1) = ''.

wa_extensionin-valuepart1+9(1) = ''.

wa_extensionin-valuepart1+10(1) = ''.

APPEND wa_extensionin to it_extensionin.

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

PURCHASEORDER = '4100000533'

TABLES

RETURN = IT_RETURN

EXTENSIONIN = it_extensionin.

Edited by: yang Aiolos on Oct 10, 2008 2:54 AM

Edited by: yang Aiolos on Oct 10, 2008 2:59 AM

Tags:
Not what you were looking for? View more on this topic or Ask a question