Hi,
I want to make the number of decimal places to be conditional instead of static while defining a variable of P Type.
i.e.
data: w_lower TYPE p DECIMALS 2,
instead of 2 i want to refer a variable here which will have values at runtime.
Here is the code which i am using.
data: v_deci type i.
v_deci = wa_qamkr-stellen.
data: w_lower TYPE p DECIMALS v_deci, "AEDK921934 changing decimal from 2 to 4
w_higher TYPE p DECIMALS v_deci.
Here i want v_deci to be used to store the number of decimals.
This v_deci will have value at runtime.
Can anyone please help with this?
Thanks,
Praveen