08-13-2008 7:37 AM
dear all
Actually i want to show the ouput as 2,73.,,, 4,00,,,,1,95,,,,,, this is what these values are there in transaction .i want to show the report like that ,
But the datatype of this filed is Floating point so it is being displayed in the report like the following.
2,7300000000000001E+01
4,0000000000000001E-02
1,9500000000000000E+01
9,5999999999999996E+00
3,2200000000000003E+01
7,0999999999999996E-01
2,3999999999999999E+00
ii want to show 2,73 ,, 4,00, 1,95
regards
Sivaprasath
08-13-2008 7:38 AM
HI
Pass the Float values to any PACK DECIMAL variables
check this snippet
DATA :
w_f TYPE f,
w_p TYPE p DECIMALS 2.
w_f = '2.23'.
WRITE :
/ w_f.
>w_p = w_f.
WRITE :
/ w_p.
Regards
Pavan
08-13-2008 7:42 AM
08-13-2008 7:42 AM
HI,
Take one variable with type P DECIMALS 2.
Now movw ur floating values to this new field and the display..
08-13-2008 7:46 AM
Hi shiva,
Try to use use folllowing
Functional module : FLTP_CHAR_CONVERSION.That will solve your probelm.
Hope it is helps.
Regards,
T.D.M.