<?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: Delcare deep structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425839#M822735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same you declare from an ordinary structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshmanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 09:41:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T09:41:13Z</dc:date>
    <item>
      <title>Delcare deep structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425838#M822734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to declare an itab from a structure &lt;/P&gt;&lt;P&gt;This structure has substructure in it...i.e., deep structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425838#M822734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare deep structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425839#M822735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same you declare from an ordinary structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lakshmanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425839#M822735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare deep structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425840#M822736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you can just declare the internal table normally as you wil do with a single structure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just see the code you may get some insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSTRUCT.&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF student,&lt;/P&gt;&lt;P&gt;         first_name(10) TYPE c,&lt;/P&gt;&lt;P&gt;         last_name(10)  TYPE c,&lt;/P&gt;&lt;P&gt;         age type i,&lt;/P&gt;&lt;P&gt;       END OF student.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF mystudent,&lt;/P&gt;&lt;P&gt;     customer         TYPE student,&lt;/P&gt;&lt;P&gt;         amount       TYPE f,&lt;/P&gt;&lt;P&gt;       END OF mystudent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA assign TYPE mystudent.&lt;/P&gt;&lt;P&gt;DATA itab type table of mystudent.&lt;/P&gt;&lt;P&gt;DATA wa LIKE LINE OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign-customer-first_name = 'Lord'.&lt;/P&gt;&lt;P&gt;assign-customer-last_name = 'Howard'.&lt;/P&gt;&lt;P&gt;assign-customer-age = '10'.&lt;/P&gt;&lt;P&gt;assign-amount = '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND assign TO itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab into wa.&lt;/P&gt;&lt;P&gt;WRITE wa-customer-first_name.&lt;/P&gt;&lt;P&gt;WRITE wa-customer-last_name.&lt;/P&gt;&lt;P&gt;WRITE wa-amount.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425840#M822736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare deep structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425841#M822737</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;Deep Structures are declared in the normal way as we declare strucures.&lt;/P&gt;&lt;P&gt;the same way mentioned here you can go ahead..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zstructure.

TYPES: BEGIN OF name,
title(5) TYPE c,
first_name(10) TYPE c,
last_name(10) TYPE c,
END OF name.

TYPES: BEGIN OF mylist,
client TYPE name,
number TYPE i,
END OF mylist.

DATA list TYPE mylist.

list-client-title = 'Lord'.
list-client-first_name = 'Howard'.
list-client-last_name = 'Mac Duff'.
list-number = 1.

WRITE list-client-title.
WRITE list-client-first_name.
WRITE list-client-last_name.
WRITE / 'Number'.
WRITE list-number.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425841#M822737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare deep structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425842#M822738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a table type using the structure of which you want to make internal table.&lt;/P&gt;&lt;P&gt;And then make internal table of type as that Table Type.&lt;/P&gt;&lt;P&gt;And to access the substructure, treat substructure as one of the fields of main structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425842#M822738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delcare deep structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425843#M822739</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;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Reward if help,.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structures containing internal tables as components or&lt;/P&gt;&lt;P&gt;Internal table containing Structure as components are called Deep Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link for reading a deep structure. &lt;/P&gt;&lt;P&gt;&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="212928"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TYPE_DEEP,&lt;/P&gt;&lt;P&gt;              MATNR TYPE MATNR,               &lt;/P&gt;&lt;P&gt;              T_MARC TYPE MARC OCCURS 0,&lt;/P&gt;&lt;P&gt;            END OF TYPE_DEEP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: T_DEEP     TYPE STANDARD TABLE OF TYPE_DEEP.&lt;/P&gt;&lt;P&gt;DATA: WA_DEEP TYPE TYPE_DEEP.&lt;/P&gt;&lt;P&gt;DATA: T_MARC    TYPE TABLE OF MARC.&lt;/P&gt;&lt;P&gt;DATA: S_MARC    TYPE MARC.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populating data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WA_DEEP-MATNR = 'TEST'.&lt;/P&gt;&lt;P&gt;S_MARC-MATNR = 'TEST'.&lt;/P&gt;&lt;P&gt;S_MARC-WERKS = '9090'.&lt;/P&gt;&lt;P&gt;APPEND S_MARC TO T_MARC.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Append second level internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;WA_DEEP-T_MARC[] = T_MARC[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Append.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND WA_DEEP TO T_DEEP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Process the internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT T_DEEP INTO WA_DEEP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  WRITE: / WA_DEEP-MATNR.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROCESS the second level internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   LOOP AT WA_DEEP-T_MARC INTO S_MARC.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    WRITE: S_MARC-WERKS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 09:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delcare-deep-structures/m-p/3425843#M822739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T09:56:30Z</dc:date>
    </item>
  </channel>
</rss>

