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_CREATE1 info record

Former Member
0 Likes
2,703

Hello,

I want to create a PO using a distinct net price (item-net_price)from info record, but the bapi only takes this net_price when the info record is empty. In the other case, puts the info record net_price.

The flag no_price_from_po is filled with 'X', and the tables item and itemx are correctly filled

item-po_item = 01.

item-material = '000120'.

item-po_unit = 'BLS'.

item-po_price = '2'.

item-orderpr_un = 'BLS'.

item-net_price = '50.000'.

How can i do that?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,357

According to <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200001905652002">Note 571860</a>

<u>The following restrictions apply to field PO_PRICE</u>:

If you assign conditions via the BAPI interface, these are always transferred. This is carried out independently of the value that you assign in field PO_PRICE.

If you add a new item to a purchase order with BAPI_PO_CHANGE, it does not suffice to fill field POITEM-NET_PRICE on item level. The corresponding currency must be specified explicitly on header level.

You can only use field PO_PRICE during the creation of a purchase order item. If you want to change the price of an already existing item, you can only do this via the conditions.

<b>If you fill field POITEM-PO_PRICE, you must enter an 'X' in POITEMX-PO_PRICE so that the value is transferred.</b>

Could the solution be to enter 'X' in POITEM<b>X</b>-PO_PRICE?

In case you haven't already seen these: <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200002014472002">Note 582221</a> contains FAQ's on BAPIs for purchase orders

and <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200001993642002">Note 580225</a> contains a full description of Purchasing BAPI's Conditions and Pricing.

Best Regards,

James G.

1 REPLY 1
Read only

Former Member
0 Likes
1,358

According to <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200001905652002">Note 571860</a>

<u>The following restrictions apply to field PO_PRICE</u>:

If you assign conditions via the BAPI interface, these are always transferred. This is carried out independently of the value that you assign in field PO_PRICE.

If you add a new item to a purchase order with BAPI_PO_CHANGE, it does not suffice to fill field POITEM-NET_PRICE on item level. The corresponding currency must be specified explicitly on header level.

You can only use field PO_PRICE during the creation of a purchase order item. If you want to change the price of an already existing item, you can only do this via the conditions.

<b>If you fill field POITEM-PO_PRICE, you must enter an 'X' in POITEMX-PO_PRICE so that the value is transferred.</b>

Could the solution be to enter 'X' in POITEM<b>X</b>-PO_PRICE?

In case you haven't already seen these: <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200002014472002">Note 582221</a> contains FAQ's on BAPIs for purchase orders

and <a href="https://websmp202.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200001993642002">Note 580225</a> contains a full description of Purchasing BAPI's Conditions and Pricing.

Best Regards,

James G.