You are on page 1of 1

Función obtiene valor moneda de conversion

          CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
            EXPORTING
              client           = sy-mandt
              date             = ti_konv-kdatu
              foreign_currency = p_waers
              local_amount     = ti_salida-kbetr
              local_currency   = ti_salida-waers
              rate             = 0
              type_of_rate     = 'M'
              read_tcurr       = 'X'
            IMPORTING
              foreign_amount   = ti_salida-kbetr2
            EXCEPTIONS
              no_rate_found    = 1
              overflow         = 2
              no_factors_found = 3
              no_spread_found  = 4
              derived_2_times  = 5
              OTHERS           = 6.

You might also like