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: 

Does GUI_DOWNLOAD work fine with ITS?

Former Member
0 Kudos

Hi All,

I have a requirement where i have to download a PDF file to a network drive.I have used GUI_DOWNLOAD for the same.In the foreground I am using ITS Service to run that.Its like On click of 'Submit' button from Webbrowser ,GUI_DOWNLOAD gets called in the background SAP system.But its throwing an Internal Error 0x2101 on that.I found that till GUI_DOWNLOAD the program in the background is working fine.Have anybody faced a similiar situation and suggest me any alternatives.

Thanks in Advance,

Anjaly

1 REPLY 1

Former Member
0 Kudos

Hi ,

GUI_DOWNLOAD function doesn't work in Background mode for that you have use download the file in application server

The FM GUI_DOWNLAOD will not work in background mode, as it has to download to the local PC, but when run in background it is being run on the APP server and thus loses the link with the Desktop, so it does not know what desktop to download the file to and hits an error which is why the program will dump.

For background process use this link.

<a href="http://sapabap.iespana.es/sap/info/rfcexec/rfcexec_e.htm">Download Process in Background</a>

Please reward if useful.