<?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 appending nested internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790060#M1309714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to append data in nested internal table for eg&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : cht_todo type me59_s_todo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now me59_s_todo is itself a nested structure having a table me59_t_items&lt;/P&gt;&lt;P&gt;me59_t_items is also a nested structure having a table messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I have to append some value in this me59_t_items - message table&lt;/P&gt;&lt;P&gt;ie cht_todo -&amp;gt; items -&amp;gt; messages&lt;/P&gt;&lt;P&gt; cht_Todo contain items&lt;/P&gt;&lt;P&gt;items contain messages&lt;/P&gt;&lt;P&gt;How to append value in this message table.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jun 24, 2009 11:08 AM - added  tags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2009 09:04:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-24T09:04:55Z</dc:date>
    <item>
      <title>appending nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790060#M1309714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to append data in nested internal table for eg&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : cht_todo type me59_s_todo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now me59_s_todo is itself a nested structure having a table me59_t_items&lt;/P&gt;&lt;P&gt;me59_t_items is also a nested structure having a table messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I have to append some value in this me59_t_items - message table&lt;/P&gt;&lt;P&gt;ie cht_todo -&amp;gt; items -&amp;gt; messages&lt;/P&gt;&lt;P&gt; cht_Todo contain items&lt;/P&gt;&lt;P&gt;items contain messages&lt;/P&gt;&lt;P&gt;How to append value in this message table.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jun 24, 2009 11:08 AM - added  tags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790060#M1309714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T09:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: appending nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790061#M1309715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an exemple on how to append item to a deep structure in [Appending Table Lines|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36c8358411d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790061#M1309715</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-06-24T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: appending nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790062#M1309716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF inner_ty,
         a TYPE ...,
         b TYPE ...,
       END OF inner_ty,

       t_inner_ty TYPE STANDARD TABLE OF inner_ty WITH NON-UNIQUE KEY table_line,

       BEGIN OF outer_ty,
         c TYPE ...,
         inner TYPE t_inner_ty,
       END OF outer_ty.

DATA: t_itab TYPE STANDARD TABLE OF outer_ty WITH NON-UNIQUE KEY c,
       ls_wa_outer TYPE outer_ty,
       ls_wa_inner TYPE inner_ty.

* Insert entries
ls_wa_inner-a = '...'.
ls_wa_inner-b = '...'.
INSERT ls_wa_inner INTO TABLE ls_wa_outer-inner.
ls_wa_inner-a = '...'.
ls_wa_inner-b = '...'.
INSERT ls_wa_inner INTO TABLE ls_wa_outer-inner.

ls_wa_outer-c = '...'.
INSERT ls_wa_outer INTO TABLE t_itab.

* Read entries
LOOP AT t_itab INTO ls_wa_outer.
  LOOP AT ls_wa_outer-inner INTO ls_wa_inner.
...

READ TABLE t_itab INTO ls_wa_outer WITH TABLE KEY c = ...
LOOP AT ls_wa_outer-inner INTO ls_wa_inner.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-nested-internal-table/m-p/5790062#M1309716</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-24T09:14:42Z</dc:date>
    </item>
  </channel>
</rss>

