Hi,
I am facing a piculiar problem.
I am using write statement to copy the amount data from one field to another with the additions No-Grouping, Decimals & Currency.
Everything is fine unless the currency value is 'JPY'. For this currency value extar zeroes are appended in the amount.
For example:
data: w_amount1 TYPE p decimals 9 value '2774.81000000',
w_amount2 TYPE p decimals 9,
w_out TYPE char15.
MOVE w_amount1 TO w_amount2.
WRITE w_amount2 TO w_out NO-GROUPING DECIMALS 5.
For the above write staement, value in w_out is fine.
WRITE w_amount2 TO w_out NO-GROUPING DECIMALS 5 CURRENCY 'JPY'.
This write statement makes the value of w_out something like 2777400000.810000.
Please suggest a relevant solution to handle this.
Thanks.