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

Upload XML file from PC to Application Server

Former Member
0 Likes
1,534

Hi All,

I want to upload xml file from Presentation server to Application server. Can we do this using FM GUI_UPLOAD ? which I tried and unable to open the XMl file in application server. it throws error as not .txt file.

Is there any other way to place the file ?

Appreciate your help.

Thanks

Rashmi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
933

GUI_UPLOAD should work. I guess you are not passing the parameters correctly.

Also, you can use the method GUI_UPLOAD in the class: CL_GUI_FRONTEND_SERVICES.

Please copy & paste your code if the issue is not resolved.

-Chandra

4 REPLIES 4
Read only

Former Member
0 Likes
934

GUI_UPLOAD should work. I guess you are not passing the parameters correctly.

Also, you can use the method GUI_UPLOAD in the class: CL_GUI_FRONTEND_SERVICES.

Please copy & paste your code if the issue is not resolved.

-Chandra

Read only

0 Likes
933

Hi Chandra,

Thanks for your response. I was able to place the xml file in application server using FM GUI_UPLOAD. But, I was not able to open it there. It was throwing error as 'Its not .txt file'

Any idea why this error occurs in AL11 ?

Thanks

Rashmi

Read only

0 Likes
933

Did you include .xml at the end of the file name?

Also, did you try to download the file (using CG3Y) and try opening it?

Read only

0 Likes
933

Hi Chandra,

The issue got resolved. Ideally it didn't load the file properly through GUI_UPLOAD. I used transaction CG3Z to load the xml file in the application server.

Thanks

Rashmi