<?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: internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647760#M878505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pallavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;move 'a' to itab-a.&lt;/P&gt;&lt;P&gt;move 'b' to itab-b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur internal table itab has fields a and b and is defined with header line(Since u r not using any wa). This loop will do nothing as functionalitywise. When u enter into first looppass&lt;/P&gt;&lt;P&gt;ur first record of the table will be moved to headerline itab. Now The MOVE statements will move the hard coded value a to field a and b to field b. Ur table content will not change since u r not using Modify statement. If u want to MODIFY the table content then do like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;move 'a' to itab-a.&lt;/P&gt;&lt;P&gt;move 'b' to itab-b.&lt;/P&gt;&lt;P&gt;MODIFY itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this all records of ur internal table has value a in field a and b in field b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarified ur doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Apr 2008 13:01:54 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-04-12T13:01:54Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647757#M878502</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;could u please tell me what the following code does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt; move 'a' to itab-a.&lt;/P&gt;&lt;P&gt; move 'b' to itab-b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between occurs 0 and occurs 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 10:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647757#M878502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T10:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647758#M878503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Pallavi
&lt;STRONG&gt;1&lt;/STRONG&gt;.
&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
move 'a' to itab-a.
move 'b' to itab-b.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;
You are just moving  two different values to two different field of work area of internal tabl itab.if u want to append those two field into body of the internal table use &lt;STRONG&gt;APPEND itab&lt;/STRONG&gt;. or if u want to modify the record of itab use &lt;STRONG&gt;MODIFY itab index sy-tabix transporting a b.&lt;/STRONG&gt;
&lt;STRONG&gt;2&lt;/STRONG&gt;.&lt;STRONG&gt;Occurs 0&lt;/STRONG&gt;
The initial memory requirement defined during the creation of the internal table.
&lt;STRONG&gt;3&lt;/STRONG&gt;.&lt;STRONG&gt;Occurs 10&lt;/STRONG&gt;
Making 10 time The initial memory requirement defined during the creation of the internal table.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 10:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647758#M878503</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-12T10:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647759#M878504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pallavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      the piece of code &lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;move 'a' to itab-a.&lt;/P&gt;&lt;P&gt;move 'b' to itab-b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Moves the values 'a' and 'b' to the header line itab of the internal table itab....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so after this ...the field a in the headerline will contain the value 'a' and the field b will contain the value 'b'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The occurs statement is for the initial memory requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 11:08:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647759#M878504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T11:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647760#M878505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pallavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;move 'a' to itab-a.&lt;/P&gt;&lt;P&gt;move 'b' to itab-b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur internal table itab has fields a and b and is defined with header line(Since u r not using any wa). This loop will do nothing as functionalitywise. When u enter into first looppass&lt;/P&gt;&lt;P&gt;ur first record of the table will be moved to headerline itab. Now The MOVE statements will move the hard coded value a to field a and b to field b. Ur table content will not change since u r not using Modify statement. If u want to MODIFY the table content then do like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;move 'a' to itab-a.&lt;/P&gt;&lt;P&gt;move 'b' to itab-b.&lt;/P&gt;&lt;P&gt;MODIFY itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this all records of ur internal table has value a in field a and b in field b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarified ur doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 13:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/3647760#M878505</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-04-12T13:01:54Z</dc:date>
    </item>
  </channel>
</rss>

