Application Development 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: 

Bapi_PO_Create1

Former Member
0 Kudos
312

Hello,

I want to use a manually entered pricing element ( net_price ) during the creation of

a PO.

These are some of the fields that are filled:

poitem-calctype = 'C' .poitemx-calctype = 'X'.

poitem-net_price = '1.000'.poitemx-net_price = 'X'.

poitem-price_unit = '1' .poitemx-price_unit = 'X'.

poitem-orderpr_un = 'ST' .poitemx-orderpr_un = 'X'.

poitem-po_price = '1' .poitemx-po_price = 'X'.

The fields POHEADER-currency and PO_HEADER-no_price_from_po are correctly filled.

When the PO is created, the price is taken from the default conditions,

and not from the field POITEM-net_price.

Can anyone give me a clue ?

Regards,

Dirk.

4 REPLIES 4

Former Member
0 Kudos
168

Dirk, you MUST fill the table POITEMX, if you check the tables from the BAPI you will see that every table has another table with the same name and at the end it has a 'X', for example, POITEM --> POITEMX, if you don't fill the 'X' table the values will not get passed to the BAPI process.

Regards,

Carlos.

Former Member
0 Kudos
168

Hi Carlos,

The table POITEMX is correctly filled.

I have allready found a solution fro this problem.

Thanks anyway,

Dirk.

0 Kudos
168

Hi,

The error is in line :

poitem-po_price = '1' .poitemx-po_price = 'X'.

po_price = '1' means gros price.

You should assign 2 to po_price. That means net price.

Best regards,

Yoeri Olbrechts

0 Kudos
168

Hi Dirk,

Could you please tell me how you found the solution ....?? I have the same problem...

thanks,

Ruth.