<?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: loop with table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306905#M160366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks for your sugestion.&lt;/P&gt;&lt;P&gt;     That screen is sap Standard screen i am not authorized to change the flow logic of that screen.&lt;/P&gt;&lt;P&gt;Is there any other method to view last record without scroling table control, that is when i fill that table control the last record should be visible to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Srinivasa.E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2006 08:04:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-31T08:04:24Z</dc:date>
    <item>
      <title>loop with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306903#M160364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I have a querry regarding table control. In standard sap screen's flow logic there is 'LOOP WITH CONTROL D0127' statement. This statement will loop at that table control only for 8 Records in that table control, for the remaining records this statement will not get executed.&lt;/P&gt;&lt;P&gt;since sy-loopc will be 8(open lines of table control).&lt;/P&gt;&lt;P&gt;If i scroll down that table control that problem is getting solved, but i want it without scrolling down table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help or suggestion regarding this will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Srinivasa.E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 06:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306903#M160364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T06:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: loop with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306904#M160365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Befor writing 'LOOP WITH CONTROL D0127', you have to find the number of rows in the itab using describe statement. Try do like this in flow logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
process before output.
  module status_0100.
  loop with control D0127.
    module fill_table_control.
  endloop.
--
se38
module status_0100 output.
  describe table itab lines fill.
  D0127-lines = fill.
endmodule.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information please check standard program &amp;lt;b&amp;gt;DEMO_DYNPRO_TABCONT_LOOP&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;DEMO_DYNPRO_TABCONT_LOOP_AT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Hope This Info Helps YOU.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306904#M160365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T07:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: loop with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306905#M160366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks for your sugestion.&lt;/P&gt;&lt;P&gt;     That screen is sap Standard screen i am not authorized to change the flow logic of that screen.&lt;/P&gt;&lt;P&gt;Is there any other method to view last record without scroling table control, that is when i fill that table control the last record should be visible to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Srinivasa.E&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 08:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306905#M160366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T08:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: loop with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306906#M160367</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;have a look at the demo -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt; &amp;lt;b&amp;gt;RSDEMO02&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is perfect example for use of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark Helpfull answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 08:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306906#M160367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T08:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: loop with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306907#M160368</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;You can't do it, because the table control is like an internal table with only N rows where N is number of displayed rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have designed only 8 rows in a table control by screen painter, the system variable SY-LOOPC'll be 8 and SY-STEPL'll be able to tha value from 1 to 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this situation the LOOP WITH CONTROL statament can loop only 8 records of the internal table and the field CURRENT_LINE of table control is the number of the record of internal table is beeing read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rule to calculate CURRENT_LINE is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;TC&amp;gt;-CURRENT_LINE = &amp;lt;TC&amp;gt;-TOP_LINE + SY-STEPL - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to read the remaining records you should do a reading out of LOOP of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT&lt;/P&gt;&lt;P&gt;   MODULE READ_DISPLAYED_RECORDS.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; MODULE READ_OTHER_RECORDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE READ_OTHER_RECORDS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reading records form 1 to TOP_LINE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; DO.&lt;/P&gt;&lt;P&gt;   IF SY-INDEX = &amp;lt;TC&amp;gt;-TOP_LINE. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB INDEX SY-INDEX.&lt;/P&gt;&lt;P&gt; ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The first records not displayed:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  REC = &amp;lt;TC&amp;gt;-TOP_LINE + SY-LOOPC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;   READ TABLE ITAB INDEX REC.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;   REC = REC + 1.&lt;/P&gt;&lt;P&gt;  ENDDO.&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;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 08:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306907#M160368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T08:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: loop with table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306908#M160369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hope it is not possible. Suppose if you have data for some 10K records , it would not possible to display all the records in the screenn with table contol , at the max we can drag the table control for the whole screen and we can display that many number only , for the other records &amp;lt;u&amp;gt;we have to scroll down&amp;lt;/u&amp;gt; . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Hope This Info Helps YOU.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 08:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-with-table-control/m-p/1306908#M160369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T08:12:22Z</dc:date>
    </item>
  </channel>
</rss>

