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

GUI_UPLOAD does not replace WS_UPLOAD.

Former Member
0 Likes
1,200

Hi All,

WS_UPLOAD is obsolete and does not support unicode, but it was able to be executed in a background programs.  GUI_UPLOAD is currently supported and it does unicode, but only runs in interactive GUI programs.

Does any know of an FM that both supports unicode and can be excuted in a background programs?

Dwight,

7 REPLIES 7
Read only

matt
Active Contributor
0 Likes
1,120

Erm.... WS_UPLOAD doesn't work in background and never did. Reason being, like

cl_gui_frontend_services=>GUI_UPLOAD, it utilises the SAPGui to move the data from the presentation server to the application server. You haven't got a presentation server nor a SAPGui when you run in background.

There are various workarounds of course, but these work equally with whatever technology you use.

Read only

arindam_m
Active Contributor
0 Likes
1,120

Hi,

Do OPEN DATASET, CLOSE DATASET...

Cheers,

Arindam

Read only

bastinvinoth
Contributor
0 Likes
1,120

This message was moderated.

Read only

Former Member
0 Likes
1,120

Hi All,

Let me clairify, I am trying to read a file from a remote server to the application server via an RFC fruction call in a background job on the remote server.  The remote server's file system is not visable to the application server therefore DATASET will not work.

Since the file I am tying to transfer is text with linefeeds, I may just feed one line at a time in a loop appending each line to a DATASET on th application server.

However if anyone has a more graceful approach it would be much appriciated.

Dwight,

Read only

0 Likes
1,120

Hi,

Have you tried with EXTERNAL COMMANDS. Don't quiet know the kind of remote server that you are trying to connect to but with EXTERNAL COMMANDS you might be able to give an FTP command to transfer to your application server.

Cheers,

Arindam

Read only

0 Likes
1,120

Does the remote server support FTP, that could be another solution to transfer file ?

Regards,
Raymond

PS: But how did you use WS_UPLOAD successfully in good old times for this requirement ?

Read only

mayur_priyan
Active Participant
0 Likes
1,120

Hi,

As Matthew righty said we need to use

cl_gui_frontend_services=>GUI_UPLOAD to overcome your issue.

But remember to clear the internal table before use.