Skip to Content
0
Former Member
Dec 03, 2009 at 02:54 AM

Declaring a variable with a non fixed decimal.

153 Views

Hi,

There is a request to follow the number of decimal places from table TCURX depending on the country.

For example,

data: l_decimal type i.

loop at itab.

select single decimal

into l_decimal

where waers eq itab-waers.

data: X type p decimal l_decimal.

X = 5.32424 x 3.2452542 / 2.3242352

endloop.

The declaration of the variable with the decimal using another variable is not allowed.

Do you have any other suggestions on doing this?

Thanks