<?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: Cursor value on custom editor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734599#M635100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the effort. I had tried doing that but it works in case you have an object created, but since I used the FM's it doesnt work.&lt;/P&gt;&lt;P&gt;However I have foudn a solution. I created the editor using class cl_gui_textedit and called the method get_selection_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2007 12:34:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T12:34:47Z</dc:date>
    <item>
      <title>Cursor value on custom editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734596#M635097</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;I have created a custom editor on the top half of a screen using FM 'RH_EDITOR_SET'.&lt;/P&gt;&lt;P&gt;I need to capture the cursor position on the editor (row and column). &lt;/P&gt;&lt;P&gt;Though below the editor the line no and col no as displayed (like in the ABAP editor), I am not able to capture them inside the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GET cursor function does not work b'cos the screen element for the editor is a container. I also tried some system fields but none returns the value of the row no and column no on the editor on a screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 07:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734596#M635097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T07:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor value on custom editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734597#M635098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I want to insert some code at a selected cursor position in the editor.&lt;/P&gt;&lt;P&gt;But the problem is that I have to choose a position on the editor and then have to click on a puch button to insert code at that position in the editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of this is like we call FM's from an ABAP program, select a cursor position in the editor and click on 'Pattern' the code gets inserted on that position.&lt;/P&gt;&lt;P&gt;I need a similar functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how we can achieve this on a custom editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 08:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734597#M635098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor value on custom editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734598#M635099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Archana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try calling the function module&lt;/P&gt;&lt;P&gt;"GET_CURSOR"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned,i have debugged the action of insertion of pattern out of curiosity and found that this function module "GET_CURSOR" is called in OOPs..&lt;/P&gt;&lt;P&gt;The return parameters&lt;/P&gt;&lt;P&gt;FIRST_LINE&lt;/P&gt;&lt;P&gt;CURSOR_LINE    -&amp;gt; line&lt;/P&gt;&lt;P&gt;CURSOR_OFFSET -&amp;gt; offset&lt;/P&gt;&lt;P&gt;will be returned...you will be able to insert your code at the location returned&lt;/P&gt;&lt;P&gt;which means -&amp;gt; on the push of the button this FM needs to be called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if it worked out &lt;/P&gt;&lt;P&gt;All the best &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&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;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 09:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734598#M635099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T09:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cursor value on custom editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734599#M635100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the effort. I had tried doing that but it works in case you have an object created, but since I used the FM's it doesnt work.&lt;/P&gt;&lt;P&gt;However I have foudn a solution. I created the editor using class cl_gui_textedit and called the method get_selection_pos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-value-on-custom-editor/m-p/2734599#M635100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T12:34:47Z</dc:date>
    </item>
  </channel>
</rss>

