‎2006 Jun 28 8:49 AM
Hi,
We are using BAPI_SALESORDER_SIMULATE to get price of a material. Problem is "in ORDER_ITEMS_OUT table NET_VALUE field is not giving the exact value. it is truncating the right most digit of the the net value."
Does anybody know how rectify this issue.
Thanks in advance.
‎2006 Jun 28 10:15 AM
‎2006 Jun 28 10:19 AM
If we create a salesorder using VA01 transaction, and suppose for a material net value in created sales order is 2345. then after using BAPI_SALESORDER_SIMULATE for the same values net value is coming as 234.
this is the issue.
‎2006 Jun 28 10:25 AM
Hi ,
what Currency field u are passing , please readposting for Negi.
regards
Prabhu
‎2006 Jun 28 10:46 AM
It is using USD as default curreny field.
I didn't get which posting you want me to go through.
‎2006 Jun 28 11:18 AM
Re: BAPI problem
Posted: Jun 28, 2006 1:49 PM Reply E-mail this post
You are using currency fields that reference a currency code. Most currencies in SAP have two decimal places. Dividing by 100 will work in most cases. Ideally you should get the CURRDEC value in table TCURX for the currency you are working with... then divide by 10 that number of times.
example-
USD, 2 decimals, divide by 10 twice.
There is a function module that will do this for you.
function modules G_DECIMAL_PLACES_GET or TCURX_READ
‎2019 Sep 17 5:29 PM
You must enter the amount (structure ORDER_ITEMS_IN, field TARGET_QTY and REQ_QTY) multiplied by 1000.