<?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 internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396735#M1644338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by the way this include in the type declaration has nothing to do with key word INCLUDE. you can write ABC here .. that also will work&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin OF testy,
           system type BAPILOGSYS,
           include type  BAPIRET2_T."-- you can write abc type bapiret2_t
types: end of testy.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 21:17:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-10T21:17:07Z</dc:date>
    <item>
      <title>Nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396730#M1644333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sap gurus,&lt;/P&gt;&lt;P&gt;Am in a bit of a fix right now..............&lt;/P&gt;&lt;P&gt;I have got an &lt;STRONG&gt;internal table&lt;/STRONG&gt; in the format - Doknr and a nested table.....such that for every doknr multiple records may exist in the nested table.............&lt;/P&gt;&lt;P&gt;it is if the format::::   begin of ty_nested,         doknr type doknr, include structure zstruct,    types: end of ty_nested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i want to append data into this particular table so that whenever a particuar doknr comes up all the corresponding data fro the doknr should go into the nested table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be of the format........   doknr-&amp;gt;nestedtable.                    '/' denotes the multiple records that exist in the nested table&lt;/P&gt;&lt;P&gt;                                                    10       2/3/4&lt;/P&gt;&lt;P&gt;                                                     20      1/3&lt;/P&gt;&lt;P&gt;                                                     30       3/4/5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help will be appreciated......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396730#M1644333</guid>
      <dc:creator>Saha_Arpan</dc:creator>
      <dc:date>2012-01-10T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396731#M1644334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; it is if the format::::   begin of ty_nested,         doknr type doknr, include structure zstruct,    types: end of ty_nested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this a nested table? including a structure just adds the fields from the structure. right? so along with docnr you have other fields from zstruct. its not making it a nested table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396731#M1644334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T20:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396732#M1644335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry i forgot to add that the zstuct is actually a dictionary table type................so in other words it is a nested internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396732#M1644335</guid>
      <dc:creator>Saha_Arpan</dc:creator>
      <dc:date>2012-01-10T20:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396733#M1644336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you done CTRL+F2 on your program, isnt it showing error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your syntax should be &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;include type &amp;lt;a table type name&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;not include structure &amp;lt;a table type name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok lets check your query now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 20:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396733#M1644336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T20:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396734#M1644337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code. i have kept it simple... try to understand. execute this. its will trigger a break point. then check the content of TB&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin OF testy,
           system type BAPILOGSYS,
           include type  BAPIRET2_T."ZVBAk.
types: end of testy.

DATA: ts type testy,
      tb type TABLE OF testy,
      wa type BAPIRET2,
      wt type BAPIRET2_t,
      wt2 type BAPIRET2_t,
      pt type TABLE OF bapilogsys,
      ps like LINE OF pt.
*lets have to systems
append '1ST_SYSTEM' to pt.
append '2ND_SYSTEM' to pt.
*-- lets have data for bapiret2_t table with 2 systems
wa-MESSAGE = '1st one, for 1st system'.
wa-system = '1ST_SYSTEM'.
APPEND wa to wt.
wa-MESSAGE = '2nt one, for 1st system'.
wa-system = '1ST_SYSTEM'.
APPEND wa to wt.
wa-MESSAGE = '3rd one, for 2nd system'.
wa-system = '2ND_SYSTEM'.
APPEND wa to wt.
wa-MESSAGE = '4th one, for 2nd system'.
wa-system = '2ND_SYSTEM'.
APPEND wa to wt.

*-- now pass final table
LOOP AT pt into ps.
ts-system = ps.
wt2 = wt."temp table
DELETE wt2 where system NE ts-system. " so you have only only 1 systems data
ts-include = wt2.
append ts to tb.
ENDLOOP.

BREAK-POINT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396734#M1644337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T21:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396735#M1644338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by the way this include in the type declaration has nothing to do with key word INCLUDE. you can write ABC here .. that also will work&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: begin OF testy,
           system type BAPILOGSYS,
           include type  BAPIRET2_T."-- you can write abc type bapiret2_t
types: end of testy.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 21:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/nested-internal-table/m-p/8396735#M1644338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T21:17:07Z</dc:date>
    </item>
  </channel>
</rss>

