Skip to Content

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

conversion of amount into currency

Hi,

TRY.

v_temp = v_zmatci_str-lpreis.

WRITE v_temp to v_zmatci_str-lpreis. " CURRENCY v_waers.

CATCH CX_SY_CONVERSION_NO_NUMBER.

ENDTRY.

In the above scenario v_temp is having value 20000.After write statement when v_temp value is pushed into v_zmatci_str-lpreis,the value of lpreis is getting changed to 20,000.00.This should not happen.Because in hungarian currency there are no decimal values.Here i have to make a change in the prg such a way any currency with decimals different from the normal currencies or currencies without decimals should be considered by the prg and convert the values as required.

Can anyone suggest a solution for this?

Tags:
Not what you were looking for? View more on this topic or Ask a question