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

regarding conversion of currecny function module

Former Member
0 Likes
617

Which is the function which converts currency from one format to another format?

6 REPLIES 6
Read only

Former Member
0 Likes
586

FM-

/SAPHT/DRM_CONVERT_CURRENCY

Convert amount from one currency to another

CONVERT_TO_FOREIGN_CURRENCY

Translate local currency amount into foreign currency

CONVERT_TO_LOCAL_CURRENCY

Translate foreign currency amount to local currency

Hope this Helps

Regards

Vinayak

Read only

dhruv_shah3
Active Contributor
0 Likes
586

Hi,

You can use

FM 'CONVERT_TO_LOCAL_CURRENCY'

'CONVERT_TO_FOREIGN_CURRENCY'

CONVERT_AMOUNT_TO_CURRENCY



CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'

EXPORTING DATE = BKPF-WWERT

FOREIGN_CURRENCY = BKPF-WAERS

LOCAL_CURRENCY = T001-WAERS

LOCAL_AMOUNT = BSEG-DMBTR

RATE = BKPF-KURSF

TYPE_OF_RATE = 'M'

IMPORTING EXCHANGE_RATE = KURS

FOREIGN_AMOUNT = BSEG-WRBTR

FOREIGN_FACTOR = FAKTOR-F

LOCAL_FACTOR = FAKTOR-L

EXCEPTIONS NO_RATE_FOUND = 4

NO_FACTORS_FOUND = 8.

HTH

Regards,

Dhruv Shah

Read only

Former Member
0 Likes
586

Use FM : CONVERT_TO_FOREIGN_CURRENCY

Read only

Former Member
0 Likes
586

hi,

Check FM

CONVERT_TO_FOREIGN_CURRENCY "Translate local currency amount into foreign currency

CONVERT_TO_LOCAL_CURRENCY "Translate foreign currency amount to local currency

Read only

Former Member
0 Likes
586

Hi,

Check the following link:

http://sapdev.co.uk/country/country_curr.htm

Regards,

Bhaskar

Read only

Former Member
0 Likes
586

HI,

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

EXPORTING

DATE = P_P_DATE

FOREIGN_AMOUNT = 1

FOREIGN_CURRENCY = P_VBAK-WAERK

LOCAL_CURRENCY = 'INR'

RATE = 0

TYPE_OF_RATE = 'M'

IMPORTING

EXCHANGE_RATE = P_EXCRATE.