05-24-2006 12:49 PM
Which FM or CLASS Interface should be used to download a file in background.
I used CALL METHOD cl_gui_frontend_services=>execute.
But its giving cancelled status.
Ravi
05-24-2006 12:51 PM
Hi,
If you want to download a file from the desktop server, you can use the function module in BDC 'GUI_DOWNLOAD' or if you are downlading it from the application server, you can use OPEN DATASET and CLOSE DATASET and then use TRANSFER to transfer the internal table into the file.
Is that what you want?
Regards,
Aswin
05-24-2006 12:52 PM
05-24-2006 12:52 PM
Hi,
The class will not work in background.
You should use OPEN DATASET, TRANSFER, CLOSE DATASET statements and you can download data only to the application server in background.
Regards,
Ravi
Note : Please mark the helpful answers
05-24-2006 12:52 PM
Data transfer is not possible on the PRESENTATION SERVER in BACKGROUP MODE.
05-24-2006 12:52 PM
05-24-2006 12:53 PM
Hi ravi,
1. We cannot download a file in background
to any front-end server.
2. For that we need to use
open dataset
transfer
close dataset
so that the file is downloaded on application server.
regards,
amit m.
05-24-2006 12:53 PM
Check the link to download a file in background
http://www.sap-img.com/abap/download-in-background-in-excel-format.htm
Regards,
Ravi
05-24-2006 12:54 PM
Hi,
the Fm's you are expected won't work in Background. so you should explicitly go for writing the File to APplication server using
Open dataset, loop at itab and Transfer , Close dataset.
you can see lot of samples to write the content to application server.
Regards
vijay
05-24-2006 12:56 PM
05-24-2006 1:03 PM
Hi you can shcek with the following t-codes :
CG3Z : Upload file from presentation server to application server
CG3Y : To Download files from application server to presentation server
Regards,
Kunal.