<?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: about LOOP statement in PAI when working on a table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720546#M1873067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;replace the loop inside MODULE get_data_to_internal_table with ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;read it_tab into wa_tab index sy-index.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;if sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;*****code to reset&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;else.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;exit.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;endif.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;enddo.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 10:32:53 GMT</pubDate>
    <dc:creator>former_member202818</dc:creator>
    <dc:date>2014-11-06T10:32:53Z</dc:date>
    <item>
      <title>about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720531#M1873052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;I am working on a table control.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Here's the part of the logic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;gt_xxx_scr&lt;SPAN class="L0S55"&gt;. "internal table related to the table control&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODULE modify&lt;/SPAN&gt;_data&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;MODULE modify&lt;/SPAN&gt;_data is used to modify or append when the user makes some changes on TC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TC displayed correctly at the first place.&lt;/P&gt;&lt;P&gt;But after gt_xxx_scr was changed but make NO change on the TC,&lt;/P&gt;&lt;P&gt;the logic did go into the LOOP that makes the TC displayed incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that it should not go into the loop when no change is made on the TC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 03:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720531#M1873052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T03:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720532#M1873053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ming Yu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a table control, if you change or not it will always go into the loop when there is some user action that occurs and that is how module pool program works. So you need to do the appending and modifying data in a proper way.&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, 05 Nov 2014 03:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720532#M1873053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T03:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720533#M1873054</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;in module which you hae writen for midiying the TC write proper logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODIFY t_tc FROM w_tc INDEX tbc-current_line [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt; .. ].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND w_tc TO t_tc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 04:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720533#M1873054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T04:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720534#M1873055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the first time that internal table gets the content, the system doesn't go into the LOOP logic.&lt;/P&gt;&lt;P&gt;And I have tried before(as far as I remembered), if you don't make any change on TC(like enter some values onto the TC), the logic will skip the LOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720534#M1873055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T05:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720535#M1873056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I write this in the &lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;MODULE modify&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;_data&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;But the problem is that &lt;SPAN style="color: #333333; font-size: 12px;"&gt; when internal table's content is changed, the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;value of 't_tc' is last internal table's value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;That makes modify and append work incorrectly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720535#M1873056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T05:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720536#M1873057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you need to refresh the screen. Is it for some ALV module pool program or generic one. If its ALV module pool program then we do have system field to refresh the screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720536#M1873057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T05:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720537#M1873058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just a common Module Pool program.&lt;/P&gt;&lt;P&gt;Which confuses me is, after '&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;AT &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;gt_xxx_scr'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;the work area is not the first record of current &lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;gt_xxx_scr, but a certain record of last internal table's.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 05:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720537#M1873058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T05:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720538#M1873059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ming,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Loop at PBO for putting data into TC from internal table.&lt;/P&gt;&lt;P&gt;The Loop at PAI&amp;nbsp; for getting data from TC into internal table.&lt;/P&gt;&lt;P&gt;For more ...&lt;A __default_attr="110895" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Table Control" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720538#M1873059</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-11-05T06:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720539#M1873060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The loop at PAI is only loop through the records that you are currently seeing in table control.&lt;/P&gt;&lt;P&gt;So this is mandatory that you must specify index while modifying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY it FROM wa INDEX tc-current_line.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;APPEND wa TO it.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720539#M1873060</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-11-05T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720540#M1873061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do specify the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the point is, the internal table has already been changed and it doesn't need to go into the LOOP.&lt;/P&gt;&lt;P&gt;If it goes into the LOOP, and execute：&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;MODIFY it FROM wa INDEX tc-current_line.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;APPEND wa TO it.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;ENDIF.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;This will change the content of the internal table and make display wrong after PBO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720540#M1873061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-05T06:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720541#M1873062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So rather than modifying through table control you have another code for it?&lt;/P&gt;&lt;P&gt;Keep those piece of code after Loop... endloop.&lt;/P&gt;&lt;P&gt;And if you don't want this..&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;MODIFY it FROM wa INDEX tc-current_line.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;APPEND wa TO it.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;ENDIF.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;comment them..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720541#M1873062</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-11-05T06:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720542#M1873063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have worked this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, the change of the internal table should be run after LOOP. &lt;/P&gt;&lt;P&gt;Just like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;AT &lt;/SPAN&gt;gt_xxx_scr&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;. "internal table related to the table control&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;MODULE modify&lt;/SPAN&gt;_data&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_data_to_internal_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LOOP here is different from common ones, it reads the line content from the table control rather than reads from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 06:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720542#M1873063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-06T06:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720543#M1873064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, you can either write '&lt;SPAN style="color: #333333; font-size: 12px;"&gt; get_data_to_internal_table.&lt;/SPAN&gt;' in PAI or in PBO, in this case, it is triggered by a button, so I wrote this in PAI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 07:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720543#M1873064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-06T07:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720544#M1873065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May i ask, why do you want a additional module for modifying internal table? What is the purpose of table control?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Normally the records seeing in table control can be manipulated from loop at PBO(before display)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;or loop at PAI(after display, to catch the changes made by user). &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 08:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720544#M1873065</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-11-06T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720545#M1873066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Because there is a search criteria, every time the search criteria changes, the internal table should be changed also no matter if table control is changed or not.&lt;/P&gt;&lt;P&gt;It's like a RESET function, not just Modify or Add rows in the table control.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720545#M1873066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-06T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720546#M1873067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;replace the loop inside MODULE get_data_to_internal_table with ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;read it_tab into wa_tab index sy-index.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;if sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;*****code to reset&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;else.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;exit.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;endif.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;enddo.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720546#M1873067</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-11-06T10:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720547#M1873068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But editing table control is also needed, &lt;SPAN style="color: #333333; font-size: 12px;"&gt;if sy-subrc = 4 in your case, you don't know the new record is from the new internal table or it is just a new row from table control entered by a user.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 01:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720547#M1873068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-07T01:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720548#M1873069</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;in screen use workarea.. then if only changes are there go inside &lt;SPAN class="L0S52" style="font-size: 13.63636302948px;"&gt;MODULE &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;IT_CARDLIST_MODIFY &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 13.63636302948px;"&gt;ON &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;CHAIN&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 13.63636302948px;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.63636302948px;"&gt;REQUEST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;SPAN class="L0S52" style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;IT_CARD_LIST.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHAIN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;WA_CARD_LIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;CB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;WA_CARD_LIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;YMTCARD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;WA_CARD_LIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;YMTNO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;WA_CARD_LIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;MATNR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;WA_CARD_LIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;MAKTX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIELD &lt;/SPAN&gt;WA_CARD_LIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;CHARG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODULE &lt;/SPAN&gt;IT_CARDLIST_MODIFY &lt;SPAN class="L0S52"&gt;ON &lt;/SPAN&gt;CHAIN&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;REQUEST.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endchain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;In PAI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;MODULE &lt;/SPAN&gt;IT_CARDLIST_MODIFY &lt;SPAN class="L0S52"&gt;INPUT.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;***&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if need condition add here before modify &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;MODIFY &lt;/SPAN&gt;IT_CARD_LIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;WA_CARD_LIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INDEX &lt;/SPAN&gt;IT_CARDLIST&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;ENDMODULE.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Is this u want.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 03:55:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720548#M1873069</guid>
      <dc:creator>Pavithra_madhu</dc:creator>
      <dc:date>2014-11-07T03:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720549#M1873070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, does it mean only if table control has been changed, then go inside the LOOP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it seems that it still has some problems, if you change the internal table and table control both, yet you don't want LOOP is executed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 06:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720549#M1873070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-07T06:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: about LOOP statement in PAI when working on a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720550#M1873071</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;if table control has been changed only go inside the &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;MODULE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;IT_CARDLIST_MODIFY &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;ON &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;CHAIN&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 11.8181819915771px; color: #333333; background: #ffffff;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;REQUEST. otherwise just go through the loop and nothing will be updated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain ur problem with coding or explain more ?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 08:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-loop-statement-in-pai-when-working-on-a-table-control/m-p/10720550#M1873071</guid>
      <dc:creator>Pavithra_madhu</dc:creator>
      <dc:date>2014-11-07T08:30:54Z</dc:date>
    </item>
  </channel>
</rss>

