Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Order confirmation USD price convert in Riyal

Dear Expert in order confirmation price are coming in dollar i want to convert this in riyal where can i multiply this in sap script and how? please its very urgent.

help me.

Regards

ahmed

Former Member
Former Member replied

Hi,

Below is the example code

REPORT ZV_CONVERT_CURR .
DATA : L_NETWR TYPE VBAP-NETWR.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
          DATE             = SY-DATUM
          FOREIGN_AMOUNT   = '10.00'
          FOREIGN_CURRENCY = 'USD'
          LOCAL_CURRENCY   = 'GBP'  " Give Riyal Currency here
     IMPORTING
          LOCAL_AMOUNT     = L_NETWR
     EXCEPTIONS
          NO_RATE_FOUND    = 1
          OVERFLOW         = 2
          NO_FACTORS_FOUND = 3
          NO_SPREAD_FOUND  = 4
          DERIVED_2_TIMES  = 5
          OTHERS           = 6.

Reward Points if this helps,

Satish

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question