Application Development and Automation 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: 
Read only

Background execution for html output

Former Member
0 Likes
629

Hi Experts,

I'm having a bit of a problem with creating folders and html files using background execution. The problem is that, everytime I execute the background processing, it cancels. The program actually creates folders and subfolders for the spool list in html file. I used the FM WS_DOWNLOAD to download the html file to the folder. Any ideas on this? Hope you could help me. Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
599

WS_DOWNLOAD (and the non-obsolete version GUI_DOWNLOAD or the class for this interaction) uses functionality in the SAPGui to transfer data to your PC / LAN... but a background job has no such connection and so cannot write to the PC / LAN that way. Typically a background job will write data to files on the application server and you then need to transfer them from there.

Jonathan

Read only

Former Member
0 Likes
599

WS_DOWNLOAD will not work in background mode as background processsing takes place at application server and WS_DOWNLOAD can download only at presentation server. Also this obsolete FM. Latest FM is GUI_DOWNLOAD. But this also doesnt work in background mode.

In background mode you will have to store the files on application server.

Have a look at below link:

[Working with files on application server|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3c7f358411d1829f0000e829fbfe/frameset.htm]

I hope it helps.

Thanks,

Vibha

Please mark all the useful answers

Read only

0 Likes
599

Hi. Thanks for your replies. Actually, I already know how to save in application server, it's just that we handle massive volume of data, that's why I was looking for other alternatives where in we can just save the files in a different server just so it wouldn't get too crowded in the application server. Will there be a difference if I try to do background processing in one of the shared folders in a server instead of using application server? Will it work? Thanks so much.

Edited by: Anna Bechayda on Apr 25, 2008 12:57 PM

Read only

0 Likes
599

The sites I've worked on typically have gigs & gigs on the application server (check with Basis) so provided the files are only present for a short while there typically is no problem... but you should be able to write (permissions depending, of course) to any {logical or physical} drive that can be seen from the application server - you could also consider an FTP step at the end of the job that writes the data in background to get your files across.

Jonathan