‎2007 Jun 01 4:08 PM
Hi sdn friends,
i'm looking for a class (and its method) wich generates a file from an internal table
(like the WS_DOWNLOAD FM)
Thanks,
Regards,
Soufiane
‎2007 Jun 01 4:13 PM
Hi,
You can use class CL_GUI_FRONTEND_SERVICES and method GUI_DOWNLOAD.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
FILENAME = filename
CHANGING
DATA_TAB = content.
Regards,
Ferry Lianto
‎2007 Jun 01 4:13 PM
Hi,
You can use the class CL_GUI_FRONTEND_SERVICES and the method is GUI_DOWNLOAD
Thanks,
Naren
‎2007 Jun 01 4:13 PM
Hi,
You can use class CL_GUI_FRONTEND_SERVICES and method GUI_DOWNLOAD.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
FILENAME = filename
CHANGING
DATA_TAB = content.
Regards,
Ferry Lianto
‎2007 Jun 01 4:32 PM
Thank you for the replies,
wich type for the <b>filename</b> and <b>content</b> table for :
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
FILENAME = filename
CHANGING
DATA_TAB = content.
Soufiane
‎2007 Jun 01 4:34 PM
Hi,
The file type parameter FILETYPE can accept only asc or bin..
If you want TAB delimited in the parameter WRITE_FIELD_SEPARATOR pass 'X'
Thanks,
Naren
‎2007 Jun 01 4:51 PM
‎2007 Jun 02 12:10 PM
DATA_TAB is your internal table here so there's no specific type.
Just pass your internal table(say ITAB).
‎2007 Jun 14 10:46 AM
WS_DOWNLOAD is obselete...dont use it...
better to use GUI_DOWNLOAD... ok