<?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: nested structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642718#M608435</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;&lt;/P&gt;&lt;P&gt;The structure of a data object can be an &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elementary field, a &lt;/P&gt;&lt;P&gt;structure, or an &lt;/P&gt;&lt;P&gt;internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structures and internal tables are complex data obejcts. Since it is possible to combine structures and internal tables in any way, we can can also make a general distinction between different types of structures, internal tables, and data structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A structure can be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A &amp;lt;b&amp;gt;simple structure&amp;lt;/b&amp;gt; (as opposed to complex structures). A simple structure is a structure with elementary components. &lt;/P&gt;&lt;P&gt;A &amp;lt;b&amp;gt;nested structure&amp;lt;/b&amp;gt;. A nested structure is a structure containing one or more further structures. &lt;/P&gt;&lt;P&gt;A &amp;lt;b&amp;gt;deep structure&amp;lt;/b&amp;gt;. Deep structures are structures that contain an internal table as a component, either directly or indirectly). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample program with nested structures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT structure1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF name,&lt;/P&gt;&lt;P&gt;title(5) TYPE c,&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;END OF name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF mylist,&lt;/P&gt;&lt;P&gt;client TYPE name,&lt;/P&gt;&lt;P&gt;number TYPE i,&lt;/P&gt;&lt;P&gt;END OF mylist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA list TYPE mylist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list-client-title = 'Lord'.&lt;/P&gt;&lt;P&gt;list-client-first_name = 'Howard'.&lt;/P&gt;&lt;P&gt;list-client-last_name = 'Mac Duff'.&lt;/P&gt;&lt;P&gt;list-number = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE list-client-title.&lt;/P&gt;&lt;P&gt;WRITE list-client-first_name.&lt;/P&gt;&lt;P&gt;WRITE list-client-last_name.&lt;/P&gt;&lt;P&gt;WRITE / 'Number'.&lt;/P&gt;&lt;P&gt;WRITE list-number.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 09:16:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T09:16:43Z</dc:date>
    <item>
      <title>nested structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642716#M608433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, i m new to nested structures, i want to code using it, the output should show the year, months, days, 24 hour division for day and finally the capacity column for per hour... plz help it is very very urgent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 07:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642716#M608433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T07:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: nested structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642717#M608434</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;Check the following code:&lt;/P&gt;&lt;P&gt;report ztx0803.&lt;/P&gt;&lt;P&gt;data: begin of names,&lt;/P&gt;&lt;P&gt;         name1        like ztxkna1-name1,&lt;/P&gt;&lt;P&gt;         name2        like ztxkna1-name2,&lt;/P&gt;&lt;P&gt;         end of names.&lt;/P&gt;&lt;P&gt; data: begin of cust_info,&lt;/P&gt;&lt;P&gt;         number(10)   type n,&lt;/P&gt;&lt;P&gt;         nm           like names,         "like a field string&lt;/P&gt;&lt;P&gt;         end of cust_info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; cust_info-number   = 15.&lt;/P&gt;&lt;P&gt; cust_info-nm-name1 = 'Jack'.&lt;/P&gt;&lt;P&gt; cust_info-nm-name2 = 'Gordon'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; write: / cust_info-number,&lt;/P&gt;&lt;P&gt;          cust_info-nm-name1,&lt;/P&gt;&lt;P&gt;          cust_info-nm-name2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 08:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642717#M608434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: nested structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642718#M608435</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;&lt;/P&gt;&lt;P&gt;The structure of a data object can be an &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elementary field, a &lt;/P&gt;&lt;P&gt;structure, or an &lt;/P&gt;&lt;P&gt;internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structures and internal tables are complex data obejcts. Since it is possible to combine structures and internal tables in any way, we can can also make a general distinction between different types of structures, internal tables, and data structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A structure can be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A &amp;lt;b&amp;gt;simple structure&amp;lt;/b&amp;gt; (as opposed to complex structures). A simple structure is a structure with elementary components. &lt;/P&gt;&lt;P&gt;A &amp;lt;b&amp;gt;nested structure&amp;lt;/b&amp;gt;. A nested structure is a structure containing one or more further structures. &lt;/P&gt;&lt;P&gt;A &amp;lt;b&amp;gt;deep structure&amp;lt;/b&amp;gt;. Deep structures are structures that contain an internal table as a component, either directly or indirectly). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample program with nested structures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT structure1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF name,&lt;/P&gt;&lt;P&gt;title(5) TYPE c,&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;END OF name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF mylist,&lt;/P&gt;&lt;P&gt;client TYPE name,&lt;/P&gt;&lt;P&gt;number TYPE i,&lt;/P&gt;&lt;P&gt;END OF mylist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA list TYPE mylist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list-client-title = 'Lord'.&lt;/P&gt;&lt;P&gt;list-client-first_name = 'Howard'.&lt;/P&gt;&lt;P&gt;list-client-last_name = 'Mac Duff'.&lt;/P&gt;&lt;P&gt;list-number = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE list-client-title.&lt;/P&gt;&lt;P&gt;WRITE list-client-first_name.&lt;/P&gt;&lt;P&gt;WRITE list-client-last_name.&lt;/P&gt;&lt;P&gt;WRITE / 'Number'.&lt;/P&gt;&lt;P&gt;WRITE list-number.&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;LIJO JOHN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 09:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-structures/m-p/2642718#M608435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T09:16:43Z</dc:date>
    </item>
  </channel>
</rss>

