<?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: two loops for table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756161#M327586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Malleswari,&lt;/P&gt;&lt;P&gt; The loop..endloop in the PBO is to populate the value into the table control from the program (internal table). The loop...endloop in the PAI is to copy the changes that have been made in the table control on the screen back into the internal table. It is anticipated that some data is passed from the program to the table control and some data is passed back as well. That is why when you dont specify the loop..endloop in PBO/PAI you get an error. This also explains why we write a dummy loop..endloop in PAI in some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 09:31:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-19T09:31:06Z</dc:date>
    <item>
      <title>two loops for table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756158#M327583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;why we should use  loop statements both in PBO and PAI events for table control in module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;malleswari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 09:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756158#M327583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: two loops for table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756159#M327584</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;kindly chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
MODULE status_9010.

LOOP WITH CONTROL tab_control.
"* This is to move the data from the internal table to the table control
MODULE move_data_to_table.
ENDLOOP.


PROCESS AFTER INPUT.

LOOP WITH CONTROL tab_control.
"To move the data from the table control to internal table
MODULE move_data_from_table.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 09:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756159#M327584</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-19T09:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: two loops for table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756160#M327585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malleshwari,&lt;/P&gt;&lt;P&gt;We need the loop..endloop in both the PBO &amp;amp; PAI events of your screen because the LOOP statement causes the screen fields to be copied back and forth between the ABAP program and the screen field. For this reason, at least an empty LOOP...ENDLOOP must be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details on this, go to the documentation provided by SAP as under:&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm"&amp;gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chetan.&lt;/P&gt;&lt;P&gt;PS: Reward points if this is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 09:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756160#M327585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T09:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: two loops for table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756161#M327586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Malleswari,&lt;/P&gt;&lt;P&gt; The loop..endloop in the PBO is to populate the value into the table control from the program (internal table). The loop...endloop in the PAI is to copy the changes that have been made in the table control on the screen back into the internal table. It is anticipated that some data is passed from the program to the table control and some data is passed back as well. That is why when you dont specify the loop..endloop in PBO/PAI you get an error. This also explains why we write a dummy loop..endloop in PAI in some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 09:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-loops-for-table-control/m-p/1756161#M327586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-19T09:31:06Z</dc:date>
    </item>
  </channel>
</rss>

