<?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 RTTS Class Hierarchy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rtts-class-hierarchy/m-p/1614626#M275398</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;I want to create an itab with making use of the RTTS Class Hierarchy. I have a parameter in my program that is the name of a database table. Now I want to create an itab with method cl_abap_tabledescr=&amp;gt;create. After this I want to use the parameter and the dynamically created itab in an open SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody an example of the code to be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2006 22:13:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-11T22:13:37Z</dc:date>
    <item>
      <title>RTTS Class Hierarchy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rtts-class-hierarchy/m-p/1614626#M275398</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;I want to create an itab with making use of the RTTS Class Hierarchy. I have a parameter in my program that is the name of a database table. Now I want to create an itab with method cl_abap_tabledescr=&amp;gt;create. After this I want to use the parameter and the dynamically created itab in an open SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody an example of the code to be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 22:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rtts-class-hierarchy/m-p/1614626#M275398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T22:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: RTTS Class Hierarchy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rtts-class-hierarchy/m-p/1614627#M275399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With thanks to Ben Meijs!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Nu gaan we nog stapje verder en maken volledig dynamisch&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;een interne table van variabel type en variabele linetype&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: pa_ttype type abap_tablekind default 'S', "(S, H, O)&lt;/P&gt;&lt;P&gt;            pa_type  type char40  default 'T000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  rf_line_type    type ref to cl_abap_structdescr,&lt;/P&gt;&lt;P&gt;       rf_table_type   type ref to cl_abap_tabledescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  dr_itab         type ref to data.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;itab&amp;gt;  type table,&lt;/P&gt;&lt;P&gt;               &amp;lt;wa&amp;gt;    type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rf_line_type  ?= cl_abap_typedescr=&amp;gt;describe_by_name( pa_type ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rf_table_type = cl_abap_tabledescr=&amp;gt;create(&lt;/P&gt;&lt;P&gt;             p_line_type   = rf_line_type&lt;/P&gt;&lt;P&gt;             p_table_kind  = pa_ttype&lt;/P&gt;&lt;P&gt;             ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create data dr_itab type handle rf_table_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign dr_itab-&amp;gt;* to &amp;lt;itab&amp;gt; casting type handle rf_table_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from (pa_type)  into table &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;loop at &amp;lt;itab&amp;gt;  assigning &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write: / &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 06:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rtts-class-hierarchy/m-p/1614627#M275399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T06:49:24Z</dc:date>
    </item>
  </channel>
</rss>

