<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XML To ABAP Transformatiom in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformatiom/m-p/4050405#M968199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are not comfortable with XSLT do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. read the xml into a string&lt;/P&gt;&lt;P&gt;2. convert the string to xstring using SCMS_STRING_TO_XSTRING&lt;/P&gt;&lt;P&gt;3. now use FM SMUM_XML_PARSE and pass the xstring xml_input parameter of that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will parse the whole xml and give you an itab of element name value pairs which you can read easily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=3788550" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=3788550&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=4164692" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=4164692&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 12:08:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T12:08:24Z</dc:date>
    <item>
      <title>XML To ABAP Transformatiom</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformatiom/m-p/4050404#M968198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following sample xml:&lt;/P&gt;&lt;P&gt;&amp;lt;SERVICE name="CreateContact"&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;INPUT&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;ATTRIBUTE ATTRNAME="FNAME" type="freetext"&amp;gt;Test&amp;lt;/ATTRIBUTE&amp;gt;&lt;/P&gt;&lt;P&gt;	        &amp;lt;ATTRIBUTE ATTRNAME="LNAME" type="freetext"&amp;gt;Contact&amp;lt;/ATTRIBUTE&amp;gt;&lt;/P&gt;&lt;P&gt;	        &amp;lt;ATTRIBUTE ATTRNAME="DOB"   type="date"&amp;gt;30/12/1982&amp;lt;/ATTRIBUTE&amp;gt;&lt;/P&gt;&lt;P&gt;	        &amp;lt;ATTRIBUTE ATTRNAME="ROLE"  type="Combo"&amp;gt;BUP001&amp;lt;/ATTRIBUTE&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/INPUT&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/SERVICE&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert this to an internal table , which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;FNAME :  Test&lt;/P&gt;&lt;P&gt;LNAME  :  Contact&lt;/P&gt;&lt;P&gt;DOB  :     30/12/1982&lt;/P&gt;&lt;P&gt;ROLE  : BUP001&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this using CALL Transformation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nisha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nisha NC on Jul 7, 2008 2:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 12:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformatiom/m-p/4050404#M968198</guid>
      <dc:creator>nisha_vinod</dc:creator>
      <dc:date>2008-07-07T12:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: XML To ABAP Transformatiom</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformatiom/m-p/4050405#M968199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are not comfortable with XSLT do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. read the xml into a string&lt;/P&gt;&lt;P&gt;2. convert the string to xstring using SCMS_STRING_TO_XSTRING&lt;/P&gt;&lt;P&gt;3. now use FM SMUM_XML_PARSE and pass the xstring xml_input parameter of that function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will parse the whole xml and give you an itab of element name value pairs which you can read easily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=3788550" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=3788550&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=4164692" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=11194539&amp;amp;messageID=4164692&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you to solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 12:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xml-to-abap-transformatiom/m-p/4050405#M968199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T12:08:24Z</dc:date>
    </item>
  </channel>
</rss>

