Currency conversion issue, any solution for this?

Hi Experts,
I have input data from Excel file, every number is pure number without format.
After uploading the file to an internal table, I assign it to a variable with data type CURR 13 with 2 decimal places.
The problem is:
20 USD in excel file will become 20.00 USD in SAP which is correct BUT
20000 VND in excel file will become 20000.00 VND
and when I saved this value to the database and view it on screen it becomes: 2,000,000 VND which is not correct. I see it 100 times than the original value.
Can any body explain to me why? and how do I fix this?
Thanks,
Anthony

Hi ,
Use the below logic  Instead of DMBTR use your Amount field.
SELECT SINGLE * FROM t001 INTO l_t0011 WHERE bukrs = <fs_original>-bukrs.
        SELECT SINGLE * FROM tcurx INTO l_curr
        WHERE currkey = l_t0011-waers.
        IF sy-subrc EQ 0 .
          v_con = 100.
          DO l_curr-currdec  TIMES.
            v_con = v_con / 10.
          ENDDO.
Rgds,
Arun
        <fs_reposted>-dmbtr = <fs_reposted>-dmbtr * v_con.
        ENDIF.

Similar Messages

Maybe you are looking for