<?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 within a structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141048#M1709528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saha, thank's for clarification and for the second solution using LIKE.&lt;/P&gt;&lt;P&gt;Still I don't understand why ABAP kernel requires to use non-generic table type when using TYPES. What's the point? Only SAP can tell, I guess. For the ease of understanding creations of deep structures with TYPING, it would be more clear if no such dependencies exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let's hope this discussion was useful for others seaching solutions for defining deep structures. There existed already a couple of threads in SDN, but at least I did not found them useful because most of them suggested using Dictionary structures or INCLUDE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got my answer, but not closing this yet (for a few days and then close and reward) if others want to comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br: Kimmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 08:08:10 GMT</pubDate>
    <dc:creator>Kimmo_from_Finland</dc:creator>
    <dc:date>2012-12-05T08:08:10Z</dc:date>
    <item>
      <title>internal table within a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141046#M1709526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a strange situation when in a program defining an internal structure that has as internal table as an element.&lt;/P&gt;&lt;P&gt;For your convenience I use here the same examples than in SAP Help &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm&lt;/A&gt; with slighly edited piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending how you define your internal table that is included in the structure you get syntax check error.&lt;/P&gt;&lt;P&gt;Implement this piece of code and you will see the difference (apply the two commented lines)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;TYPES&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;COLUMN1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;COLUMN2 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;COLUMN3 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;I&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*This version of typing works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;TYPES &lt;/SPAN&gt;VECTOR &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;TYPES &lt;/SPAN&gt;ITAB &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LINE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*this version of typing will cause syntax check error for element VECTOR in type DEEPLINE. Uncomment to see the difference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*TYPES VECTOR TYPE STANDARD TABLE OF LINE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*TYPES ITAB TYPE STANDARD TABLE OF LINE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;TYPES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;DEEPLINE&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;C&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;TABLE1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;VECTOR&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;TABLE2 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;ITAB&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;DEEPLINE&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;TYPES: &lt;/SPAN&gt;DEEPTABLE &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;DEEPLINE&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;WITH &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DEFAULT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;KEY&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S52"&gt;data&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;MYDEEPTABLE &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;deepline&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;****************&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;If you DON'T use the "WITH DEFAULT KEY" (or any other key) notation you will get syntax error at line TABLE1 TYPE VECTOR: "VECTOR has generic type. Use of this type only possible for typing fields symbols and formal parameters".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;So what's the difference regarding 'generic type' issue whether to use a KEY notation or not? How come use of KEY makes the table non-generic thus passes syntax check?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;We use the latest SAP kernel version of a netweaver instance of ECC 6.0 (without any EHP), but SP-level is quite low. But I assume it is the kernel that is more important regarding syntax checking.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Please note, I don't need advice how to define a structure that has internal table. In fact the above sample is a solution.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;But I wanted to hear your opinion if there is an error in syntax check procedures here?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;At least I would find it very handy to define deep structures with tables and not having KEY nor SORTED/HASHED notation for the internal table part.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;br: Kimmo&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 14:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141046#M1709526</guid>
      <dc:creator>Kimmo_from_Finland</dc:creator>
      <dc:date>2012-12-04T14:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: internal table within a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141047#M1709527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kimmo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer to your dilemma lies in SAP documentation itself &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1079/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_731/en/abaptypes_struc.htm"&gt;Defining Structures using TYPES - BEGIN OF&lt;/A&gt; states - &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt;If a component is created as a &lt;SPAN style="text-decoration: underline;"&gt;table type&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt; this type cannot be generic&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_731/en/abaptypes_keydef.htm"&gt;Defining KEYS for table type&lt;/A&gt; states - &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt;An internal table that has no table key or an incomplete table key is generic with respect to the table key. A table type of this nature can be used only for typing&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt; formal parameters or field symbols.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;How come use of KEY makes the table non-generic thus passes syntax check?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="info" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1079/images/emoticons/info.gif"&gt;&lt;/SPAN&gt; When you do not specify the key the table-type generic is w.r.t the key. So when you use the KEY addition to define the key, in your case the DEFAULT KEY, the table-type is no longer generic and passes the syntax check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;But I wanted to hear your opinion if there is an error in syntax check procedures here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;At least I would find it very handy to define deep structures with tables and not having KEY nor SORTED/HASHED notation for the internal table part.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case the compiler is checking what it is supposed to check &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote jiveImage" src="https://community.sap.com/1079/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; If you don't want to specify the KEY explicitly you cannot use table types, rather you have to use &lt;EM&gt;LIKE &amp;lt;internal table&amp;gt;&lt;/EM&gt; for defining the deep structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;TYPES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;line&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; column1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; column2 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; column3 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;line&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; vector&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;line&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" WITH DEFAULT KEY,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; itab&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;line&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" WITH DEFAULT KEY,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;TYPES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;deepline&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; field1 &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table1 &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;vector&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table2 &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;itab&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;deepline&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; deeptable &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STANDARD &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;deepline&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" WITH DEFAULT KEY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;mydeeptable &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;deeptable&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mydeepstruc &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;deepline&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 05:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141047#M1709527</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-12-05T05:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: internal table within a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141048#M1709528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saha, thank's for clarification and for the second solution using LIKE.&lt;/P&gt;&lt;P&gt;Still I don't understand why ABAP kernel requires to use non-generic table type when using TYPES. What's the point? Only SAP can tell, I guess. For the ease of understanding creations of deep structures with TYPING, it would be more clear if no such dependencies exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let's hope this discussion was useful for others seaching solutions for defining deep structures. There existed already a couple of threads in SDN, but at least I did not found them useful because most of them suggested using Dictionary structures or INCLUDE command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got my answer, but not closing this yet (for a few days and then close and reward) if others want to comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br: Kimmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 08:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-within-a-structure/m-p/9141048#M1709528</guid>
      <dc:creator>Kimmo_from_Finland</dc:creator>
      <dc:date>2012-12-05T08:08:10Z</dc:date>
    </item>
  </channel>
</rss>

