2005 Nov 16 11:56 PM
Is there a function or functions that work the same way as GUI_UPLOAD and GUI_DOWNLOAD but can be run both in the foreground and background?
2005 Nov 17 12:21 AM
Both those function modules upload text files from presentation server. When you run a prg in background then program will execute in application server not in SAP Client gui, so it will not have access to client machine. So, there is no FM available which will take text file from any presentation server when you run a prg in backgroud.
Cheers,
Satya
2005 Nov 17 12:21 AM
Both those function modules upload text files from presentation server. When you run a prg in background then program will execute in application server not in SAP Client gui, so it will not have access to client machine. So, there is no FM available which will take text file from any presentation server when you run a prg in backgroud.
Cheers,
Satya
2005 Nov 17 2:21 AM
Thanks Satya. I knew neither of these run in background but need to find something that will while handling the files the same way as these functions do. I have a txt file that can contain special characters like a line feed and need maintain those special characters without having the data jump to a new line.
I'll keep looking.
2005 Nov 17 2:25 AM
Put those files in application server and use OPEN DATASET method to upload those files.
Let me know if you anything more.
Cheers,
Satya
2005 Nov 17 3:09 AM
GUI_UPLOAD and GUI_DOWNLOAD can only work in the foreground. The reason for this is that they use some code which reside on the frontend PC. A background process knows nothing of the PC connected thru SAPgui. In order to "download" data to files, you must write the files to the application layer using OPEN DATASET, TRANSFER DATASET, CLOSE DATASET.
Regards,
Rich Heilman
2005 Nov 17 3:09 AM
Refer this link
http://www.sapdevelopment.co.uk/file/file_updown.htm
Hope this helps u.
Reward poinst and close the thread if ur problem got solved.
2005 Nov 17 7:24 PM
Thanks for the replies. I'm going to try and figure something out.