We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] FM Gui_Download - Error Calling Data Provider

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from Gerhard Lang on Jan 30 at 9:24 AM
Hello Mario,

If the OS of the presentation server (=Frontend) is varying, you will have to determine on which OS the download function is called before you set the download path.

You can do this using the FM CL_GUI_FRONTEND_SERVICES=>GET_PLATFORM or simple check the existence of the path with ...=>DIRECTORY_EXIST, see the details there. You then can switch the download path, depending on the value you got from the FM.

Regards
Gerhard

---------------Original Message---------------
From: Mário Campos
Sent: Friday, January 27, 2012 9:13 PM
Subject: FM Gui_Download - Error Calling Data Provider

Hello masters,

I develop a program that catches a converted 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 when 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

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Toolbox.com and message author.
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Gerhard Lang  
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language