‎2008 Feb 07 6:24 AM
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.
‎2008 Feb 07 6:28 AM
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
‎2008 Feb 07 6:28 AM
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
‎2008 Feb 07 6:36 AM
hi Vivek Gaur ,
Thanks for ur timely reply. It solved my problem.
‎2008 Feb 07 6:33 AM
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,
‎2008 Feb 07 6:40 AM
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.