<?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: Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147518#M453161</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;Strange, very strange!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to run a code like your and it works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTABLE_CONTROL.

CONTROLS T_CTRL TYPE TABLEVIEW USING SCREEN 100.

TYPES: BEGIN OF TY_WA,
         FIELD1,
         FIELD2,
       END   OF TY_WA.

DATA: ITAB TYPE STANDARD TABLE OF TY_WA.

DATA: WA TYPE TY_WA.

DO 25 TIMES.
  WA-FIELD1 = WA-FIELD2 = 'A'.
  APPEND WA TO ITAB.
ENDDO.


T_CTRL-LINES = 40 .
T_CTRL-V_SCROLL = 'X'.


CALL SCREEN 100.

* I used work area WA to design the fields of table control:

PROCESS BEFORE OUTPUT.
  LOOP AT ITAB INTO WA
  WITH CONTROL T_CTRL
  CURSOR T_CTRL-CURRENT_LINE.
  ENDLOOP.

PROCESS AFTER INPUT.


  LOOP AT ITAB.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 19:31:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T19:31:53Z</dc:date>
    <item>
      <title>Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147501#M453144</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 have a table control in a module pool program. It displays 10 lines at a time. The internal table has 25 lines. But just 10 are displayed. When I scroll down, the rows are blank. And when I try to scroll up, data is deleted from internal table. I tried debugging, and found that when its looping at internal table in PBO it just loops for 10 passes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_inv_faxemail INTO rec_inv_faxemail&lt;/P&gt;&lt;P&gt;     WITH CONTROL ctrl_faxemail&lt;/P&gt;&lt;P&gt;           CURSOR ctrl_faxemail-current_line.&lt;/P&gt;&lt;P&gt;    MODULE screen_chg.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table gt_inv_faxemail is without a header line &amp;amp; fields of rec_inv_faxemail are displayed on screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ctrl_faxemail-lines = 40 &lt;/P&gt;&lt;P&gt;ctrl_faxemail-v_scrol = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me knoe what could be the problem?&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, 04 Apr 2007 17:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147501#M453144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147502#M453145</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;The number of displayed lines depends on how many rows you've inserted in your table control by screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if your table control has 10 rows you can see only 10 records, u need to scroll up (down) it in order to see the next 10 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very strange the data are deleted from internal table, u should past the code of PAI.&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, 04 Apr 2007 17:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147502#M453145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T17:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147503#M453146</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;&lt;/P&gt;&lt;P&gt;The code in the PAI is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  MODULE exit_command AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  MODULE clear_data_pai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP at gt_inv_faxemail."WITH CONTROL ctrl_faxemail.&lt;/P&gt;&lt;P&gt;    CHAIN.&lt;/P&gt;&lt;P&gt;      FIELD rec_inv_faxemail-cont_acct.&lt;/P&gt;&lt;P&gt;      FIELD rec_inv_faxemail-line_num.&lt;/P&gt;&lt;P&gt;      FIELD sel.&lt;/P&gt;&lt;P&gt;      MODULE read_data.&lt;/P&gt;&lt;P&gt;    ENDCHAIN.&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;First 10 records are displayed properly. But when I scroll down, rest of the rows are blank. When I try to scroll up again, all the records are balnk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147503#M453146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147504#M453147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to count the number of lines in the internal tanle that you are using to write the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose your internal table is itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : NO_LINES type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES NO_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then you have to use the no_lines for your table control and will have all the lines now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147504#M453147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147505#M453148</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;Your code seems to be right, anyway can u past the code of MODULE read_data?&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, 04 Apr 2007 18:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147505#M453148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147506#M453149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the demo Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABCONT_LOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147506#M453149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147507#M453150</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;Please check this demo programs perhaps they may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_1&lt;/P&gt;&lt;P&gt;DEMO_DYNPRO_TABLE_CONTROL_2&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147507#M453150</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-04T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147508#M453151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ferry, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the PBO loop they use a module: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE lines OUTPUT.&lt;/P&gt;&lt;P&gt;  step_lines = sy-loopc.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know what exactly is it for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147508#M453151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147509#M453152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shreekant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO, there is a module above this loop which counts the number of rows in itab &amp;amp; assigns it to TC-lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147509#M453152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147510#M453153</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;&lt;/P&gt;&lt;P&gt;Code for read_data is given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE read_data INPUT.&lt;/P&gt;&lt;P&gt;  IF NOT rec_inv_faxemail-fax         IS INITIAL&lt;/P&gt;&lt;P&gt;  OR NOT rec_inv_faxemail-email       IS INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM check_record USING rec_inv_faxemail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CASE gv_error.&lt;/P&gt;&lt;P&gt;        WHEN '1'.&lt;/P&gt;&lt;P&gt;          MESSAGE e402(zauto).&lt;/P&gt;&lt;P&gt;        WHEN '2'.&lt;/P&gt;&lt;P&gt;          MESSAGE e403(zauto).&lt;/P&gt;&lt;P&gt;        WHEN '3'.&lt;/P&gt;&lt;P&gt;          MESSAGE e404(zauto).&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND rec_inv_faxemail   TO gt_inv_faxemail_temp.&lt;/P&gt;&lt;P&gt; ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147510#M453153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147511#M453154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the demo Porgram i specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its pretty clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147511#M453154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147512#M453155</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;U're appending a record from table control every time the line has a value: very strange code, u risk to append the same records many many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the right code should be like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE read_data INPUT.
      IF      NOT rec_inv_faxemail-fax IS INITIAL
         OR NOT rec_inv_faxemail-email IS INITIAL

         PERFORM check_record USING rec_inv_faxemail.

        CASE gv_error.
           WHEN '1'. MESSAGE e402(zauto). 
           WHEN '2'. MESSAGE e403(zauto).
           WHEN '3'. MESSAGE e404(zauto).
        ENDCASE.
    ENDIF.
   
    modify gt_inv_faxemail_temp from rec_inv_faxemail index ctrl_faxemail-current_line.
    if sy-subrc &amp;lt;&amp;gt; 0.
      APPEND rec_inv_faxemail TO gt_inv_faxemail_temp.
    endif.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&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, 04 Apr 2007 18:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147512#M453155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147513#M453156</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;Please check this link which will explain in detaill with sample codes on step loop processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbacac35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbacac35c111d1829f0000e829fbfe/content.htm&lt;/A&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147513#M453156</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-04T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147514#M453157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Max!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur reply. The idea is for table 'gt_inv_faxemail_temp' to have all the records after user has made changes in the table control. (Multiple records can be edited). For table control we are looping at a different table 'gt_inv_faxemail'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to paste a simplified form of PAI code, so missed an 'ENDIF'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147514#M453157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147515#M453158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that just 10 records are being displayed. I am able to scroll, but rows are just blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 18:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147515#M453158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147516#M453159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How the table controls works is, When ever you create the table in screen based on the size it will assign number of rows. In ur case seems like it has 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let say you have an internal table which has all the rows. When you execute for the first time you have to read the first 10 rows from the main internal table to another table and display the results.&lt;/P&gt;&lt;P&gt;When you hit the scroll bar on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE fill_table_control OUTPUT.&lt;/P&gt;&lt;P&gt;  READ TABLE itab INTO demo_conn INDEX flights-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is triggered and the current line is line 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you will read from line 2 to line 11 into demo_conn and is displayed.&lt;/P&gt;&lt;P&gt;So basically whats hapenning is everytime you hit the scroll bar the data in demo_conn is changed based on the current line and is diaplayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a break point on line 15 of the program DEMO_DYNPRO_TABCONT_LOOP and look it ur self in the debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 19:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147516#M453159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147517#M453160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Everyone!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just found a bug &amp;amp; fixed it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 19:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147517#M453160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147518#M453161</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;Strange, very strange!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to run a code like your and it works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTABLE_CONTROL.

CONTROLS T_CTRL TYPE TABLEVIEW USING SCREEN 100.

TYPES: BEGIN OF TY_WA,
         FIELD1,
         FIELD2,
       END   OF TY_WA.

DATA: ITAB TYPE STANDARD TABLE OF TY_WA.

DATA: WA TYPE TY_WA.

DO 25 TIMES.
  WA-FIELD1 = WA-FIELD2 = 'A'.
  APPEND WA TO ITAB.
ENDDO.


T_CTRL-LINES = 40 .
T_CTRL-V_SCROLL = 'X'.


CALL SCREEN 100.

* I used work area WA to design the fields of table control:

PROCESS BEFORE OUTPUT.
  LOOP AT ITAB INTO WA
  WITH CONTROL T_CTRL
  CURSOR T_CTRL-CURRENT_LINE.
  ENDLOOP.

PROCESS AFTER INPUT.


  LOOP AT ITAB.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 19:31:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147518#M453161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T19:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147519#M453162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now its working!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 20:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/2147519#M453162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T20:03:49Z</dc:date>
    </item>
  </channel>
</rss>

