2009 Aug 21 8:42 AM
Hi All,
Is there any converion exit to convert this format ie '4.4373600000000000E+05' to 443736. Or is there any other ways to achieve this. Please help me.
2009 Aug 21 8:54 AM
Hello Anu,
I dont think you need any conv. exit for this. If you assign the value to any packed type variable you can achieve this.
BTW this has been answered many times in SDN. Please search.
BR,
Suhas
Hi All,
Is there any converion exit to convert this format ie '4.4373600000000000E+05' to 443736. Or is there any other ways to achieve this. Please help me.
2009 Aug 21 8:52 AM
HI,
Yes..Please check the below Fm
FORM sub_convert_fltp_to_char USING p_lv_fltp TYPE qsollwerte
CHANGING p_lv_char TYPE qsollwertc.
CALL FUNCTION 'QSS0_FLTP_TO_CHAR_CONVERSION'
EXPORTING
i_number_of_digits = '2'
i_fltp_value = p_lv_fltp
i_value_not_initial_flag = 'X'
i_screen_fieldlength = 16
IMPORTING
e_char_field = p_lv_char.
CONDENSE : p_lv_char.
ENDFORM. " SUB_CONVERT_FLTP_TO_CHAR
Regards,
Nagaraj
2009 Aug 21 8:54 AM
Hello Anu,
I dont think you need any conv. exit for this. If you assign the value to any packed type variable you can achieve this.
BTW this has been answered many times in SDN. Please search.
BR,
Suhas
2009 Aug 21 8:54 AM
Hello
You do not need conversion exit. Just declare new variable and move data.
data: ttt type f, ddd type i.
ttt = '4.4373600000000000E+05'.
ddd = ttt.
write: ttt, ddd.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |