10-08-2007 10:59 AM
I need to convert Type F to Type C without Exponenet Value. I want <fs_valu> to contain the value '60' not ' 6.0000000000000000E+00'.
lv_field = 'SAFTY'.
<fs_matloc>-SAFTY = ' 6.0000000000000000E+01'
I am using the code below but I don't know how to write the code to get rid of the exponenet.
IF field_int-type = 'F'.
ASSIGN COMPONENT lv_field OF STRUCTURE <fs_matloc>
TO <fs_valu>
TYPE ????
Any help would be much appreciated.
Thanks.
Ryan
10-08-2007 11:04 AM
Hi
Try to use MOVE statament, I believe you need to move it to decimal field and so to char field
Max
10-08-2007 11:05 AM
Hello,
Check this:
DATA: CHAR1(30).
WRITE: G_R_OBJECTS-ATFLV TO CHAR1 EXPONENT 0 DECIMALS 3.
CONDENSE CHAR1 NO-GAPS.
Regards,
Vasanth
10-08-2007 11:13 AM
Hi Boater,
use the Function module FLTP_CHAR_CONVERSION which served ur purpose..reward if useful