<?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 Controlling Cursor/Scroll Bar in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154638#M118510</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 long interactive report which is stretched to many pages, now when I click on any of the lines in any page it gives me more data below that line as in hierarchy. I have the problem when I click on any such line which is not displayed in the first page, cursor is again set to the first page(after the report is displayed as the report is rewritten) and I have to scroll down to find my line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone have any idea how can I set the report in such a way that I need not scroll down to find my line. I have tried with "Set Cursor line sy-lilli". Any other ideas &amp;amp; how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You All in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2006 17:19:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-02T17:19:44Z</dc:date>
    <item>
      <title>Controlling Cursor/Scroll Bar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154638#M118510</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 long interactive report which is stretched to many pages, now when I click on any of the lines in any page it gives me more data below that line as in hierarchy. I have the problem when I click on any such line which is not displayed in the first page, cursor is again set to the first page(after the report is displayed as the report is rewritten) and I have to scroll down to find my line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone have any idea how can I set the report in such a way that I need not scroll down to find my line. I have tried with "Set Cursor line sy-lilli". Any other ideas &amp;amp; how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You All in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 17:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154638#M118510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T17:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling Cursor/Scroll Bar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154639#M118511</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 statement "GET CURSOR" could be useful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "GET" can be used to retrieve the line number which was clicked. This value can be used later to position the cursor using the "SET CURSOR"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 17:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154639#M118511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T17:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling Cursor/Scroll Bar</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154640#M118512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see this example. It's not perfect, but you get the idea.   You must create the gui-status and assign function code "LINE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 no standard  page heading
                 line-count 10
                 line-size  80..


data: begin of imara occurs 0,
      check type c,
      matnr type mara-matnr,
      end of imara.

data: position type i.
data: page type i.

start-of-selection.

  set pf-status 'LINE_NUMBER'.

  select * into corresponding fields of
             table imara from mara up to 200 rows.

  perform write_list.

at user-command.
  case sy-ucomm.
    when 'LINE'.
      scroll list to page page.
      set cursor line position.
  endcase.


at line-selection.

  position = sy-lilli.

  describe list line sy-lilli page page.

  read table imara with key matnr = imara-matnr.
  if sy-subrc  = 0.
    if imara-check = space.
      imara-check = 'X'.
    else.
      imara-check = space.
    endif.
    modify imara index sy-tabix.
  endif.

  perform write_list.

  set user-command 'LINE'.


*---------------------------------------------------------------------*
*       FORM write_list                                               *
*---------------------------------------------------------------------*
form write_list.

  sy-lsind = sy-lsind - 1.

  loop at imara.

    format hotspot on.
    write:/ imara-matnr.
    if imara-check = 'X'.
      write:/ 'this material has now been expanded'.
    endif.
    hide: imara-check, imara-matnr.
    format hotspot off.

  endloop.


endform.

&lt;/CODE&gt;&lt;/PRE&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, 02 Feb 2006 19:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/controlling-cursor-scroll-bar/m-p/1154640#M118512</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-02T19:06:23Z</dc:date>
    </item>
  </channel>
</rss>

