<?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: Internal Table inside Internal Table, possible ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303452#M159241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maran&lt;/P&gt;&lt;P&gt;Internal table inside internal table means Nested Internal Tables&lt;/P&gt;&lt;P&gt;ya its possible&lt;/P&gt;&lt;P&gt;jus have a look overr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Internal Table type&lt;/P&gt;&lt;P&gt;types: begin of itab1 occurs 10,&lt;/P&gt;&lt;P&gt;       f1 type i,&lt;/P&gt;&lt;P&gt;       f2 type n,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;Second internal table type having first internal table as its component:&lt;/P&gt;&lt;P&gt;types: begin of itab2 occurs 20,&lt;/P&gt;&lt;P&gt;       f3 type n,&lt;/P&gt;&lt;P&gt;       itab type itab1,&lt;/P&gt;&lt;P&gt;       end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can deifin your internal table as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab_final type table of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2006 06:15:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-03T06:15:57Z</dc:date>
    <item>
      <title>Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303445#M159234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; SDN s,&lt;/P&gt;&lt;P&gt;how ya all doin ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our requirement is like this, we need to create Internal Table inside another Internal Table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 st of all is that possible ? if Yes how to do that ? it will be helpful if u explain with some sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards....&lt;/P&gt;&lt;P&gt;Sankar Kumar&lt;/P&gt;&lt;P&gt;+91 98403 47141&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303445#M159234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303446#M159235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is possible..&lt;/P&gt;&lt;P&gt;Refer to the code below ..&lt;/P&gt;&lt;P&gt;i have tested it..&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_TEXT OCCURS 100.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE TLINE.&lt;/P&gt;&lt;P&gt;DATA: END OF IT_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF PO_TEXT OCCURS 1,&lt;/P&gt;&lt;P&gt;AUFNR like CAUFV-AUFNR,&lt;/P&gt;&lt;P&gt;AUART like CAUFV-AUART,&lt;/P&gt;&lt;P&gt;GSTRP like CAUFV-GSTRP,&lt;/P&gt;&lt;P&gt;IT_TEXT1 like IT_TEXT occurs 0,&lt;/P&gt;&lt;P&gt;END OF PO_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to this thread..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1578392"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;Please mark helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303446#M159235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303447#M159236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Yes its possible and in SAP is its called as DEEP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Its defined as you normally define a internal table using a structure. In this case you need to use a already defined internal table for defining the DEEP internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303447#M159236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303448#M159237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USE  THIS WAY&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB1 OCCURS 0.&lt;/P&gt;&lt;P&gt;FIELD1,&lt;/P&gt;&lt;P&gt;FIELD2,&lt;/P&gt;&lt;P&gt;END OF ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB2 OCCURS 0.&lt;/P&gt;&lt;P&gt;FIELD3,&lt;/P&gt;&lt;P&gt;FIELD4,&lt;/P&gt;&lt;P&gt;END OF ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 0.&lt;/P&gt;&lt;P&gt;FIELD1,&lt;/P&gt;&lt;P&gt;FIELD2,&lt;/P&gt;&lt;P&gt;FIELD3,&lt;/P&gt;&lt;P&gt;FIELD4,&lt;/P&gt;&lt;P&gt;END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW     BY  USING  SELECT AND  READ  QUERY  U CAN  POPULATED  ALL THE DATA  OF ITAB1 AND ITAB2 INTO SINGLE INTERNAL TABLE ITAB.&lt;/P&gt;&lt;P&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, 03 May 2006 06:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303448#M159237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303449#M159238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can use nested internal tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_bw31/helpdata/en/9f/db9eaa35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_bw31/helpdata/en/9f/db9eaa35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Manikandan R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303449#M159238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303450#M159239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi maran,&lt;/P&gt;&lt;P&gt; look at the following thread for a similar discussion..&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="134043"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Satesh R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303450#M159239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303451#M159240</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;These are called nested internal tables.&lt;/P&gt;&lt;P&gt;You can create the same in different ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEING OF TYPE_TABLE, &lt;/P&gt;&lt;P&gt;          FIELD1 TYPE C,&lt;/P&gt;&lt;P&gt;          STYLE TYPE LVC_T_STYL,&lt;/P&gt;&lt;P&gt;        END OF TYPE_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_dATA TYPE TABLE OF TYPE_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As STYLE points to a TABLE by itself, it becomes a nested internal table. Now, for every row of Field1, STYLE can have multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOte : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303451#M159240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303452#M159241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maran&lt;/P&gt;&lt;P&gt;Internal table inside internal table means Nested Internal Tables&lt;/P&gt;&lt;P&gt;ya its possible&lt;/P&gt;&lt;P&gt;jus have a look overr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Internal Table type&lt;/P&gt;&lt;P&gt;types: begin of itab1 occurs 10,&lt;/P&gt;&lt;P&gt;       f1 type i,&lt;/P&gt;&lt;P&gt;       f2 type n,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;Second internal table type having first internal table as its component:&lt;/P&gt;&lt;P&gt;types: begin of itab2 occurs 20,&lt;/P&gt;&lt;P&gt;       f3 type n,&lt;/P&gt;&lt;P&gt;       itab type itab1,&lt;/P&gt;&lt;P&gt;       end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can deifin your internal table as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab_final type table of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303452#M159241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table inside Internal Table, possible ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303453#M159242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maran, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible and it is known as DEEP Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link &lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_erp2005/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/frameset.htm"&amp;gt;Deep table&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES VECTOR TYPE HASHED TABLE OF I WITH UNIQUE KEY TABLE LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;COLUMN1 TYPE I,&lt;/P&gt;&lt;P&gt;COLUMN2 TYPE I,&lt;/P&gt;&lt;P&gt;COLUMN3 TYPE I,&lt;/P&gt;&lt;P&gt;END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES ITAB TYPE SORTED TABLE OF LINE WITH UNIQUE KEY COLUMN1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF DEEPLINE,&lt;/P&gt;&lt;P&gt;FIELD TYPE C,&lt;/P&gt;&lt;P&gt;TABLE1 TYPE VECTOR,&lt;/P&gt;&lt;P&gt;TABLE2 TYPE ITAB,&lt;/P&gt;&lt;P&gt;END OF DEEPLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES DEEPTABLE TYPE STANDARD TABLE OF DEEPLINE &lt;/P&gt;&lt;P&gt;WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program defines a table type VECTOR with type hashed table, the elementary line type I and a unique key of the entire table line. The second table type is the same as in the previous example. The structure DEEPLINE contains the internal table as a component. The table type DEEPTABLE has the line type DEEPLINE. Therefore, the elements of this internal table are themselves internal tables. The key is the default key - in this case the column FIELD. The key is non-unique, since the table is a standard table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh &lt;/P&gt;&lt;P&gt;pls. reward appropriate points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2006 06:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-inside-internal-table-possible/m-p/1303453#M159242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-03T06:22:44Z</dc:date>
    </item>
  </channel>
</rss>

