‎2006 Aug 30 12:17 PM
hi
i have report when i operate it on online it woek well, but when i opeare it in background they program doesn't fall but i dont see that anything happen.
i use some function that could be the problem
TMP_GUI_DIRECTORY_LIST_FILES - to get fiels
METHOD CL_GUI_FRONTEND_SERVICES=>FILE_COPY
METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
maybe you know what the problem could be and how to fix it?
thanks
‎2006 Aug 30 12:20 PM
These FM's do not work. For this you need to do some settings to download the file to foreground while running the program in background. Search this forum there is one link for PDf given where we can actually configure RFC settings to do this.
‎2006 Aug 30 12:54 PM
Hi
thanks about the answer but there is no FM that can read fiels in BACKGROUND?
‎2006 Aug 30 12:40 PM
Hi,
Check this...
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2">Accessing the Frontend/PC in Background</a>
Regards
vijay
‎2006 Aug 31 5:48 AM
Hi !
Having any acces to files on the frontend-pc is a service of SAP-Gui.
Because in background-scenario there's no SAP-Gui, there is no "easy" method to have access to frontend-pc-files.
You max think about the following:
Bring the file from the frontend to a directory from that
SAP can have access even in background (i.e. a directory on application-server).
Then run your programm in background using the "OPEN DATASET" statements.
If your file is on the application-server, take care that your batch-job is running on the same server or that the directory is mounted to the other application-serves !
Regards
Rainer
Some points would be nice if that helped a bit.