I am trying to run my program in background which uploads files using GUI_UPLOAD and creates orders. I can process this program in foreground without any problems but the job log shows the following message "Failed to upload from input file " when I execute a background job.
GUI_upload function module runs on the presentation server.as its run in background its not done on ur pc and its done on the application server.
for this u can use OPEN DATASET, TRANSFER DATASET,READ DATASET etc.
find the help typing any of the above in ABAP editor.
Do rewar points if it is helpful.
As postet bevor the GUI_UPLOAD functions are part of the SAP-GUI running on the presentation-server (PC, Mac ...).
If ther programm is running in the background there ist not presentation-server and no GUI-function support.
So you'll have to redesign your programm.
First make sure to transfer your file to the application-server that runs your job (or to a "mounted" directory to with the server has access).
You cand transfer the file by using FTP oder the SAP CG3Z Transaction.
Then change your programm using the "OPEN DATASET..."
statement reading the file on the SAP-application-server.
That should work...
Message was edited by: Rainer Bonenberger