on 05-28-2012 2:48 PM
Hi,
It's possible to generate an xml file from context and download it directly without saving the file to a repository?
I need to import data from the backend system using call RFC, then i want to download data , localy, with export in xml format?
How can I do this?
Thanks
Hi Mattia
If you call RFC using Webdynpro RFC Model you can export the RFC model class object to XML using one of the toXml(...) methods. Here is an example:
<input model class> input = new <input model class>();
// set input parameters
// execute BAPI
input.execute();
// trace BAPI output to XML
<output model class> output = input.getOutput();
String bapiOutXML = output.toXml(output.getClass().getName().replaceFirst(".*\\.", ""), "");
This works because the Webdynpro RFC model classes implement interface com.sap.aii.proxy.framework.core.BaseType which has these toXml methods.
Regards, Siarhei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check this http://scn.sap.com/thread/16492
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.