Hey guys, I have a question for you. I'm looking to do some sort of a download that executes in the background and stores the file onto a networked drive. I don't think WS_DOWNLOAD works because once you start in the background you loose access to the download destination (or something to that effect).
Anyways, was wondering if there was a way to use ws_download or another equivalent program to execute this the background. Thanks a lot.
-Shaunt
Hi,
Did you try OPEN DATASET.
regards,
Prabhu Rajesh.
Hi,
DOWNLOAD function does not work in the background as that it will be able to access the Presentation server. What you can do is send mail to the id and then download that from that id as mail can be send in the background.
The FM used for sending mail is SO_NEW_DOCUMENT_ATT_SEND_API1
Regards,
Amit
Couple of options:
1> Use Samba with Unix Share
2> Use sapftp, first write to UNIX and then use FTP_COPY to move file from UNIX to NT, better error handling
3> Install SAP app instance on NT server and make it as Background server. Run all jobs on this instance and use open dataset option and files will be created directly NT server
In situations like this, we normally take the help of the networking people and have the Windows directory mounted onto the SAP application server. That way you can download it to an application server directory in the background and yet see it in your desktop directory at the same time.
Let me know if this helps.
Srinivas
Add a comment