<?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 on select lines in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367502#M524340</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;&lt;/P&gt;&lt;P&gt;TOP_LINE --&amp;gt;Also set by the SAPgui through the vertical scroll bar slider. &lt;/P&gt;&lt;P&gt;CURRENT_LINE---&amp;gt; Read only, set by the system ( TOP_LINE + SY-STEPL - 1 ) &lt;/P&gt;&lt;P&gt;LEFT_COL -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Also set by the SAPgui through the horizontal scroll bar slider. &lt;/P&gt;&lt;P&gt;COLS-INDEX ---&amp;gt;Also set by the SAPgui after moving columns. &lt;/P&gt;&lt;P&gt;COLS-SELECTED ---&amp;gt;Also set by the SAPgui after column selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tese all are the fields of structure TABLEVIEW, using these fields we can palce the cursor position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;U Follow this code ...&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONTROLS ctrl TYPE TABLEVIEW USING SCREEN scr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
LOOP AT itab WITH CONTROL ctrl CURSOR ctrl-CURRENT_LINE.
ENDLOOP.

PROCESS AFTER INPUT.
LOOP AT itab WITH CONTROL ctrl.
  MODULE ctrl_pai.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 21:01:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-08T21:01:05Z</dc:date>
    <item>
      <title>set cursor position on select lines in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367500#M524338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data in table control and when the user selects a row, modified data and clicks on sav ebutton, the cursor should be set back to the selected line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the cursor defaults to the first row of the table.&lt;/P&gt;&lt;P&gt;Plz let me know how i can set cursor to the first selected row...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 20:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367500#M524338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T20:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor position on select lines in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367501#M524339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write simple if condition,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where you are writing cursor position ? then write the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm ne 'SAVE'.&lt;/P&gt;&lt;P&gt;here mentioned default set cursor position&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 20:50:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367501#M524339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: set cursor position on select lines in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367502#M524340</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;&lt;/P&gt;&lt;P&gt;TOP_LINE --&amp;gt;Also set by the SAPgui through the vertical scroll bar slider. &lt;/P&gt;&lt;P&gt;CURRENT_LINE---&amp;gt; Read only, set by the system ( TOP_LINE + SY-STEPL - 1 ) &lt;/P&gt;&lt;P&gt;LEFT_COL -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;Also set by the SAPgui through the horizontal scroll bar slider. &lt;/P&gt;&lt;P&gt;COLS-INDEX ---&amp;gt;Also set by the SAPgui after moving columns. &lt;/P&gt;&lt;P&gt;COLS-SELECTED ---&amp;gt;Also set by the SAPgui after column selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tese all are the fields of structure TABLEVIEW, using these fields we can palce the cursor position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;U Follow this code ...&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONTROLS ctrl TYPE TABLEVIEW USING SCREEN scr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
LOOP AT itab WITH CONTROL ctrl CURSOR ctrl-CURRENT_LINE.
ENDLOOP.

PROCESS AFTER INPUT.
LOOP AT itab WITH CONTROL ctrl.
  MODULE ctrl_pai.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;Ashokreddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 21:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-cursor-position-on-select-lines-in-table-control/m-p/2367502#M524340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T21:01:05Z</dc:date>
    </item>
  </channel>
</rss>

