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.
Satish Panakala replied
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,