I'm trying to upload a xml file from PC desktop using cl_gui_frontend_services, method gui_upload, like this:
DATA: it_file TYPE TABLE OF xstring. DATA: gv_filename TYPE string. DATA: gv_xml type xstring. CALL METHOD cl_gui_frontend_services=>gui_upload EXPORTING filename = gv_filename filetype = 'BIN' IMPORTING header = gv_xml CHANGING data_tab = it_file EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.
I'm getting a short dump, and in debug I found that VSCAN_PROF is being read, and since /SCET/GUI_UPLOAD is not active, the error is being thrown.
Is there a way to avoid this from being checked? Or is it easy to parameterize this scan configuration?