<?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 Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480200#M224779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;      You can do this using 'Onchange of' and Endon. Statement in a loop which the values are filled into the Target Internal Table.&lt;/P&gt;&lt;P&gt;      i.e, When the Plant Value Changes Assign it to the Field in the Target Internal Table and exit to the Main loop. then process i tagain and when it has the same Plant number the control is passed after endon.&lt;/P&gt;&lt;P&gt;      Syntax:&lt;/P&gt;&lt;P&gt;        ON CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Introduces a branch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON CHANGE OF &amp;lt;f&amp;gt; [OR &amp;lt;f1&amp;gt; OR &amp;lt;f2&amp;gt;...].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opens an ON control structure, concluded with ENDON. The statement block is executed whenever the contents of the field &amp;lt;f&amp;gt; or one of the other fields &amp;lt;fi&amp;gt; has changed since the statement was last executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link too.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_46c/helpdata/en/87/56d00722c011d2954a0000e8353423/content.htm"&amp;gt;http://help.sap.com/saphelp_46c/helpdata/en/87/56d00722c011d2954a0000e8353423/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Path BC ABAP Programming-&amp;gt;APPENDIX-&amp;gt;ABAP Statement Overview&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;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2006 06:28:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-26T06:28:35Z</dc:date>
    <item>
      <title>Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480196#M224775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt; all &lt;/P&gt;&lt;P&gt; I have to fill internal table like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Plnant - x1 eq y1&lt;/P&gt;&lt;P&gt;           x2 eq y2 &lt;/P&gt;&lt;P&gt;           x3 eq y3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; that means 1 st line only has plant in 1 st column and&lt;/P&gt;&lt;P&gt; for rest of the row 1 st coluumn is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:19:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480196#M224775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T06:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480197#M224776</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 this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your internal table(i_tab) contains two columns fld1 and fld2,then use below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_tab-fld1 = 'Plant'.&lt;/P&gt;&lt;P&gt;append i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : i_tab-fld1.&lt;/P&gt;&lt;P&gt;itab-fld2 = 'x1 eq y1'&lt;/P&gt;&lt;P&gt;append i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : i_tab-fld1.&lt;/P&gt;&lt;P&gt;itab-fld2 = 'x2 eq y2'&lt;/P&gt;&lt;P&gt;append i_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : i_tab-fld1.&lt;/P&gt;&lt;P&gt;itab-fld2 = 'x3 eq y3'&lt;/P&gt;&lt;P&gt;append i_tab.&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;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480197#M224776</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-26T06:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480198#M224777</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;Fill your internal table normal with first field blank in all rows. and then at last. do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab-field1 = 'Plant'.
MODIFY itab index 1 transporting field1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&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;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480198#M224777</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-26T06:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480199#M224778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define a internal table. Loop at internal table such that first time it fills both columns and for rest it fills only second column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Begin of Itab occurs 0&lt;/P&gt;&lt;P&gt;       f1 type &amp;lt;data type&amp;gt;&lt;/P&gt;&lt;P&gt;       f2 type &amp;lt;data type&amp;gt;&lt;/P&gt;&lt;P&gt;       End of Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;case sy-tabix.&lt;/P&gt;&lt;P&gt;when 1&lt;/P&gt;&lt;P&gt;  itab-f1= Plant.&lt;/P&gt;&lt;P&gt;  itab-f2 = x1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 2&lt;/P&gt;&lt;P&gt;  itab-f2 = x2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 3&lt;/P&gt;&lt;P&gt;  itab-f2 = x3.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt; append itab.&lt;/P&gt;&lt;P&gt;endloop.&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;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: amit bhadauria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480199#M224778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480200#M224779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh,&lt;/P&gt;&lt;P&gt;      You can do this using 'Onchange of' and Endon. Statement in a loop which the values are filled into the Target Internal Table.&lt;/P&gt;&lt;P&gt;      i.e, When the Plant Value Changes Assign it to the Field in the Target Internal Table and exit to the Main loop. then process i tagain and when it has the same Plant number the control is passed after endon.&lt;/P&gt;&lt;P&gt;      Syntax:&lt;/P&gt;&lt;P&gt;        ON CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Introduces a branch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON CHANGE OF &amp;lt;f&amp;gt; [OR &amp;lt;f1&amp;gt; OR &amp;lt;f2&amp;gt;...].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Opens an ON control structure, concluded with ENDON. The statement block is executed whenever the contents of the field &amp;lt;f&amp;gt; or one of the other fields &amp;lt;fi&amp;gt; has changed since the statement was last executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link too.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_46c/helpdata/en/87/56d00722c011d2954a0000e8353423/content.htm"&amp;gt;http://help.sap.com/saphelp_46c/helpdata/en/87/56d00722c011d2954a0000e8353423/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Path BC ABAP Programming-&amp;gt;APPENDIX-&amp;gt;ABAP Statement Overview&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;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 06:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1480200#M224779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T06:28:35Z</dc:date>
    </item>
  </channel>
</rss>

