05-02-2006 12:10 PM
Hi,
I need BAPI to calculate the price.
The price calculation functionality should be exactly like, what happens in VA01.All the elements like price, discount,tax,freight,etc. everything should be calculated and return the values.
Thanks.
05-02-2006 2:56 PM
Hi,
I'm not sure if there is a BAPI for this but in the past we actually created our own RFC and called a standard SAP function module to calculate the pricing.
Function Module "GN_INVOICE_CREATE" can be used to calculate the price. The function module is not RFC enabled so you will have to create your own RFC enabled function module(wrapper) to call the SAP function module.
Hope this helps.
Jerrod
05-02-2006 3:05 PM
Hi,
try to use the direct input Functionmodules 'SD_SALES_HEADER_MAINTAIN' and 'SD_SALES_ITEM_MAINTAIN' to create temporarily a SD-order.
With function 'SD_SALES_PRICING_INFORMATION' you should get the calculated prices in table FXKONV (same as KONV), or try function 'SD_SALES_ITEM_TABLES_READ' to get the information.
05-02-2006 3:30 PM
05-02-2006 3:20 PM
05-02-2006 5:03 PM
Hi,
Use the BAPI BAPI_SALESORDER_SIMULATE to get the simulated price as if the Sales order is created (No order will be created, only the value will be captured from simulation).
Pass the Order header info, like Document type, Sales area, PO #..
Along with the item details like item #, Material #, Quantity, UoM, Plant..
It will give the details about what information your order contains if created on DB with same info.
ORDER_CONDITION_EX table parameter contains the pricing result.
Hope this helps.
Regards,
Nagaraju Chidurupalli