‎2008 Feb 02 4:53 AM
Hi,
My requirement is that i need to upload an xml file from another server which is on lan .This needs to be done in the background. i am getting a parsing error while running it in background
Edited by: abhinay chelamcherla on Feb 2, 2008 7:59 AM
‎2008 Feb 02 4:58 AM
Use FM "GUI_UPLOAD"
Check the sample code:
upload the xml file
filename = 'C:\so_new.xml' .
call function 'GUI_UPLOAD'
exporting
filename = filename
filetype = 'BIN'
has_field_separator = ' '
header_length = 0
importing
filelength = size
tables
data_tab = xml_tab
exceptions
others = 1.
Reward if useful.
‎2008 Feb 02 5:43 AM
Hi Sravan,
I have used gui_upload to upload and gui_download to download and again it works fine in foreground .But while doing it in background it again says the material does not exist.here the material is the value i need to pass to the logic and again generate a xml file.It works fine in foreground.Thanks for your answer
‎2008 Feb 02 5:28 AM
CHeck this PDF document.
Utilities for downloading and uploading OO ABAP classes in XML fiormat