Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CHANGE problem with accounting

Former Member
0 Likes
743

Hello,

I'm trying to add a new position to an existent purchase order. But I get the "Account 960000 requires an assignment to a CO object" error.

The line that I add has the same accounting information as the existent line (even the WBS element).

I have debugged but, in one moment the new line loss the kokrs & wbs_element in the new line, but I have not able to see why. For this reason I get the error

Has anybody been in this situation before? My structure call is the next.

thanks.

BR

Parámetros: PURCHASEORDER 7000000452

Parámetros: POITEM

PO_ITEM = 00020

SHORT_TEXT = ANM.003

PLANT = 1000

MATL_GROUP = 03.1

QUANTITY = 1.000

PO_UNIT = LE

NET_PRICE = 78.690000000

ITEM_CAT = 0

ACCTASSCAT = Z

GR_IND = X

IR_IND = X

GR_BASEDIV = X

PRICE_DATE = 20060619

Parámetros: POITEMX

PO_ITEM = 00020

PO_ITEMX = X

SHORT_TEXT = X

PLANT = X

MATL_GROUP = X

QUANTITY = X

PO_UNIT = X

NET_PRICE = X

ITEM_CAT = X

ACCTASSCAT = X

GR_IND = X

IR_IND = X

GR_BASEDIV = X

Parámetros: POACCOUNT

PO_ITEM = 00020

SERIAL_NO = 02

CREAT_DATE = 20060619

QUANTITY = 1.000

NET_VALUE = 78.690000000

CO_AREA = 1000

WBS_ELEMENT = SA1102-06

Parámetros: POACCOUNTX

PO_ITEM = 00020

SERIAL_NO = 02

PO_ITEMX = X

SERIAL_NOX = X

CREAT_DATE = X

QUANTITY = X

NET_VALUE = X

CO_AREA = X

WBS_ELEMENT = X

Hello,

I'm trying to add a new position to an existent purchase order. But I get the "Account 960000 requires an assignment to a CO object" error.

The line that I add has the same accounting information as the existent line (even the WBS element).

I have debugged but, in one moment the new line loss the kokrs & wbs_element in the new line, but I have not able to see why. For this reason I get the error

Has anybody been in this situation before? My structure call is the next.

thanks.

BR

Parámetros: PURCHASEORDER 7000000452

Parámetros: POITEM

PO_ITEM = 00020

SHORT_TEXT = ANM.003

PLANT = 1000

MATL_GROUP = 03.1

QUANTITY = 1.000

PO_UNIT = LE

NET_PRICE = 78.690000000

ITEM_CAT = 0

ACCTASSCAT = Z

GR_IND = X

IR_IND = X

GR_BASEDIV = X

PRICE_DATE = 20060619

Parámetros: POITEMX

PO_ITEM = 00020

PO_ITEMX = X

SHORT_TEXT = X

PLANT = X

MATL_GROUP = X

QUANTITY = X

PO_UNIT = X

NET_PRICE = X

ITEM_CAT = X

ACCTASSCAT = X

GR_IND = X

IR_IND = X

GR_BASEDIV = X

Parámetros: POACCOUNT

PO_ITEM = 00020

SERIAL_NO = 02

CREAT_DATE = 20060619

QUANTITY = 1.000

NET_VALUE = 78.690000000

CO_AREA = 1000

WBS_ELEMENT = SA1102-06

Parámetros: POACCOUNTX

PO_ITEM = 00020

SERIAL_NO = 02

PO_ITEMX = X

SERIAL_NOX = X

CREAT_DATE = X

QUANTITY = X

NET_VALUE = X

CO_AREA = X

WBS_ELEMENT = X

6 REPLIES 6
Read only

Manohar2u
Active Contributor
0 Likes
697

Try posting manually, seems some FI configuration issue.

Regds

Manohar

Read only

Former Member
0 Likes
697

The existing line item would have been created with the Account had a different configuratio. After that some one would have changed the setting.

Regards,

Ravi

Read only

Former Member
0 Likes
697

Hi,

Thanks for your response. but

-I can do the update online without problems (via ME22N)

- I just created the purchase order when I tried to do the change.

I don't know why tha information about wbs_element and kokrs disappear in the execution.

Any other Idea

Thanks again

BR

Read only

0 Likes
697

Hi Jorge,

THe Account assingment has be provided for each line item , i think u may need to loop the accounting information for the line item.

Cheers

Read only

0 Likes
697

Hi Sushi

Thanks for your response but I don't understand what do you mean. could you explain with an example please??

Thanks again

King regards

Jorge

Read only

Former Member
0 Likes
697

I am in the same hole. my GL Account number is getting cleared.. Jorge, is your prob solved. can you please help me in this....

Thanks in adance

Somes