Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI problem

Former Member
0 Likes
312

Hi All,

when i am Simulating a standard BAPI for sales order i have problem in pricing like i am getting 000000000000389 usd instead of 000000000003892 usd in condition base value and net value as well.why and where is the problem please correct me with better solution.

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
252

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