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

'CONVERSION_EXIT_ALPHA_INPUT'

Former Member
0 Likes
716

Hi,

I am using this FM to append leading zeroes,but its not working. This is my code,

LOOP AT wt_filedata INTO wa_filedata.

DO cnt2 TIMES.

SPLIT wa_filedata AT c_tab INTO: wa_filedata1 wa_filedata2 .

wa_filedata = wa_filedata2.

ENDDO.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = wa_filedata1

IMPORTING

OUTPUT = wa_filedata1.

CLEAR wa_filedata.

CONCATENATE wa_filedata1 wa_filedata2 INTO wa_filedata SEPARATED BY c_tab.

ENDLOOP.

Please help me,

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
564

YOUR INPUT AND OUTPUT PARAMETERS ARE SAME .

take different output paramter in which u will get leading zero output.

take it as character type.

plz reward if useful

vivek

4 REPLIES 4
Read only

Former Member
0 Likes
565

YOUR INPUT AND OUTPUT PARAMETERS ARE SAME .

take different output paramter in which u will get leading zero output.

take it as character type.

plz reward if useful

vivek

Read only

0 Likes
564

hi Vivek Gaur ,

Thanks for ur timely reply. It solved my problem.

Read only

Former Member
0 Likes
564

Sure use the function CONVERSION_EXIT_ALPHA_INPUT, this will add leading zeros to a character based field of any length.


data: lv_c(10) type c value '123'.
 
call function 'CONVERSION_EXIT_ALPHA_INPUT'
          exporting 
                  input = lv_c
          importing
                 output = lv_c.
write:/ lv_c.

Regards,

Read only

Former Member
0 Likes
564

Hi,

I think u just go into debug mode there u c step by step where the values are not appearing....

according to me i am not finding any kind of mistake with the code.......i hope u will get more good suggestions.....

Regards.