07-04-2006 6:49 AM
Hi,
I am displaying a field in ALV, for wich the
value is 1.4000000000000001E-01.
I want it to be displayed as :0.140.
How do i change the format ?
Rgds,
Ravindra
07-04-2006 6:55 AM
Hi,
Change the data type of the field to Packed.
eg.
var1 type p decimals 3.
Regads,
Shashank
07-04-2006 6:55 AM
change data type of field..
data: f type f value '1.4000000000000001E-01'.
data: p type p decimals 3.
p = f.
write:/ p.
07-04-2006 6:55 AM
Hi,
Change the data type of the field to Packed.
eg.
var1 type p decimals 3.
Regads,
Shashank
07-04-2006 6:59 AM
it is a standard field in a standard report,
so we cannot change the field or its type..
rgds,
Ravindra
07-04-2006 7:03 AM
than u have to find out the userexit or take the access key to do the changes.....
07-04-2006 7:05 AM
Hi Ravindra,
1) Take an additional variable of TYPE P WITH DECIMALS 3.
DATA V_VALUE TYPE P DECIMALS 3.
2) Assign standard program value to this variable
3) Build field catalog with this new variable V_VALUE rather than with standard program value.
I hope this may solve your problem.
Thanks,
Vinay
07-04-2006 7:17 AM
thanks all..the problem is
solved by changing the data type
of the variable, by using another variable of desired length.
i have given points to all