<?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: Converting asxml back to ABAP structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491257#M839572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course, XML_FTAB should be an internal table of My_Structure.  And My_structure should contain the same fields as in the XML document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to a SAP XML jumpstart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2008 09:48:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-13T09:48:20Z</dc:date>
    <item>
      <title>Converting asxml back to ABAP structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491252#M839567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've generated the asxml representation of an abap structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to do the opossite. That is, load the asxml back to the original structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this? Isn't there a direct way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491252#M839567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting asxml back to ABAP structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491253#M839568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI.&lt;/P&gt;&lt;P&gt;TRY&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION 'ID'&lt;/P&gt;&lt;P&gt;        XML_FTAB = XML_TAB&lt;/P&gt;&lt;P&gt;        ITAB          = IT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS,&lt;/P&gt;&lt;P&gt;KUMAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 11:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491253#M839568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting asxml back to ABAP structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491254#M839569</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;Sorry. No reward points yet &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I nead some more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you gave me has sintax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION 'ID'&lt;/P&gt;&lt;P&gt;XML_FTAB = XML_TAB&lt;/P&gt;&lt;P&gt;ITAB = IT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've tryed this (on a guess)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSFORMATION ID&lt;/P&gt;&lt;P&gt; SOURCE XML_FTAB = I_XML&lt;/P&gt;&lt;P&gt; RESULT ITAB = MY_STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me some hints about what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 12:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491254#M839569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T12:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Converting asxml back to ABAP structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491255#M839570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL TRANSFORMATION ID&lt;/P&gt;&lt;P&gt;SOURCE XML_FTAB = I_XML&lt;/P&gt;&lt;P&gt;RESULT ITAB = MY_STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ID&lt;/P&gt;&lt;P&gt;SOURCE XML = I_XML&lt;/P&gt;&lt;P&gt;RESULT ITAB = XML_FTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT XML_FTAB INTO MY_STRUCTURE.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_XML is a reference to if_ixml_document&lt;/P&gt;&lt;P&gt;XML_FTAB is an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source xml should look something like this:&lt;/P&gt;&lt;P&gt;&amp;lt;asx:abap&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;asx:values&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;      ????&lt;/P&gt;&lt;P&gt;      &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;      ????&lt;/P&gt;&lt;P&gt;      &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/ITAB&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/asx:values&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/asx:abap&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 13:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491255#M839570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T13:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting asxml back to ABAP structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491256#M839571</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;Your hint was very helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just got one question hopping you can help me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kind of internal table should be XML_FTAB? an internal table of My_Structure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me on some pointers to understant better how this is processed by SAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I googled it, but poor info found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 13:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491256#M839571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting asxml back to ABAP structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491257#M839572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course, XML_FTAB should be an internal table of My_Structure.  And My_structure should contain the same fields as in the XML document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to a SAP XML jumpstart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/86/8280ba12d511d5991b00508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 09:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-asxml-back-to-abap-structure/m-p/3491257#M839572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T09:48:20Z</dc:date>
    </item>
  </channel>
</rss>

