<?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 internal Table information in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079294#M730284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          i want to know, how to get the internal tables uesd in a program and how to get the field lenghts and names of each field in that internal table.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT zktest MESSAGE-ID zi LINE-COUNT 60.
      DATA: BEGIN OF line,
         col1 TYPE i,
         col2 TYPE i,
      END OF line.

DATA: itab1 TYPE TABLE OF line WITH HEADER LINE INITIAL SIZE 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          if i have an internal table like this, i need to get , what are the internal tables used in the program and have to get the field lenghts of &amp;lt;b&amp;gt;col1 col2&amp;lt;/b&amp;gt; under the table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             i need to get this information within the same program, to get the table informations that i have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            any suggestions and clues are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Poorna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2007 08:43:34 GMT</pubDate>
    <dc:creator>former_member810660</dc:creator>
    <dc:date>2007-11-16T08:43:34Z</dc:date>
    <item>
      <title>Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079294#M730284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          i want to know, how to get the internal tables uesd in a program and how to get the field lenghts and names of each field in that internal table.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT zktest MESSAGE-ID zi LINE-COUNT 60.
      DATA: BEGIN OF line,
         col1 TYPE i,
         col2 TYPE i,
      END OF line.

DATA: itab1 TYPE TABLE OF line WITH HEADER LINE INITIAL SIZE 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          if i have an internal table like this, i need to get , what are the internal tables used in the program and have to get the field lenghts of &amp;lt;b&amp;gt;col1 col2&amp;lt;/b&amp;gt; under the table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             i need to get this information within the same program, to get the table informations that i have used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            any suggestions and clues are appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Poorna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 08:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079294#M730284</guid>
      <dc:creator>former_member810660</dc:creator>
      <dc:date>2007-11-16T08:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079295#M730285</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;select that name of the internal table and follw this path &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UTILITIES -&amp;gt; WHERE USED LIST &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get one pop up and select program option there &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will show all the programs in which it is used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 09:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079295#M730285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T09:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079296#M730286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can simply use find button in programand select main program check box. click on data declarations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2007 09:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079296#M730286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-16T09:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079297#M730287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Poorna,&lt;/P&gt;&lt;P&gt;To get the runtime details of any variable there is a RTTI  functins available. &lt;/P&gt;&lt;P&gt;for your querry checkout the cl_abap_structdescr class and its usage.&lt;/P&gt;&lt;P&gt;You need to create a structure variable  as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data itab1_struct like itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then call the abovt method with  itab1_struct as an exporting parameter in the call statement.&lt;/P&gt;&lt;P&gt;In return you will get name,kind,length of the individual components of the structure you want to know at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explore more in the RTTI (Real Time Type Identification) functionality in the help documentations for other details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2007 14:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079297#M730287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-22T14:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079298#M730288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try out with following code.&lt;/P&gt;&lt;P&gt;you need to use DESCRIBE statement to have internal table details.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;         COL1 TYPE I,&lt;/P&gt;&lt;P&gt;         COL2 TYPE I,&lt;/P&gt;&lt;P&gt;      END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE HASHED TABLE OF LINE WITH UNIQUE KEY COL1&lt;/P&gt;&lt;P&gt;                                    INITIAL SIZE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LIN TYPE I,&lt;/P&gt;&lt;P&gt;      INI TYPE I,&lt;/P&gt;&lt;P&gt;      KND TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DESCRIBE TABLE ITAB LINES LIN OCCURS INI KIND KND.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WRITE: / LIN, INI, KND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 1000 TIMES.&lt;/P&gt;&lt;P&gt;  LINE-COL1 = SY-INDEX.&lt;/P&gt;&lt;P&gt;  LINE-COL2 = SY-INDEX ** 2.&lt;/P&gt;&lt;P&gt;INSERT LINE INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DESCRIBE TABLE ITAB LINES LIN OCCURS INI KIND KND.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WRITE: / LIN, INI, KND.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 09:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079298#M730288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079299#M730289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To get internal table info you can see the "where used list" and to get the internal table column names you can use a function module called GET_COMPONENT_LIST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    PROGRAM          = sy-repid&lt;/P&gt;&lt;P&gt;    FIELDNAME        = 'WA_WBS'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    COMPONENTS       = res1&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'WA_WBS'   -  structure name to get column names&lt;/P&gt;&lt;P&gt;res1 -   data res1 type table of rstrucinfo with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;soumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 04:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079299#M730289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T04:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079300#M730290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;select that name of the internal table and follw this path &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UTILITIES -&amp;gt; WHERE USED LIST &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get one pop up and select program option there &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows the programs in which it is used .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 12:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079300#M730290</guid>
      <dc:creator>mahaboob_pathan</dc:creator>
      <dc:date>2007-11-26T12:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting internal Table information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079301#M730291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 11:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-internal-table-information/m-p/3079301#M730291</guid>
      <dc:creator>former_member810660</dc:creator>
      <dc:date>2007-11-28T11:57:18Z</dc:date>
    </item>
  </channel>
</rss>

