Skip to Content
0
Former Member
Nov 02, 2012 at 07:32 AM

Dynamically assign the decimal point

1635 Views

Hi all,

I got a requirement in which I need to declare a variable.

Ex: lv_dec type P decimals 2.

But the value of decimals part, here '2' should be populated, based on some field.

There is one table, in which the decimals would be maintatined.

Based on that I need to declare the decimal part of the variable.( Ex: lv_dec type P decimals "table-field")

Please help me with your suggestions to achieve this.

Thanks in advance.

Rgs,

Priya