Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Converison exit

Former Member
0 Likes
499

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.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
469

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.

3 REPLIES 3
Read only

former_member404244
Active Contributor
0 Likes
469

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
470

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

Read only

Former Member
0 Likes
469

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.