<?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: issue with loop in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271905#M1386744</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;Something sounds bad for me, because it should does the validations only for the new and changed records, and i.e. for the records displayed by table control only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why do u need to check all entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Oct 28, 2009 3:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 14:25:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-28T14:25:13Z</dc:date>
    <item>
      <title>issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271893#M1386732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I have 20 entries in my table control  but the loop is going through only for 10 entries..please help me?&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, 28 Oct 2009 07:44:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271893#M1386732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271894#M1386733</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;first update the table of 20 entries from your displayed table,&lt;/P&gt;&lt;P&gt;and loop over your global variable with the 20 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 07:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271894#M1386733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T07:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271895#M1386734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The loop is going only this number of times, how many lines are set to be visible (table control height). So whenever you scroll down new records willl be processed. If you want entire table to be processed within one loop, simply extend your tablec control to fit 20 records at once. In your case only 10 are visibile at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 07:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271895#M1386734</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-10-28T07:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271896#M1386735</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 PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_your_screen_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control tc.&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;&lt;/P&gt;&lt;P&gt;in PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;module modify_itab&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module status_your_screen_Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;describe table itab lines tc-lines&lt;/STRONG&gt; -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; THis will give you Scroll Bars for Table Control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module modify_itab. -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&amp;gt; If Required ( If you are modifying the Data of table control )&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE itab LINES lin.&lt;/P&gt;&lt;P&gt;  IF tc-current_line &amp;gt; lin.&lt;/P&gt;&lt;P&gt;    APPEND itab.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MODIFY itab INDEX tc-current_line. ---&amp;gt; &lt;STRONG&gt;This Ensures your data both Upward And Downward Scrolling&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramchander Krishnamraju on Oct 28, 2009 8:59 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramchander Krishnamraju on Oct 28, 2009 9:26 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 07:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271896#M1386735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T07:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271897#M1386736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah visible entries are 10 but there are 20 entries sometimes its going to be 100 entries, how to overcome this issue , i want to process all the entries&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 08:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271897#M1386736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T08:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271898#M1386737</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;Store your general table in a global variable in your program,&lt;/P&gt;&lt;P&gt;in the PBO you loop over the general table, updating from the displayed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you loop over the general variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 08:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271898#M1386737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T08:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271899#M1386738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Labie , thanks for your reply but  i think you answering how to upload the data in table control.I can upload my 20 entries in it but the the thing is its just looping over 10 times ..But i wanna loop over up to number of entries...plz help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 08:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271899#M1386738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271900#M1386739</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;I was mistaken, PBO should be PAI &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but same thing goes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 08:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271900#M1386739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T08:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271901#M1386740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System automatically restricts looping over entire table, as there can be i.e. couple thousands of entires in table, and as you display 10 of them there is no point to create additional load for system looping over all entries. The ones which are displayed are assumed by system to be the ones you are intertested in. Whenever you loop over table control together with table which holds data for it, it will always restrict this loop to number of visible entires. What do you really need to loop ovew entire table for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also suppress looping over internal table and just loop over table control. Later in called module you read/update respective entry in table. Example program for it &lt;STRONG&gt;DEMO_DYNPRO_TABCONT_LOOP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 08:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271901#M1386740</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-10-28T08:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271902#M1386741</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;Marcin is right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to consider you have two different tables: internal table with all items to be managed and control table with the items can be displayed only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means the table control can loop the items displayed only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to loop all records, u need to repeat a new loop outside the LOOP of PBO and PAI, anyway if you say what u need to do, perhaps we can give you a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 08:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271902#M1386741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271903#M1386742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to loop twice&lt;/P&gt;&lt;P&gt;- First in, the PAI LOOP AT &amp;lt;itab&amp;gt; will only loop thru displayed lines, there you may perform checks and don't forget to update the itab in the main program&lt;/P&gt;&lt;P&gt;- Then execute an other Module outside of the LOOP/ENDLOOP and there you may LOOP thru the full program internal table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* TOP include

CONTROLS: ctrl TYPE TABLEVIEW USING SCREEN nnnn.
DATA: itab TYPE TABLE OF work.

* Dynpro nnnn PAI

PROCESS AFTER INPUT. 
  LOOP AT itab INTO work. 
      FIELD work-field1
      MODULE linecheck.
      MODULE lineupdate.
  ENDLOOP.
  MODULE fullitab.

* Include of PAI modules

MODULE lineupdate INPUT.
    MODIFY itab FROM work INDEX ctrl-current_line.
ENDMODULE.

MODULE fullitab INPUT.
  LOOP AT itab INTO work.
    " here your code
  ENDLOOP.  
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So user may correct the displayed lines, and your program can send error for lines not displayed. (if there are errors before any input from user ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 09:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271903#M1386742</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-10-28T09:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271904#M1386743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max ,&lt;/P&gt;&lt;P&gt;To start with How system knows if there are valid entries or invalid entries until it does some validation, to validate it should loop through all entries in my table control.But its just doing 10  no matter if they are valid ones or  invalid ones.plz help&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, 28 Oct 2009 13:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271904#M1386743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T13:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271905#M1386744</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;Something sounds bad for me, because it should does the validations only for the new and changed records, and i.e. for the records displayed by table control only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why do u need to check all entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Oct 28, 2009 3:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271905#M1386744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271906#M1386745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Max ,&lt;/P&gt;&lt;P&gt;&amp;gt; To start with How system knows if there are valid entries or invalid entries until it does some validation, to validate it should loop through all entries in my table control.But its just doing 10  no matter if they are valid ones or  invalid ones.plz help&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; thanks&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Do this under PAI &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop with control tc_abc. " This will loop through your control which means, through all records. &lt;/P&gt;&lt;P&gt;    module update_inttable.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module code should be like this &lt;/P&gt;&lt;P&gt;  modify it_abc from wa_abc index tc_abc-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What that will do? this will update your internal table it_abc from the table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for you validations..... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a module called user_command_1XX (Screen number). &lt;/P&gt;&lt;P&gt;On sy-ucomm or whatever the variable.... &lt;/P&gt;&lt;P&gt;do your validations by looping through your internal table into work area....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271906#M1386745</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-10-28T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271907#M1386746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sampath,&lt;/P&gt;&lt;P&gt;Well I can do that way for validation...so if i have 20 deliveries and they all valid...its still doing 10 times , how to get over this?&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, 28 Oct 2009 14:32:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271907#M1386746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271908#M1386747</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;PRE&gt;&lt;CODE&gt;* Do this under PAI

loop with control tc_abc. " This will loop through your control which means, through all records.
module update_inttable.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as it was written above, the LOOP of table control loops only the records can be displayed at the same time in tc.: that depends on how many rows were designed in tc by screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the internal table has 100 records and table control can display 10 records only, the tc will loops a package of 10 records  and not all records of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system variables:&lt;/P&gt;&lt;P&gt;- SY-LOOPC returns how many records can be displayed&lt;/P&gt;&lt;P&gt;- SY-STEPL returns the current record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable field TOP_LINE of table control returns the record of the internal table placed at the TOP, SY-STEPL can be from 1 to N (N = SY-LOOPC), i.e 10 in my sample, that means the link between the row of table control and the record of internla table will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Record Internal table = &amp;lt;table control&amp;gt;-TOP_LINE + SY-STEPL - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This value is stored in fiedl CURRENT_LINE of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271908#M1386747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271909#M1386748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which program? Standard one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271909#M1386748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271910#M1386749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max answered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about tablecontrol-lines ? this will give the number of records in the table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sampath Kumar on Oct 28, 2009 8:49 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sampath Kumar on Oct 28, 2009 8:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271910#M1386749</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2009-10-28T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: issue with loop in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271911#M1386750</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;tablecontrol-lines has the total of rows have to be displayed in table control, that means is equal to the number of records loaded in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes the system can't calculated it, and the effect is the vertical scroll bar is missing, so sometime a module in PBO (just before the LOOP of table control) can be placed in order to fill it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES &amp;lt;TABLE CONTROL-LINES&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 14:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-loop-in-table-control/m-p/6271911#M1386750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T14:59:15Z</dc:date>
    </item>
  </channel>
</rss>

