[SAP] BAPI Currency Conversion

  DATA: lv_currency LIKE tcurc-waers,

        lv_amount LIKE  bapicurx-bapicurx.

  CALL FUNCTION ‘BAPI_CURRENCY_CONV_TO_EXTERN_9’

    EXPORTING

      currency        = lv_currency

      amount_internal = gt_upload-netpr

    IMPORTING

      amount_external = lv_amount.

  DATA: LV_AMT_I TYPE I.

  DATA: LV_AMT_E TYPE BAPICURR-BAPICURR.

    CALL FUNCTION ‘BAPI_CURRENCY_CONV_TO_INTERNAL’

      EXPORTING

        CURRENCY             = GS_DISPLAY-WAERS

        AMOUNT_EXTERNAL      = LV_AMT_E

        MAX_NUMBER_OF_DIGITS = 15

      IMPORTING

        AMOUNT_INTERNAL      = LV_AMT_I.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments