Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function like GUI_UPLOAD/GUI_DOWNLOAD for background

Former Member
0 Kudos
1,173

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
163

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

6 REPLIES 6

Former Member
0 Kudos
164

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

0 Kudos
163

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.

Former Member
0 Kudos
163

Put those files in application server and use OPEN DATASET method to upload those files.

Let me know if you anything more.

Cheers,

Satya

0 Kudos
163

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

Former Member
0 Kudos
163

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.

0 Kudos
163

Thanks for the replies. I'm going to try and figure something out.