Skip to Content
0
Former Member
Dec 06, 2006 at 03:01 PM

Decimal error

42 Views

Hi friends ,

This sounds weird anyways here is the issue . I am calculating a value and appending it to an internal table say itab1 . Later I move the value from itab1 to output_table for printing in the report . When the value is in itab1 it shows as 0.22 but now when the value is in output_table the value is 0.000022. How is this possible when I defined the value in both internal tables as same . Please advise .

Here is a sample code .

Begin of itab1 .

'

'

value TYPE p DECIMALS 2,

end of itab1.

Begin of output_table.

.

.

value TYPE p DECIMALS 6,

end of output_table.

Start of selection

'

'

'

Append itab1 to output_table .

..

..

end of selection .

Thanks ,

Hari