Question:
Hi,
I am developing Inbound interface to create Sales order via Idocs.
I am getting one Net value from customer .
I need to compare it with SAP Net price for that material for that customer.
( using pricing conditions and subtotals).
How can I achieve this ?
Kindly advise.
rgds,
Anand
Answer:
Any price from the E1EDP01-VPREI segment in the sales order idoc normally goes into the EDI1 pricing condition on the item. If you need to compare it with the SAP price, you will need to put code into the user exits in the ORDERS inbound function to do this. SAP doesn;t calculate the item price until the order is created, so you can't get the SAP item price with a function module. You can use BAPI_SALESORDER_SIMULATE to simulate the sales order and get the SAP price, and then compare this with your idoc price. We do this, and send alert emails if there is a large enough difference.