2013 May 17 9:43 PM
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,
2013 May 17 9:55 PM
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.
2013 May 18 3:37 AM
2013 May 19 9:11 PM
2013 May 20 2:41 PM
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,
2013 May 21 12:08 AM
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
2013 May 21 7:39 AM
2013 May 20 2:51 PM
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.