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

PO update using BAPI_PO_CHANGE

Former Member
0 Likes
582

Hello,

I am trying to add a line item and to update Confirmation Control key to update using BAPI_PO_CHANGE.

It's always coming back with the following error message.

'Net price must be greater than 0'.

I am using BAPI_PO_CHANGE as I want to add new line item to the existing PO.

I have populated fowlling parametrs

PURCHASEORDER = 5200003984

POHEADER-PO_NUMBER = 5200003984

POITEM-SHORT_TEXT = US-TEST001

POITEM-MATERIAL = 3AL01001PP

CONF_CTRL = Z005

POITEMX-CTRL_KEY = 'X'

Thank yuo suggest me on this.

Thanks,

PK

Hello,

I am trying to add a line item and to update Confirmation Control key to update using BAPI_PO_CHANGE.

It's always coming back with the following error message.

'Net price must be greater than 0'.

I am using BAPI_PO_CHANGE as I want to add new line item to the existing PO.

I have populated fowlling parametrs

PURCHASEORDER = 5200003984

POHEADER-PO_NUMBER = 5200003984

POITEM-SHORT_TEXT = US-TEST001

POITEM-MATERIAL = 3AL01001PP

CONF_CTRL = Z005

POITEMX-CTRL_KEY = 'X'

Thank yuo suggest me on this.

Thanks,

PK

1 REPLY 1
Read only

Former Member
0 Likes
407

You can see the sample here

http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

and if you want to insert the item then you have to use UPDATE indicator = 'I'