Skip to Content
0
Former Member
Oct 24, 2005 at 09:54 AM

BAPI_PO_CHANGE -> add po item with short text only (no ref)

51 Views

Dear all,

I have problem when I am trying to adding item (short text only - no master ref.) into existing PO.

I called BAPI_PO_CHANGE.

below is the values of parameters.

POITEM Structure

========================

SHORT_TEXT = TEXT ONLY

PLANT = 3000

MATL_GROUP = 006

QUANTITY = 5

PO_UNIT = AU

NET_PRICE = 123

PRICE_UNIT = 1

PRNT_PRICE = X

ITEM_CAT = 0

ACCTASSCAT = K

PO_PRICE = 1

POITEMX Structure

====================

SHORT_TEXT = X

PLANT = X

MATL_GROUP = X

QUANTITY = X

PO_UNIT = X

NET_PRICE = X

PRICE_UNIT = X

PRNT_PRICE = X

ITEM_CAT = X

ACCTASSCAT = X

PO_PRICE = X

POACCOUNT Structure

===============================

SERIAL_NO = 99

QUANTITY = 2,000

NET_VALUE = 222

GL_ACCOUNT = 400000

BUS_AREA = 9900

COSTCENTER = 9010

CO_AREA = 2000

PROFIT_CTR = 3402

POACCOUNTX Structure

========================

SERIAL_NO = 99

QUANTITY = X

NET_VALUE = X

GL_ACCOUNT = X

BUS_AREA = X

COSTCENTER = X

CO_AREA = X

PROFIT_CTR = X

CONDITION Header Structure

============================

COND_ST_NO = 001

COND_COUNT = 01

COND_TYPE = PBXX

COND_VALUE = 123

I've tried so many combination of way but it doesn't work.

I've tried to debug it bug there is a function named "CUSTOMER-FUNCTION '002'" that I can't go through.

Below are my question.

1. How do I find the source code of "CUSTOMER-FUNCTION '002'" ?

2. Anyone has tried this case before ? if yes, please give me your sample passing values.

Anyhelp would be appreciated.

Thank you in advance.

Sandi