cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add PO items using BAPI_PO_CHANGE?

KHummel
Participant
0 Kudos

Hi,

currently I'm trying to use BAPI_PO_CHANGE to add another item to an already existing purchase order <i>(Rel. 4.6C - slightly out of date, I know )</i>.

I therefore fill table parameters poitem, poitemx, poaccount und poaccountx. When I fill fields PO_ITEM in these tables with the expected new item no (e.g. adding a third item with # 30 to an PO with two existing items # 10 and # 20), I get in return the error message

<b>MEPO 071 Item 00030 does not exist</b>

Instead, with clearing fields PO_ITEM in these tables and letting the system compute item numbers by itself, I get for instance error message

<b>ME 083 Please enter costcenter</b>

Does anyone knoe a way to correctly add new PO items using this BAPI? SAP documentation is not very elaborate in this case

Thanks in advance,

Klaus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You should enter to tables

POITEM :

PO_ITEM = number

PREQ_NO = Purchase Requisition number

PREQ_ITEM = Purchase Requisition item.

POITEMX fields:

PO_ITEM = number

PO_ITEMX = 'I'

PREQ_NO = 'X'

PREQ_ITEM = 'X'

KHummel
Participant
0 Kudos

Thank you!

PO_ITEMX = 'I' was the hint I needed, plus filling tables PO_ACCOUNT and PO_ACCOUNTX.

Answers (0)