<?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: error during deep structure definition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531396#M1070968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2008 11:41:59 GMT</pubDate>
    <dc:creator>former_member203501</dc:creator>
    <dc:date>2008-09-25T11:41:59Z</dc:date>
    <item>
      <title>error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531394#M1070966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colleagues,&lt;/P&gt;&lt;P&gt;I want to define a type which is  a deep structure in a class.something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public section.&lt;/P&gt;&lt;P&gt;Types: begin of a,&lt;/P&gt;&lt;P&gt;          name type char40,&lt;/P&gt;&lt;P&gt;          end of a.&lt;/P&gt;&lt;P&gt;types: begin of b,&lt;/P&gt;&lt;P&gt;         value1 type standard table of a,&lt;/P&gt;&lt;P&gt;         value2 type of i,&lt;/P&gt;&lt;P&gt;        end of b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but i always got an error saying that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'you cannot use generic type definitions within structures'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help on this?&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Lei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531394#M1070966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531395#M1070967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PUBLIC SECTION.
    TYPES:
      BEGIN OF a,
        name TYPE char40,
      END OF a,
      BEGIN OF b,
        value1 TYPE STANDARD TABLE OF a WITH NON-UNIQUE DEFAULT KEY,
        value2 TYPE i,
      END OF b.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using ABAP Objects you need to declare the tables using a complete definition including the &lt;STRONG&gt;KEY&lt;/STRONG&gt; to the standard table and in the &lt;STRONG&gt;TYPE i&lt;/STRONG&gt; you don't need the &lt;STRONG&gt;OF&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531395#M1070967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531396#M1070968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531396#M1070968</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2008-09-25T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531397#M1070969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF a,
name TYPE char40,
END OF a.

TYPES: BEGIN OF b.
INCLUDE TYPE a.
TYPES: value2 TYPE i,
END OF b.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531397#M1070969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531398#M1070970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can use types like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. TYPES { {dtype[(len)] TYPE abap_type [DECIMALS dec]} &lt;/P&gt;&lt;P&gt;        | {dtype TYPE abap_type [LENGTH len] [DECIMALS dec]} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to Existing Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. TYPES dtype { {TYPE [LINE OF] type} &lt;/P&gt;&lt;P&gt;              | {LIKE [LINE OF] dobj} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. TYPES dtype { {TYPE REF TO type} &lt;/P&gt;&lt;P&gt;              | {LIKE REF TO dobj} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structured Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. TYPES BEGIN OF struc_type. &lt;/P&gt;&lt;P&gt;     ... &lt;/P&gt;&lt;P&gt;     {TYPES dtype ...} | {INCLUDE {TYPE|STRUCTURE} ...}. &lt;/P&gt;&lt;P&gt;     ... &lt;/P&gt;&lt;P&gt;  TYPES END OF struc_type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. TYPES dtype { {TYPE tabkind OF [REF TO] type} &lt;/P&gt;&lt;P&gt;              | {LIKE tabkind OF dobj} } &lt;/P&gt;&lt;P&gt;              [WITH key] [INITIAL SIZE n]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. TYPES dtype {TYPE RANGE OF type}|{LIKE RANGE OF dobj} &lt;/P&gt;&lt;P&gt;                  [INITIAL SIZE n].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 11:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531398#M1070970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T11:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531399#M1070971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; When using ABAP Objects you need to declare the tables using a complete definition including the &lt;STRONG&gt;KEY&lt;/STRONG&gt; to the standard table and in the &lt;STRONG&gt;TYPE i&lt;/STRONG&gt; you don't need the &lt;STRONG&gt;OF&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using return parameters or defining attributes in ABAP objects, they must be fully typed, which is as David says.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must also use the fully typed specification for inner tables (deep structures) whether in objects or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other contexts, include objects, at least in later versions, you can still use the non-full specification.  But it's better not to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 12:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531399#M1070971</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-09-25T12:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: error during deep structure definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531400#M1070972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; TYPES: BEGIN OF a,
&amp;gt; name TYPE char40,
&amp;gt; END OF a.
&amp;gt; 
&amp;gt; TYPES: BEGIN OF b.
&amp;gt; INCLUDE TYPE a.
&amp;gt; TYPES: value2 TYPE i,
&amp;gt; END OF b.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;Wrong&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 12:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-deep-structure-definition/m-p/4531400#M1070972</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-09-25T12:03:49Z</dc:date>
    </item>
  </channel>
</rss>

