📘ABAP - Cl_gui_frontend_services=>gui_download
Definición de Cl_gui_frontend_services=>gui_download
El método estándar de SAP GUI_DOWNLOAD perteneciente a la clase CL_GUI_FRONTEND_SERVICES, se utiliza para grabar datos en archivos locales.
Podemos generar la estructura de la llamada del método a través del botón de la barra de herramientas "Modelo". Para ello presionamos el botón y seleccionamos la opción "Patrón para objetos ABAP".
En la siguiente ventana de diálogo, a la derecha del texto "Clase/Interace" introducimos el nombre de la clase "CL_GUI_FRONTEND_SERVICES" y en el campo "Método" escribimos "GUI_DOWNLOAD" y se generará el patrón para el método:
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
* bin_filesize =
filename =
* filetype = 'ASC'
* append = SPACE
* write_field_separator = SPACE
* header = '00'
* trunc_trailing_blanks = SPACE
* write_lf = 'X'
* col_select = SPACE
* col_select_mask = SPACE
* dat_mode = SPACE
* confirm_overwrite = SPACE
* no_auth_check = SPACE
* codepage = SPACE
* ignore_cerr = ABAP_TRUE
* replacement = '#'
* write_bom = SPACE
* trunc_trailing_blanks_eol = 'X'
* wk1_n_format = SPACE
* wk1_n_size = SPACE
* wk1_t_format = SPACE
* wk1_t_size = SPACE
* show_transfer_status = 'X'
* IMPORTING
* filelength =
changing
data_tab =
* EXCEPTIONS
* file_write_error = 1
* no_batch = 2
* gui_refuse_filetransfer = 3
* invalid_type = 4
* no_authority = 5
* unknown_error = 6
* header_not_allowed = 7
* separator_not_allowed = 8
* filesize_not_allowed = 9
* header_too_long = 10
* dp_error_create = 11
* dp_error_send = 12
* dp_error_write = 13
* unknown_dp_error = 14
* access_denied = 15
* dp_out_of_memory = 16
* disk_full = 17
* dp_timeout = 18
* file_not_found = 19
* dataprovider_exception = 20
* control_flush_error = 21
* not_supported_by_gui = 22
* error_no_gui = 23
* others = 24.