09-19-2008 9:39 AM
Hi All,
I have an itab with following data.
column
000001
000002
000003
000004
000005
I download this file using FM 'GUI_DOWNLOAD' as an .xls file.
but when i open this file in excel, the column data dosent contain prefixed zeros. i want the data to be downloaded with prefixed zeros.
Thank You All,
sal.
09-19-2008 9:40 AM
i thnk its because of the .XLS its happening like this .... u download it to .txt and check ...
09-19-2008 9:41 AM
Hi,
Try Downloading it in text format, excel format doesnt retain zeros.
regards
Karthik D
09-19-2008 9:42 AM
hi,
use Fm: 'CONVERSION_EXIT_ALPHA_INPUT'
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wl_kunnr-low
IMPORTING
output = wl_kunnr-low.
it will help you
reagrds
rahul sharma
09-19-2008 9:43 AM
you have to download the value in character format with preceding single qoute .
for example -
if you are downloading 000010 means, assign that value as '000010.
So that, excel can treat it as character & the zeros will be retained.
either after download the excel do the change of properties of excel.
09-19-2008 9:46 AM
While using GUI_DOWLOAD
Try giving FILETYP as DBF instead of ASC
Hope this helps!
Regards,
Prashant
09-19-2008 9:48 AM
Hi Salma
Download in 'DBF fomrat ..'
CALL FUNCTION 'GUI_DOWNLOAD'*
filetype = 'ASC' "--------> change file type to 'DBF'
Regards
09-19-2008 9:51 AM
Hi,
Either try Downloading it in text format as excel format doesnt retain zeros.
Or
Make the column format as custom ie.select the whole column of excel sheet then right click to format cells in numbering we put custom and value as 000000 so that it will retain 0's.
thanx.
09-19-2008 9:59 AM
hi Krishna,
by giving itab-column = '00001. it will solve the problem but that symbol " ' " also appears.
thanks
09-26-2008 1:35 PM
hi,
Download in 'DBF fomrat ..'
CALL FUNCTION 'GUI_DOWNLOAD'*
filetype = 'ASC' "----
> change file type to 'DBF'
or
you have to download the value in character format with preceding single qoute .
for example -
if you are downloading 000010 means, assign that value as '000010.
So that, excel can treat it as character & the zeros will be retained.
either after download the excel do the change of properties of excel.
or
by giving itab-column = '00001. it will solve the problem but that symbol " ' " also appears.
regards
rahul