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 from GPB to USD

Former Member
0 Kudos

Hi

I want to convert from GPB currency format to USD format i tried in every function module.. Is there any way for this in function module?....

2 REPLIES 2

gopi_narendra
Active Contributor
0 Kudos

Have you tried this FM : CONVERT_TO_LOCAL_CURRENCY

Regards

Gopi

naveen_inuganti2
Active Contributor
0 Kudos

Hi...

use the functionmodule..,

CONVERT_TO_LOCAL_CURRENCY

Sample code,

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
       EXPORTING
            DATE = sy-datum
            FOREIGN_AMOUNT = your amount field
            FOREIGN_CURRENCY = your present currency field
            LOCAL_CURRENCY = 'USD'
            TYPE_OF_RATE = <not mandatory>
       IMPORTING
            LOCAL_AMOUNT = output amount
       EXCEPTIONS
            NO_RATE_FOUND = 01
            OVERFLOW = 02.

It will solves your problem.

Thanks,

Naveen.I