<?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 getting dynamically the internal table type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059536#M1175846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;is there a standard function to get the internal table type name.like if a internal table is based on sflight,by using the function i pass the internal table and get the type sflight.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 06:01:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T06:01:06Z</dc:date>
    <item>
      <title>getting dynamically the internal table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059536#M1175846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;is there a standard function to get the internal table type name.like if a internal table is based on sflight,by using the function i pass the internal table and get the type sflight.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 06:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059536#M1175846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T06:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: getting dynamically the internal table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059537#M1175847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this we have the CL_ABAP_TYPEDESCR class, subclasses and all of their methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coding should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: dref TYPE REF TO data.
FIELD-SYMBOLS: &amp;lt;table&amp;gt; TYPE STANDARD TABLE,
               &amp;lt;line&amp;gt;  TYPE ANY.

DATA: lr_reference TYPE REF TO cl_abap_typedescr.
DATA: lr_tab       TYPE REF TO cl_abap_tabledescr.
DATA: lr_data      TYPE REF TO cl_abap_datadescr.

PARAMETERS: pa_tab TYPE tabname DEFAULT 'BUT000'.

CREATE DATA dref TYPE STANDARD TABLE OF (pa_tab).
ASSIGN dref-&amp;gt;* TO &amp;lt;table&amp;gt;.

SELECT * FROM but000 INTO TABLE &amp;lt;table&amp;gt;
         UP TO 10 ROWS.

CALL METHOD cl_abap_typedescr=&amp;gt;describe_by_data
  EXPORTING
    p_data      = &amp;lt;table&amp;gt;
  RECEIVING
    p_descr_ref = lr_reference.

lr_tab ?= lr_reference.
lr_data = lr_tab-&amp;gt;get_table_line_type( ).


WRITE lr_data-&amp;gt;absolute_name.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Jan 19, 2009 8:09 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on Jan 19, 2009 8:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 06:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059537#M1175847</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-01-19T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting dynamically the internal table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059538#M1175848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kaushik &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the following Thread hope it will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1183813"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059538#M1175848</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-19T07:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: getting dynamically the internal table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059539#M1175849</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;to get the name of the type of an internal table &lt;/P&gt;&lt;P&gt;use table DDO2L .&lt;/P&gt;&lt;P&gt;From this you can get properties of the respective tableand also tabclass field will give u the type of the table which u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this may help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 07:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-dynamically-the-internal-table-type/m-p/5059539#M1175849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T07:21:03Z</dc:date>
    </item>
  </channel>
</rss>

