Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Convert Type F to Type C without Exponent Value

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question