<?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: Call Transformation - how to parse multiple structures within XML -- in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651192#M1445008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two standard XSL transformations (I don't have an access to any system right now and I don't remember names) which converts any data to XML and vice versa. These transformations work with tables. I don't know what format is used to encode data in your XML but I might be the same format. If it is same format then you just need to extract section with data and use these standard transformation to convert XML into data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Mar 2010 00:32:22 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2010-03-05T00:32:22Z</dc:date>
    <item>
      <title>Call Transformation - how to parse multiple structures within XML --</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651190#M1445006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an XML string - it's basically the return XML from a PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In it, I have a flat structure like LFA1 and a table like LFB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've researched and have been able to bring my data back in to the LFA1 structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL TRANSFORMATION id
  SOURCE XML lv_xml_data_string
  RESULT ls_lfa1 = ls_lfa1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I also have an LFB1 table in my XML string - I can see the data in the XML broswer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get that data into my LFB1 table from the XML string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 23:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651190#M1445006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T23:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transformation - how to parse multiple structures within XML --</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651191#M1445007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually, to this case I will create a deep structure including the structure of LFA1 and LFB1,  and by calling SAP transformer ID, I will get LFA1 and LFB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, you XML strucuture should also be like this:&lt;/P&gt;&lt;P&gt;&amp;lt;ROOT&amp;gt;&lt;/P&gt;&lt;P&gt;      |_ &amp;lt;LFA1&amp;gt;&lt;/P&gt;&lt;P&gt;      |_&amp;lt;LFB1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, transformer ID will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, you can use your own transformer, and you could speicfy the output parameters in the transformer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following links also:&lt;/P&gt;&lt;P&gt;[http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP&lt;EM&gt;Program&lt;/EM&gt;for&lt;EM&gt;Compressing&lt;/EM&gt;and&lt;EM&gt;De-Compressing&lt;/EM&gt;a&lt;EM&gt;table|http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP&lt;/EM&gt;Program&lt;EM&gt;for&lt;/EM&gt;Compressing&lt;EM&gt;and&lt;/EM&gt;De-Compressing&lt;EM&gt;a&lt;/EM&gt;table]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: NI SHILIANG on Mar 5, 2010 1:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 00:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651191#M1445007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-05T00:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transformation - how to parse multiple structures within XML --</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651192#M1445008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two standard XSL transformations (I don't have an access to any system right now and I don't remember names) which converts any data to XML and vice versa. These transformations work with tables. I don't know what format is used to encode data in your XML but I might be the same format. If it is same format then you just need to extract section with data and use these standard transformation to convert XML into data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 00:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-how-to-parse-multiple-structures-within-xml/m-p/6651192#M1445008</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-03-05T00:32:22Z</dc:date>
    </item>
  </channel>
</rss>

