<?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: Set Cursor position in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053695#M1352764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is the user input the value of the table key:&lt;/P&gt;&lt;P&gt;DATA:  v_KEY_pos(30). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_pos_exclude-fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;    APPEND  t_pos_exclude.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'TABLE_GET_KEY_TO_SET_CUR_ROW'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        table             = 'T024'          "TABLE STRUCTURE NAME&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        table_key         = v_KEY_pos "RETURN THE KEY FOUND&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        exclude_fields    = t_pos_exclude&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cancelled_by_user = 01&lt;/P&gt;&lt;P&gt;        table_not_found   = 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_ekgrp = v_KEY_pos+3(3). "PUT THE KEY INTO A KEY TYPE FIELD&lt;/P&gt;&lt;P&gt;    READ TABLE t_t024 INTO w_t024 WITH KEY ekgrp = v_ekgrp.&lt;/P&gt;&lt;P&gt;    v_linha = sy-tabix.&lt;/P&gt;&lt;P&gt;    tc_grupo_compr-top_line = v_linha. "SET THE TOP LINE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 02:07:11 GMT</pubDate>
    <dc:creator>marcelom_bovo</dc:creator>
    <dc:date>2010-05-06T02:07:11Z</dc:date>
    <item>
      <title>Set Cursor position in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053692#M1352761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi all,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  In my custom screen, i have a table control with 100 records and position button. When the user press the position button one dialog screen will appear and user will give the record and press OK button. My requirement is to set the cursor position at selected record in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if i gave 38 then i want to set the cursor position at 38th record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already wrote &lt;STRONG&gt;Set cursor&lt;/STRONG&gt; in my program but it is working for current page only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 07:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053692#M1352761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T07:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cursor position in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053693#M1352762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in pai user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read the rord no of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table itab with key field = input_field.
if sy-subrc eq 0.
  va_tabix = sy-tabix.
endif.


in pbo of the screen.

if va_tabix ne 0.
         tc-top_line = va_tabix.
         clear va_tabix.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will bring your record at the first line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 09:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053693#M1352762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cursor position in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053694#M1352763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved my self by using the function module &lt;STRONG&gt;SCROLLING_IN_TABLE&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053694#M1352763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cursor position in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053695#M1352764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is the user input the value of the table key:&lt;/P&gt;&lt;P&gt;DATA:  v_KEY_pos(30). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    t_pos_exclude-fieldname = 'MANDT'.&lt;/P&gt;&lt;P&gt;    APPEND  t_pos_exclude.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'TABLE_GET_KEY_TO_SET_CUR_ROW'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        table             = 'T024'          "TABLE STRUCTURE NAME&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        table_key         = v_KEY_pos "RETURN THE KEY FOUND&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        exclude_fields    = t_pos_exclude&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        cancelled_by_user = 01&lt;/P&gt;&lt;P&gt;        table_not_found   = 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_ekgrp = v_KEY_pos+3(3). "PUT THE KEY INTO A KEY TYPE FIELD&lt;/P&gt;&lt;P&gt;    READ TABLE t_t024 INTO w_t024 WITH KEY ekgrp = v_ekgrp.&lt;/P&gt;&lt;P&gt;    v_linha = sy-tabix.&lt;/P&gt;&lt;P&gt;    tc_grupo_compr-top_line = v_linha. "SET THE TOP LINE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 02:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053695#M1352764</guid>
      <dc:creator>marcelom_bovo</dc:creator>
      <dc:date>2010-05-06T02:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Cursor position in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053696#M1352765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alpesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one you provided is gud and simple..&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, 03 Aug 2011 11:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-in-table-control/m-p/6053696#M1352765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-03T11:33:02Z</dc:date>
    </item>
  </channel>
</rss>

