02-28-2007 5:16 PM
Hi experts,
I'm trying to use class cl_gui_frontend_services (method gui_download) to download a file in the pc.
The problem is that i have a XTRING field (binary string with thousands of characters) and this method, with filetype 'BIN', only accepts X fields (65000 characters aprox).
Is there any other class i can use?
Best regards.
Valter Oliveira.
03-01-2007 9:42 AM
I filled the data table, spliting the XTRING into n X variables, USING THIS DO STATEMENT:
TYPES: BEGIN OF ty_file,
line(65000) TYPE x,
END OF ty_file.
DATA: out TYPE xstring,
wa TYPE ty_file,
lenght TYPE i,
data_tab TYPE STANDARD TABLE OF ty_file WITH DEFAULT KEY INITIAL SIZE 0.
DO.
lenght = STRLEN( out ).
IF lenght GT 65000.
wa-line = out(65000).
out = out+65000.
APPEND wa TO data_tab.
ELSE.
wa-line = out(lenght).
APPEND wa TO data_tab.
EXIT.
ENDIF.
ENDDO.
... CALL METHOD cl_gui_frontend_services=>gui_download
Best regards.
Valter Oliveira.