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: 

Function Gui_Download - Error calling Data Provider

Former Member
0 Kudos

Hello masters, i develop a program that catches a pdf file and then we can download. in windows everything is working but the client uses Linux and SAP Gui For Linux and when is making download of file, systems throws message FES011 - Error calling Data Provider.

when i'm using windows the path is build correct way but i'm using Linux the path isn't build correct, for example like this, /home/rui/desktop\dir_1000.pdf . in debug i changed \ to / but systems throws the same error message.

Someone have some clue to solve this problem.

 
  CONCATENATE gv_dir '\DIR_' <fs_final_alv>-pernr
                  '.pdf' INTO lv_fich.

      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = lv_fich
          filetype                = 'BIN'
        TABLES
          data_tab                = lt_pdf_output
        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
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

regards and thanks in advance.

Mario

1 ACCEPTED SOLUTION

Former Member

Hi,

I think there is a problem with the .txt file you are trying to upload.

Check that the file name has no non-numeric characters.

5 REPLIES 5

Former Member
0 Kudos

validate the path..

/home/rui/desktop/dir_1000.pdf 

check the case of the path.. as its case sensitive in linux and check if there is a space left some where.

Former Member

Hi,

I think there is a problem with the .txt file you are trying to upload.

Check that the file name has no non-numeric characters.

0 Kudos

hello Parupelly , im not trying to upload but to download and file it is a PDF file.

the file name is like this DIR1000.pdf

regards and thanks

0 Kudos

Hi,

Maybe this is authorization issue? If I were you, I would try to save any data on local computer from any standard SAP transaction (spool or anything). If it works then set break-point inside this FM, check what parameters are passed.

If problem really is data provider, then maybe if you reinstall sap logon it will help.

Try it and please share results with us.

BR

Marcin Cholewczuk

Former Member
0 Kudos

hello masters, thanks to all.

Soumyaprakash was right... just because Linux is case-sensative, the system was putting all letters of path in upper case

I just change in screen painter the field to accept upper/lower letters and now system mantain the letters has they come.

regards and thanks one more time

Mario