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

xml upload in background

Former Member
0 Likes
443

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

3 REPLIES 3
Read only

Former Member
0 Likes
393

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.

Read only

0 Likes
393

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

Read only

Former Member
0 Likes
393

CHeck this PDF document.

Utilities for downloading and uploading OO ABAP classes in XML fiormat

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e66701fc-0d01-0010-9c9a-f8a36c4e...