Application Development and Automation 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: 
Read only

Function like GUI_UPLOAD/GUI_DOWNLOAD for background

Former Member
0 Likes
1,990

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
Read only

Former Member
0 Likes
980

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

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?

6 REPLIES 6
Read only

Former Member
0 Likes
981

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

Read only

0 Likes
980

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.

Read only

Former Member
0 Likes
980

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

Let me know if you anything more.

Cheers,

Satya

Read only

0 Likes
980

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

Read only

Former Member
0 Likes
980

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.

Read only

0 Likes
980

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