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: 

conversion routine for local currencies into USD ?

Former Member
0 Kudos

Hi,

could u please tell me taht, which conversion routine is used to convert local currencies into USD ?

tell me abt that function module

THanks&Regards,

VRL REDDY

7 REPLIES 7

Former Member
0 Kudos

You can use FM CONVERT_TO_FOREIGN_CURRENCY

Former Member
0 Kudos

there are lots of FM´s for that job, the 2 most common are:

CONVERT_CURRENCY_BY_RATE and

CONVERT_TO_LOCAL_CURRENCY

Former Member
0 Kudos

Hi

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.

With Regards

Nikunj Shah

Former Member
0 Kudos

hi

use this it will help u

ID_CONVERT_TO_FOREIGN_CURRENCY

Cheers

Snehi

Former Member
0 Kudos

Hi

CONVERT_TO_FOREIGN_CURRENCY this fm would help you.

Regards

Divya

Former Member
0 Kudos

 CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
      EXPORTING
           client           = sy-mandt
           date             = detail_record-budat
           foreign_currency = lw_foreign_waers
           local_amount     = lw_local_amt
           local_currency   = lw_local_waers
      IMPORTING
           foreign_amount   =  lw_foreign_amt
      EXCEPTIONS
           no_rate_found    = 1
           overflow         = 2
           no_factors_found = 3
           no_spread_found  = 4
           derived_2_times  = 5
           OTHERS           = 6.

former_member125931
Active Participant
0 Kudos

Use FM : HR_ECM_CONVERT_CURRENCY