Application Development 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: 

currency conversion

Former Member
0 Kudos

hi,

I have following requirements :

1) conversion from one currency to another currency.

2) conversion from currency as stored in SAP format to another currency.

3) decimail places up 10.

For "conversion from one currency to another currency" i can use FM : CONVERT_TO_FOREIGN_CURRENCY.

For " conversion from currency as stored in SAP format to another currency: i can use FM : AIPB_CURRENCY_SAP_TO_EXTERNAL

problem: is in above 2 FM the decimal places are not up to 10 places

now to fulfill my requirement how can i combine above 2 FM and how to change decimal places up to 10.?

regards

rahul

Edited by: RAHUL SHARMA on May 4, 2009 12:56 AM

7 REPLIES 7

Former Member
0 Kudos

Hi Rahul,

You have 2 requirements 1. to convert the currency 2.upto 10 decimals.

Since you have found a FM for your 1st requirement go ahead and first convert the currency.

Once you have some value more it to a variable which has 10 decimals.

Use FM and get a w_curr.

data:

w_temp type p decimals 10.

move w_curr to w_temp.

Much Regards,

Amuktha.

viquar_iqbal
Active Contributor
0 Kudos

HI

use this FM

PRC_CNV_CURR_CONV_TO_FOREIGN

You can provide local currency with 10 decimal places in it.

Thanks

Viquar Iqbal

Former Member
0 Kudos

Hi,

Try with FM CURRENCY_CONVERT

Thank you,

Sekhar.

Former Member
0 Kudos

Hi Rahul,

Look at this Reference : [Currency Conversion|;

For you requirement you can also do like this.

use PRC_CNV_CURR_CONV_TO_FOREIGN &

use FM READ_EXCHANGE_RATE... you will get the exchange rate,,

take a variable of type p.

ex. ex_rate type p decimals 10.

and multiply with exhancge rate into a 10 decimal point variable.

Thanks & regards,

Dileep .C

Former Member

Former Member
0 Kudos

This message was moderated.

former_member183990
Active Contributor
0 Kudos

pls go t hrough this thread

cheers

s.janagar