Skip to Content
0
Former Member
Sep 13, 2010 at 11:49 AM

GUI_UPLOAD FM

39 Views

Hi,

Im trying to upload a Notepad file using FM GUI_UPLOAD.I have total 255 columns. Im getting the error as Access Denied(13 exception)The following is my code. please help me.

data p_apfile LIKE rlgrap-filename.

    DATA: lv_filepath TYPE string.     
    lv_filepath = p_apfile.

I_EXTRACT1 is an Internal table which has got 255 columns.

CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = lv_filepath
       filetype                      = 'ASC'
      TABLES
        data_tab                      = i_extract1
     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.

Regards,

Deepthi.

Edited by: Thomas Zloch on Sep 13, 2010 1:52 PM - code tags added