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

Currency difference

former_member844813
Participant
0 Likes
2,170

Dear All,

i have a program that collect DMBTR, but after i execute it the currency between my program and from the original table is different. for example from a table the value is 192.656.000, but in my program its 1.965.250,00 where it should be the same as from the table.

can anyone help me with that ?

Regards,

Dema

8 REPLIES 8
Read only

FredericGirod
Active Contributor
2,096

Did you check about currency decimal inside and outside SAP ?

try to do a WRITE your_amount CURRENCY the_currency.

Read only

0 Likes
2,096

it should be like this, with IDR currency. now what should i do to make it all in IDR ?

Read only

0 Likes
2,096

SAP store the currency with 2 decimals whatever you have (table TCURC)
You have to make a link between the amount and the currency. When you use ALV Grid, SAP will do the job for you, when you have to create a file, you could use the WRITE ... CURRENCY ... TO

Don't try to convert the internal format

Read only

2,096

The number of currency decimals is defined in table TCURX, not TCURC.

Read only

RaymondGiuseppi
Active Contributor
2,096

Read first online help on currency amount field (CURR) and link to currency code field (CUKY) for a correct handling of amounts - Currency Fields and Quantity Fields > DDIC - Currency Fields

Read only

Sandra_Rossi
Active Contributor
0 Likes
2,096

The handling of currency amounts always look strange to ABAPers. Please check how it works in the link provided by Raymond.

In the real life, IDR currency (Indonesian Rupiah) has no digits after the decimal point, but in SAP the amounts are technically defined with decimals, but these decimals are ignored when the amounts are output, i.e. in the debugger you see the technical value of dmbtr with decimals, but if you use WRITE dmbtr CURRENCY 'IDR' you will see the amount without decimals (see Frederic answer).

Read only

former_member844813
Participant
0 Likes
2,096

Thanks for the help people, the problem is now solved

Read only

0 Likes
2,096

Pls close the thread, either by accepting the correct answer or providing the correct input from your side.