<?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/1062011#M92123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think of it this way,  if you were to take current_line and read the internal table you will get the row same row that would match sy-tabix if you were LOOPing at the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, that current_line is now "4"  and you do a READ,  you get the 4th row of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Read table itab index tc-current_line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now say, that you loop at the interal table and check when sy-tabix =  4.  This is the same exact row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
if sy-tabix = 4.
* do something
Endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2005 20:21:04 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-12-08T20:21:04Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062002#M92114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question.. &lt;/P&gt;&lt;P&gt;While looping through the records in table control, Would the TC-Current_line be same as sy-tabix of the Internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 19:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062002#M92114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T19:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062003#M92115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, they are.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062003#M92115</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-08T20:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062004#M92116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are not same..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062004#M92116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T20:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062005#M92117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why aren't they?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062005#M92117</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-08T20:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062006#M92118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it is same, provided  there is no where condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062006#M92118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T20:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062007#M92119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No where conditions..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062007#M92119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062008#M92120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If no where conditions, then I say that they would be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062008#M92120</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-08T20:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062009#M92121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using sy-tabix will have problems in comparision to current_line. If we take the case of PAI, the data flows from screen table to the internal table so the current_line points to the screen table rather than the internal table.In such a case it will be more appropriate to use current_line of table control than the sy-tabix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062009#M92121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T20:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062010#M92122</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;Yes they are the same, if you load whole internal table in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the sy-tabix index is active while looping internal table, the &amp;lt;TABLE_CONTROL&amp;gt;-CURRENT_LINE while looping table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the PBO and PAI you should use &amp;lt;TABLE_CONTROL&amp;gt;-CURRENT_LINE, no SY-TABIX. &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;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062010#M92122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T20:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062011#M92123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think of it this way,  if you were to take current_line and read the internal table you will get the row same row that would match sy-tabix if you were LOOPing at the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, that current_line is now "4"  and you do a READ,  you get the 4th row of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Read table itab index tc-current_line.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now say, that you loop at the interal table and check when sy-tabix =  4.  This is the same exact row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
if sy-tabix = 4.
* do something
Endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 20:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062011#M92123</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-08T20:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062012#M92124</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;  &amp;lt;b&amp;gt;They are not the same&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  Reason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Suppose say that the table control can accomodate 5 rows on screen,and internal table containes 100 records,each time the table control scrolls down TC_current_line will reset to 1 and the sy-tabix keeps on increasing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TC_CURRENT_LINE            sy-tabix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         1                      1&lt;/P&gt;&lt;P&gt;         2                      2&lt;/P&gt;&lt;P&gt;         3                      3&lt;/P&gt;&lt;P&gt;         4                      4&lt;/P&gt;&lt;P&gt;         5                      5&lt;/P&gt;&lt;P&gt;         1                      6&lt;/P&gt;&lt;P&gt;         2                      7&lt;/P&gt;&lt;P&gt;         3                      8&lt;/P&gt;&lt;P&gt;         4                      9&lt;/P&gt;&lt;P&gt;         and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 02:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062012#M92124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062013#M92125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't think that current_line got reset when scrolling?  &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 02:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062013#M92125</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-09T02:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062014#M92126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also of the opinion that current_line does not get reset while scrolling.. I know that 'Get Cursor' resets the position while scrolling..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062014#M92126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T15:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062015#M92127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SSG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Both are same.&lt;/P&gt;&lt;P&gt;  if tc-current_line = 14 and with in the loop if you &lt;/P&gt;&lt;P&gt;  try to acceess the record sy-tabix = 14 then you both&lt;/P&gt;&lt;P&gt;  the records are same.&lt;/P&gt;&lt;P&gt;  If you scroll alos it can not reset.&lt;/P&gt;&lt;P&gt; Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt; Siri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062015#M92127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T15:19: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/1062016#M92128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even I feel CURRENTLINE will be reset when you scroll..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062016#M92128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062017#M92129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone actually tested it?  We need to make a final decision here &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; so that we can close the post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062017#M92129</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-09T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062018#M92130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just tested it,  in my program, current_line is following sy-tabix, it is not getting reset to 1 when scrolling, if I page down the entire table control, current_line has the same value that sy-tabix would if I loop at the interal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062018#M92130</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-09T15:44: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/1062019#M92131</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 feel While looping both works same , but if you do some change or some double click  on table control &lt;/P&gt;&lt;P&gt;it will not refer current_line.&lt;/P&gt;&lt;P&gt;it will be reset to 1 after scrolling...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062019#M92131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T15:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062020#M92132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Just now I have checked in my table control.&lt;/P&gt;&lt;P&gt;  If it is with in the loop current_line and sy-tabix &lt;/P&gt;&lt;P&gt;  are same.&lt;/P&gt;&lt;P&gt;  If it is outside the loop then current_line will &lt;/P&gt;&lt;P&gt;  always refers the tc-top_line. so we can not read the&lt;/P&gt;&lt;P&gt;  itab using tc-currnt_line. it doesnt pick up cursor &lt;/P&gt;&lt;P&gt;  line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Siri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 15:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062020#M92132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T15:59: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/1062021#M92133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right, the index current_line is always link with the index (sy-tabix) of table, it won't be reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping a table control there are three index:&lt;/P&gt;&lt;P&gt;- SY-STEPL,&lt;/P&gt;&lt;P&gt;- TOP_LINE,&lt;/P&gt;&lt;P&gt;- CURRENT_LINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENT_LINE = TOP_LINE + SY-STEPL - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values of SY-STEPL can be from 1 to N, where N is the number of rows can be displayed in TC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP_LINE is the index (sy-tabix) of the record of internal table placed in the first row of tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So SY-STEPL'll be reset to 1 for every new scrolling, not CURRENT_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user does a doubleclick on a record of tc, the system returns the number of record of tc, not index of internal table: i.e. the system returns SY-STEPL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SY-STEPL'll be reset out of LOOP/ENDLOOP of tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if user does a doubleclick, the SY-TABIX has to be found out by rule above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET CURSOR LINE VN_LINE.&lt;/P&gt;&lt;P&gt;SY-TABIX = TOP_LINE + VN_LINE - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 16:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1062021#M92133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T16:07:03Z</dc:date>
    </item>
  </channel>
</rss>

