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: 

GUI_DOWNLOAD unknown_dp_error

0 Kudos

Hi,

I'm trying to use GUI_UPLOAD to read some data from a excel file, if file was opened , the Fm will return 12(UNKNOWN_DP_ERROR).

Unless, I close the file, it can get the file content normally.

Is there a way to get the contents of the file when it is opened?

    " load file
    cl_gui_frontend_services=>gui_upload(
      exporting
        filename   = iv_full_path
        filetype   = 'BIN'
      importing
        filelength = lv_filesize
      changing
        data_tab   = lt_bin_data
      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 ).


0 REPLIES 0