Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem with cl_gui_frontend_services(gui_upload) (VSCAN)

valter_oliveira
Active Contributor
0 Kudos

Hello there.

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?

Regards,

Valter Oliveira

1 REPLY 1

Former Member
0 Kudos

Hi,

Find the OSS note 841387 related to this issue. You can use other class to upload XML file.

Go through the [LINK|http://wiki.sdn.sap.com/wiki/display/ABAP/UploadXMLfiletointernal+table] to upload XML file to internal table.

Regards,

Shanmugavel Chandrasekaran