<?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: Fill internal table with mutliple entries for nested structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724749#M1109286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DATA : ITAB TYPE TABLE OF PROTO,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;WA LIKE LINE OF ITAB.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-SICHT = '01'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-VERSION = '100'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-KONS-KON = 1001. " (first entry)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-JAHR = '2008'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND WA TO ITAB.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-SICHT = '01'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-VERSION = '100'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-KONS-KON = 1002. " (Second entry)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-JAHR = '2008'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND WA TO ITAB.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;............................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2008 12:47:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-12T12:47:41Z</dc:date>
    <item>
      <title>Fill internal table with mutliple entries for nested structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724745#M1109282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question related to fill internal tables with nested structures.&lt;/P&gt;&lt;P&gt;I have a structure like this:&lt;/P&gt;&lt;P&gt;BEGIN OF proto,&lt;/P&gt;&lt;P&gt;          sicht TYPE ysicht,&lt;/P&gt;&lt;P&gt;          version TYPE FAGLFLEXA-RVERS,&lt;/P&gt;&lt;P&gt;          BEGIN OF kons,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;kon&lt;/STRONG&gt; TYPE YKONSEINHEIT,&lt;/P&gt;&lt;P&gt;          END OF kons,&lt;/P&gt;&lt;P&gt;          jahr TYPE CHAR04,&lt;/P&gt;&lt;P&gt;END OF proto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to fill this structure with values (over an internal table), but how can I achieve that I save multiple datas für element "kon" für one single entry of structure "proto"?&lt;/P&gt;&lt;P&gt;An example could be:&lt;/P&gt;&lt;P&gt;sicht = '01'&lt;/P&gt;&lt;P&gt;version = '100'&lt;/P&gt;&lt;P&gt;kon = 1001 (first entry)&lt;/P&gt;&lt;P&gt;kon = 1002 (second entry)&lt;/P&gt;&lt;P&gt;usw... (n entry)&lt;/P&gt;&lt;P&gt;jahr = '2008'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for every helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 12:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724745#M1109282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table with mutliple entries for nested structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724746#M1109283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;BEGIN OF proto,
           sicht TYPE ysicht,
           version TYPE FAGLFLEXA-RVERS,
           kons TYPE STANDARD TABLE OF YKONSEINHEIT WITH NON-UNIQUE KEY TABLE_LINE,
           jahr TYPE CHAR04,
END OF proto.

DATA: ls_proto TYPE proto,
      lt_proto TYPE STANDARD TABLE OF proto,
      ls_kon 

ls_proto-sicht = '01'.
ls_proto-version = '100'
INSERT '1001' INTO TABLE ls_proto-kons.
INSERT '1002' INTO TABLE ls_proto-kons.
ls_proto-jahr = '2008'.

INSERT ls_proto INTO TABLE lt_proto&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're going to use a more complicated inner table with several components, then you need to define a type for those components.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 12:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724746#M1109283</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-12T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table with mutliple entries for nested structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724747#M1109284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your fast answer and for the good approach you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will change my structure that way, but how can i fill it now with multiple entries for "kons", für one entry in "proto"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 12:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724747#M1109284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T12:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table with mutliple entries for nested structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724748#M1109285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - I'd edited my reply while you replied...  should be clearer now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 12:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724748#M1109285</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-12T12:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table with mutliple entries for nested structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724749#M1109286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DATA : ITAB TYPE TABLE OF PROTO,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;WA LIKE LINE OF ITAB.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-SICHT = '01'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-VERSION = '100'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-KONS-KON = 1001. " (first entry)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-JAHR = '2008'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND WA TO ITAB.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-SICHT = '01'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-VERSION = '100'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-KONS-KON = 1002. " (Second entry)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA-JAHR = '2008'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND WA TO ITAB.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;............................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 12:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724749#M1109286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T12:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fill internal table with mutliple entries for nested structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724750#M1109287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It works. ; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2008 13:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-internal-table-with-mutliple-entries-for-nested-structure/m-p/4724750#M1109287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-12T13:48:31Z</dc:date>
    </item>
  </channel>
</rss>

