<?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: Basic of Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079202#M1505714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He Debi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read the documentation carefully:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A copy is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL contrl. &lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the addition AT itab is not specified, during a loop pass the contents of the screen fields of the current row of table control contrl are transported from (at event PBO) or to (at event PAI) the data objects with the same names of the ABAP program. During PBO processing, the transport is done at the end of, during PAI processing at the beginning of the loop pass. The addition WITH CONTROL must be specified both at PBO and PAI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab CURSOR cur [INTO wa] &lt;/P&gt;&lt;P&gt;     [CURSOR top_line] [FROM n1] [TO n2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WITH CONTROL contrl. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If you specify addition AT itab, during loop processing of the table control the internal table itab of the corresponding ABAP program is processed sequentially in parallel. For each row of the table control, one row of the internal table is processed. The internal table itab must be an index table. You can specify the additions INTO, CURSOR, FROM, TO and WITH CONTROL only at PBO, but not at PAI. At PAI, the internal table is used for reference to the table control. &lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have said, is the case Variant 1 and it is correct. Second case (Variant 2) it is mentioned as u2018You can specify the additions INTO, CURSOR, FROM, TO and WITH CONTROL only at PBO, but not at PAI. At PAI, the internal table is used for reference to the table control.u2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jun 2010 11:58:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-28T11:58:55Z</dc:date>
    <item>
      <title>Basic of Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079200#M1505712</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;&lt;/P&gt;&lt;P&gt;I have searched the forum several times but didnot get the answer to my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. answer my qus : -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we use Table Control in dialog programs, we use LOOP...ENDLOOP statements in order to exchange data between our program and Table Control UI elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In the SAP F1 Documentation, it is mentioned that "The Addition WITH CONTROL &lt;STRONG&gt;must&lt;/STRONG&gt; be specified both at PBO and PAI" because we have to link the Internal Table (of our program) to Table Control (of the Screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i am adding that addition "WITH CONTROL" in the PAI event then it id=s giving me error stating that "In the event Process After Input, no additions are allowed with LOOP AT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 11:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079200#M1505712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T11:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basic of Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079201#M1505713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debbidutta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the SAP documentation states what you say, then it is in error: WITH CONTROL must be defined only at PBO, not at PAI. I I think what the documentation means is that what must be defined at both PBO and PAI is the LOOP...ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 11:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079201#M1505713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T11:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Basic of Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079202#M1505714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;He Debi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read the documentation carefully:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A copy is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL contrl. &lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the addition AT itab is not specified, during a loop pass the contents of the screen fields of the current row of table control contrl are transported from (at event PBO) or to (at event PAI) the data objects with the same names of the ABAP program. During PBO processing, the transport is done at the end of, during PAI processing at the beginning of the loop pass. The addition WITH CONTROL must be specified both at PBO and PAI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab CURSOR cur [INTO wa] &lt;/P&gt;&lt;P&gt;     [CURSOR top_line] [FROM n1] [TO n2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WITH CONTROL contrl. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If you specify addition AT itab, during loop processing of the table control the internal table itab of the corresponding ABAP program is processed sequentially in parallel. For each row of the table control, one row of the internal table is processed. The internal table itab must be an index table. You can specify the additions INTO, CURSOR, FROM, TO and WITH CONTROL only at PBO, but not at PAI. At PAI, the internal table is used for reference to the table control. &lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you have said, is the case Variant 1 and it is correct. Second case (Variant 2) it is mentioned as u2018You can specify the additions INTO, CURSOR, FROM, TO and WITH CONTROL only at PBO, but not at PAI. At PAI, the internal table is used for reference to the table control.u2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Selva K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 11:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079202#M1505714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Basic of Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079203#M1505715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robb,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAP Documentation it is mentioned clearly : - "&lt;STRONG&gt;The addition WITH CONTROL must be specified both at PBO and PAI.&lt;/STRONG&gt; "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your ref. pls. check :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL contrl. &lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;If the addition AT itab is not specified, during a loop pass the contents of the screen fields of the current row of table control contrl are transported from (at event PBO) or to (at event PAI) the data objects with the same names of the ABAP program. During PBO processing, the transport is done at the end of, during PAI processing at the beginning of the loop pass. &lt;STRONG&gt;The addition WITH CONTROL must be specified both at PBO and PAI&lt;/STRONG&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;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 12:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079203#M1505715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Basic of Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079204#M1505716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To sum up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL tc...&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL tc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;LOOP AT iTab WITH CONTROL tc...&lt;/P&gt;&lt;P&gt;PAI&lt;/P&gt;&lt;P&gt;LOOP AT iTab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 12:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-of-table-control/m-p/7079204#M1505716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-05T12:07:12Z</dc:date>
    </item>
  </channel>
</rss>

