10-19-2007 12:30 PM
Hello,
I am writing a program that will run in the background a create a file on the SAP app server. I would like to get this from that server to a network server. I know about the tocde CG3Y and the function module C13X_APP_TO_FRONT_END that this tcode uses. I tried to run this function module stand alone but the only this that you are allowed to enter in the filetype. after that a pop-up box appears where you enter the filenames. is there a way that I could use this in my program to automatically send the file from the app server to the network server.
thanks in advance for the help
10-19-2007 2:26 PM
You can communicate with the frontend via the GUI_DOWNLOAD function module in background, but you really have to jump thru hoops to do it. Here is a document.
You can see that this is really a pain, and you would have to do all this to every PC that is to be used in this senario, so really the rule of thumb is that you can not download to PC from the background.
Regards,
Rich Heilman
10-19-2007 2:04 PM
use fm GUI_DOWNLOAD
or class CL_GUI_FRONTEND_SERVICES
method GUI_DOWNLOAD
____________
God's blessing
Andreas
10-19-2007 2:06 PM
I am running this job in background
does GUI_DOWNLOAD work when running in background
10-19-2007 2:21 PM
Timothy,
GUI_DOWNLOAD doesn't work in background. You can use Open Dataset to read the file from the App Server.
Chandra.
10-19-2007 2:26 PM
You can communicate with the frontend via the GUI_DOWNLOAD function module in background, but you really have to jump thru hoops to do it. Here is a document.
You can see that this is really a pain, and you would have to do all this to every PC that is to be used in this senario, so really the rule of thumb is that you can not download to PC from the background.
Regards,
Rich Heilman