09-08-2009 2:20 PM
Hi,
I have an issue.
When i am trying to download a ALV report to a spread sheet, I am not able to get the leading zeros in the spread sheet.
when i prepend with ( ' ) to the field, It's displaying ( ' ) in the ALV output and spread sheet with leading zeros. But i don't want to display ( ' ) i the output.
Please suggest me how can i solve this issue.
Thanks & Regards
Narayana
09-08-2009 2:24 PM
you can add some '_' (underscore) before it?? it wont display those __s
09-08-2009 2:24 PM
you can add some '_' (underscore) before it?? it wont display those __s
09-08-2009 4:21 PM
Search in , SAP market place for SAP Note with Excel with missing leading zeros.
Hope you get some help.
Edited by: harsh bhalla on Sep 8, 2009 8:52 PM
09-08-2009 7:05 PM
Do not concatenate ' while showing output in ALV ,
instead concatenate ' to the field which U need to show with leading zeros while downloading to excel ...
form user_command.
case sy-ucomm.
when 'DWLD'.
loop at it_final.
concatenate '''' it_final-field1 into it_final1-field1.
......... " fill all the fields which needs leading zeros
append it_final1.
endloop.
call FM to download to excel ...
endcase.
endform.
Hopw this works ...