<?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: ABAP TYPE REF TO data to XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459799#M1553797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I get it right, you have an internal table with line type: TYPE REF TO data. Each of those references point to an "item" internal table.&lt;/P&gt;&lt;P&gt;You can´t "construct" an internal table of field symbols. A solution I see is to transform one "item" table at a time, looping the wrapping internal table. And finally group the resulting XMLs into a single one, using the iXML library (this shouldn't be too difficult).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Dec 2010 20:50:10 GMT</pubDate>
    <dc:creator>alejandro_bindi</dc:creator>
    <dc:date>2010-12-09T20:50:10Z</dc:date>
    <item>
      <title>ABAP TYPE REF TO data to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459795#M1553793</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;Suppose I have a variable A type ref to data which refers to variable B type some_itab&lt;/P&gt;&lt;P&gt;Calling call transformation id source root = a would give an empty XML. The id transformation seem to be able to resolve elementary types, defined structures and references, but it somehow can't resolve generic references to structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 15:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459795#M1553793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-03T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP TYPE REF TO data to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459796#M1553794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like the variable 'B' has to be created such that 'some_itab' is in the heap instead of the stack (ie, B type ref to some_itab. create B. instead of B type some_itab.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know if this is an actual restriction of call transformation and why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 20:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459796#M1553794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-03T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP TYPE REF TO data to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459797#M1553795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at the system now but I think you should do this using a field symbol:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: gr_a TYPE REF TO DATA.
FIELD-SYMBOLS: &amp;lt;lt_a&amp;gt; TYPE STANDARD TABLE.

* Assuming table is already created and referenced by GR_A...
ASSIGN gr_a-&amp;gt;* TO &amp;lt;lt_a&amp;gt;.
CHECK sy-subrc = 0.
CALL TRANSFORMATION id SOURCE = &amp;lt;lt_a&amp;gt;...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 02:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459797#M1553795</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2010-12-04T02:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP TYPE REF TO data to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459798#M1553796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution. I have a potentially n00b follow up question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We may not be able to dereference the variables because we would like to assemble a bunch of these generic reference variables into another internal table on which the call transformation will be called. The challenge for us is not to transform a single internal table but to transform an internal table of tables. Building the second internal table with reference variables made in my previously mentioned method works. I'm not sure if it's possible to construct a table of field symbols. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I on wrong assumptions? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 18:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459798#M1553796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-06T18:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP TYPE REF TO data to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459799#M1553797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I get it right, you have an internal table with line type: TYPE REF TO data. Each of those references point to an "item" internal table.&lt;/P&gt;&lt;P&gt;You can´t "construct" an internal table of field symbols. A solution I see is to transform one "item" table at a time, looping the wrapping internal table. And finally group the resulting XMLs into a single one, using the iXML library (this shouldn't be too difficult).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 20:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459799#M1553797</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2010-12-09T20:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP TYPE REF TO data to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459800#M1553798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info. We ended up building a internal table of strings (XML) because we needed other info to be associated with the XMLs so it suited our needs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 20:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-type-ref-to-data-to-xml/m-p/7459800#M1553798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-09T20:58:16Z</dc:date>
    </item>
  </channel>
</rss>

