Funktionsbaustein CONVERT TO LOCAL CURRENCY

Aus SAP-Wiki
Zur Navigation springenZur Suche springen

Dieser Funktionsbaustein CONVERT_TO_LOCAL_CURRENCY konvertiert eine Währung in die inländische Währung.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
  EXPORTING
"   CLIENT                  = SY-MANDT
    DATE                    =
    FOREIGN_AMOUNT          =
    FOREIGN_CURRENCY        =
    LOCAL_CURRENCY          =
"   RATE                    = 0
"   TYPE_OF_RATE            = 'M'
"   READ_TCURR              = 'X'
" IMPORTING
"   EXCHANGE_RATE           =
"   FOREIGN_FACTOR          =
"   LOCAL_AMOUNT            =
"   LOCAL_FACTOR            =
"   EXCHANGE_RATEX          =
"   FIXED_RATE              =
"   DERIVED_RATE_TYPE       =
" EXCEPTIONS
"   NO_RATE_FOUND           = 1
"   OVERFLOW                = 2
"   NO_FACTORS_FOUND        = 3
"   NO_SPREAD_FOUND         = 4
"   DERIVED_2_TIMES         = 5
"   OTHERS                  = 6
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur