‎2006 Oct 10 10:25 PM
Hi,
I need to get the pricing for a BOM header based on the pricing for the components and then execute a logic in a pricing routine. The routine is only called for the BOM header component during creation of the sales order. I'm trying to use BAPI_SALESORDER_SIMULATE to simulate the pricing and then derive the net value for the header material based on the netvalue of the components for the header material.
The BAPI does not work in the routine. Though it does not give any error( the return structure is empty), it does not populate the output internal table(ORDER_ITEMS_OUT). For the test data, the BAPI works in SE37. It also works in a separate SE38 report.
I have tried other options like perform <form>(<program>) inside the routine but it still does not work. It however works if I submit an external executable program and get the results back from memory.
Does anyone know why the BAPI is not working in this scenario ?...
Regards,
Aravind
‎2006 Oct 10 10:33 PM