12-04-2008 1:36 PM
I use the method gui-download, but when I open the file which I have downloaded I have between the digits always one blank. can I sove this issue with codepage or something else?
12-04-2008 3:24 PM
Hi you need to split the lines at TAB mark like below:
DATA: xsep TYPE xstring value '09', "tab mark
sep TYPE string.
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = xsep
IMPORTING
out_string = sep.
READ TABLE it_file_data INDEX 1.
SPLIT it_file_data AT sep INTO TABLE it_splitted IN CHARACTER MODE.
Then if you need the lines back (without this TAB mark), concatenate all component from it_splitted to some other internal table.
Regards
Marcin
12-04-2008 2:54 PM
hi ,
Make sure you are using it in this format only.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\temp\text.txt'
filetype = 'ASC'
IMPORTING
filelength = fleng
TABLES
data_tab = text_tab
EXCEPTIONS
file_write_error = 1
invalid_type = 2
no_authority = 3
unknown_error = 4
OTHERS = 10.
thanks.
12-04-2008 3:14 PM
Hi,
use this class
CL_GUI_FRONEND_SERVICES~GUI_DOWNLOAD.
I hope this will help you.
thanks,
12-04-2008 3:24 PM
Hi you need to split the lines at TAB mark like below:
DATA: xsep TYPE xstring value '09', "tab mark
sep TYPE string.
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = xsep
IMPORTING
out_string = sep.
READ TABLE it_file_data INDEX 1.
SPLIT it_file_data AT sep INTO TABLE it_splitted IN CHARACTER MODE.
Then if you need the lines back (without this TAB mark), concatenate all component from it_splitted to some other internal table.
Regards
Marcin