cancel
Showing results for 
Search instead for 
Did you mean: 

URGENT--Converting the BAPI return structure to XML

Former Member
0 Kudos

Hi,

I need to convert the return structure(export parameter) from a BAPI call to XML but not able to make out how to do that.

Before this I was required to convert the BAPI return table(export table) to XML and I did that by first converting it to the AdoDataTable, added it to a dataset and then used the builtin function to return the dataset in XML format. But here I am not able to make out how can I do the same with the Export structure.

Any help would be appreciated.

You may also mail on ankit_bhansali@satyam.com

regards,

Ankit Bhansali

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

If the XML schema that you find as Xml attributes on the fields of the structure is good for you, you can just use the XML serializer to serialize it out:

XmlSerializer ser = new XmlSerializer(typeof(BRFCKNA1));

ser.Serialize(...);