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

Function module that uploads XML to SAP

Former Member
0 Likes
396

Hi guys,

I have implemented a FM that uploads a *.xml file to an internal table.

If i execute it in SAP it works, but i would like to call that FM outside SAP via web service.

I have created and published a web service that calls this FM and i'm tryiing to execute it via soap UI and it's not working.

I have debugged the FM when it's called from soapui and i can see that the exception is being trhowed in the method cl_gui_frontend_services=>gui_upload.

Any idea?

Thanks

Jon

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
359

Hi Jon,

In webservices GUI_UPLOAD will not work, since it is a GUI function module or method. Alterantively you can upload XML file as a string data into application server, there after u can upload the data into desired place by scheduling Event trigger job.

Thanks and Regards,

2 REPLIES 2
Read only

Former Member
0 Likes
360

Hi Jon,

In webservices GUI_UPLOAD will not work, since it is a GUI function module or method. Alterantively you can upload XML file as a string data into application server, there after u can upload the data into desired place by scheduling Event trigger job.

Thanks and Regards,

Read only

Former Member
0 Likes
359

Hi,

GUI_UPLOAD will not work in the background. So you need to put the fie in the application server and try with the OPEN DATASET.

~Vaas