2004 Dec 01 3:29 PM
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.
2005 Jan 10 1:01 PM
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.
2005 Jan 10 1:15 PM
Hi Carlos,
The table POITEMX is correctly filled.
I have allready found a solution fro this problem.
Thanks anyway,
Dirk.
2005 Jan 10 3:15 PM
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
2006 Mar 02 4:31 PM
Hi Dirk,
Could you please tell me how you found the solution ....?? I have the same problem...
thanks,
Ruth.