Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

Create XML file from ABAP with SOAP Details

Former Member
0 Kudos


I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.

I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.

My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?

I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.


<xsl:transform xmlns:xsl="" xmlns:sap="" version="1.0">

<xsl:template match="/">

<SOAP:Envelope xmlns:SOAP="">










<xsl:copy-of select="*"/>







In ABAP program, I have written below code for calling above Transformation.

call transformation ('Z_ID')

source tab = im_t_output[]

result xml xml_out.

call function 'SCMS_STRING_TO_FTEXT'


text = xml_out


ftext_tab = ex_t_xml_data.


Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.

Is there any easy way to create the XML file in CALL Transformation. Please help.



Active Contributor
0 Kudos

Looks like you have already created the transformation "Z_ID"

Take a look at the following thread, it answers many of the questions you have asked:

[ABAP data to XML conv with UTF-8 encoding and custom namespace|;


Former Member
0 Kudos

Thanks for the reply. Actually that thread doesn't helped me.

0 Kudos

Hi ,

i do have the save requirement to send the data to non SAP system in XML based format.

every time the user logged into portal in ESS single sign on needs to be completed using the dynamic key.

that dynamic key will be issued by non sap system.

can u tell me what is the solution for this.