<?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: Any function module for calling a text editor in subscreen? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528076#M1263088</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;Simplest would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Just populate your data in objtxt &amp;amp; use:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          EDITOR-CALL FOR objtxt DISPLAY-MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 05:01:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T05:01:48Z</dc:date>
    <item>
      <title>Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528074#M1263086</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 would like to know if there is any function module that can be used to call a text/note editor and can be displayed in a subscreen of a main screen (dialog programming)? This text/note editor should not be able to edit, but for display only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 03:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528074#M1263086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T03:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528075#M1263087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 03:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528075#M1263087</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-04-15T03:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528076#M1263088</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;Simplest would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Just populate your data in objtxt &amp;amp; use:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          EDITOR-CALL FOR objtxt DISPLAY-MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 05:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528076#M1263088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T05:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528077#M1263089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this fm TERM_CONTROL_EDIT &amp;amp; TXW_TEXTNOTE_EDIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kartik Tarla on Apr 15, 2009 12:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528077#M1263089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528078#M1263090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the codes, but is it possible not to have it in full screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Chuak Fen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chuak Fen Soo on Apr 15, 2009 3:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528078#M1263090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528079#M1263091</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;Then its better to use TXW_TEXTNOTE_EDIT with EDIT_MODE = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 08:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528079#M1263091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T08:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528080#M1263092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;CATSXT_SIMPLE_TEXT_EDITOR&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ritesh J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 11:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528080#M1263092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T11:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528081#M1263093</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;have a look at function group MR1M dynpro 6160.&lt;/P&gt;&lt;P&gt;Here you´ll find an example.&lt;/P&gt;&lt;P&gt;It is the "Notes" tab in header of MIRO transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the above code, for "display only" have a look at:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD editor-&amp;gt;set_readonly_mode
         EXPORTING readonly_mode = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Apr 15, 2009 4:07 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:00:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528081#M1263093</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2009-04-15T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528082#M1263094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may use CL_GUI_TEXTEDIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 14:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528082#M1263094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528083#M1263095</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;Thanks for all your replies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using the FM TERM_CONTROL_EDIT, FM TXW_TEXTNOTE_EDIT and FM CATSXT_SIMPLE_TEXT_EDITOR, but these will pop up the text/note editor window, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 01:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528083#M1263095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T01:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528084#M1263096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; have a look at function group MR1M dynpro 6160.&lt;/P&gt;&lt;P&gt;&amp;gt; Here you´ll find an example.&lt;/P&gt;&lt;P&gt;&amp;gt; It is the "Notes" tab in header of MIRO transaction&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; within the above code, for "display only" have a look at:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt;     CALL METHOD editor-&amp;gt;set_readonly_mode
&amp;gt;          EXPORTING readonly_mode = 1.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Best regards&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Pablo Casamayor on Apr 15, 2009 4:07 PM&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class used here is C_TEXTEDIT_CONTROL and i find it almost suits my requirements. Same as the class for CL_GUI_TEXTEDIT, they both have the same methods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for now, by using either the C_TEXTEDIT_CONTROL class or CL_GUI_TEXTEDIT class, i would like to highlight certain words with certain string pattern in the text editor. i tried using the methods FIND_AND_SELECT_TEXT and HIGHLIGHT_SELECTION but to no luck. Maybe I am not coding it correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: v_string_found TYPE I.

   EDITOR3-&amp;gt;FIND_AND_SELECT_TEXT(
     EXPORTING
       CASE_SENSITIVE_MODE    = 1
       SEARCH_STRING          = '&amp;lt;H&amp;gt;'
*       WHOLE_WORD_MODE        = FALSE
     CHANGING
       STRING_FOUND           = v_string_found
*     EXCEPTIONS
*       ERROR_CNTL_CALL_METHOD = 1
*       INVALID_PARAMETER      = 2
          ).
   IF SY-SUBRC &amp;lt;&amp;gt; 0.
*    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
   ENDIF.

   EDITOR3-&amp;gt;HIGHLIGHT_SELECTION(
     EXPORTING
       HIGHLIGHT_MODE         = 1
*      EXCEPTIONS
*        HAS_NO_EFFECT          = 1
*        ERROR_CNTL_CALL_METHOD = 2
*        INVALID_PARAMETER      = 3
           ).
   IF SY-SUBRC &amp;lt;&amp;gt; 0.
*     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
   ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guides for using these 2 methods? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 03:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528084#M1263096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T03:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528085#M1263097</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;Try using Function Module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CATSXT_SIMPLE_TEXT_EDITOR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 05:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528085#M1263097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T05:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528086#M1263098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey &lt;/P&gt;&lt;P&gt;hope this material will be useful for you&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b036dbfc-29dd-2a10-2aba-ccd1c4c96af7" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b036dbfc-29dd-2a10-2aba-ccd1c4c96af7&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 05:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528086#M1263098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T05:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528087#M1263099</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;Check this FM 'CATSXT_SIMPLE_TEXT_EDITOR'&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;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 06:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528087#M1263099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T06:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528088#M1263100</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;maybe this can help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check program &lt;STRONG&gt;SAPTEXTEDIT_TEST_1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;in this program pay attention to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE pai INPUT.

  CASE ok_code.
....
    WHEN 'FIND'.
      PERFORM find_text.
....
    WHEN 'HIGHLIGHT'.
      highlight = 1.
      PERFORM highlight_lines USING highlight.



*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  FIND_TEXT
*&amp;amp;---------------------------------------------------------------------*
FORM find_text.
  found = 0.
  IF case_sensitive = 'X'.             " button on Dynpro
    case_sensitive_mode = editor-&amp;gt;true.
  ELSE.
    case_sensitive_mode = editor-&amp;gt;false.
  ENDIF.
  IF whole_word = 'X'.                 " button on Dynpro
    whole_word_mode = editor-&amp;gt;true.
  ELSE.
    whole_word_mode = editor-&amp;gt;false.
  ENDIF.

  CALL METHOD editor-&amp;gt;find_and_select_text
               EXPORTING search_string = search_string
                         case_sensitive_mode = case_sensitive_mode
                         whole_word_mode = whole_word_mode
               CHANGING string_found = found.
* Flush for proper work of the following if statement
  CALL METHOD cl_gui_cfw=&amp;gt;flush.
  IF NOT search_string IS INITIAL.
    IF found NE 0.
      MESSAGE s000 WITH text-013.
    ELSE.
      MESSAGE s000 WITH text-014.
    ENDIF.
  ENDIF.
ENDFORM.                               " FIND_TEXT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  HIGHLIGHT_LINES
*&amp;amp;---------------------------------------------------------------------*
*      --&amp;gt;P_HIGHLIGHT  text                                            *
*----------------------------------------------------------------------*
FORM highlight_lines USING    p_highlight.
  IF selection EQ 'X'.
    CALL METHOD editor-&amp;gt;highlight_selection
         EXPORTING highlight_mode = p_highlight
         EXCEPTIONS has_no_effect = 1.
    IF sy-subrc NE 0.
*      add your handling
    ENDIF.
  ELSE.
    CALL METHOD editor-&amp;gt;highlight_lines
         EXPORTING
                 from_line = from_line
                 to_line = to_line
                 highlight_mode = p_highlight
         EXCEPTIONS has_no_effect = 1.
    IF sy-subrc NE 0.
*      add your handling
    ENDIF.
  ENDIF.

ENDFORM.                               " HIGHLIGHT_LINES
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Apr 17, 2009 9:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 06:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528088#M1263100</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2009-04-17T06:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528089#M1263101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this FM  'TXW_TEXTNOTE_EDIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 06:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528089#M1263101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T06:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528090#M1263102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this program SAPBC460D_09_TEXT1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 06:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528090#M1263102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T06:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528091#M1263103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Check this program SAPBC460D_09_TEXT1&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Gayathri, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't find program SAPBC460D_09_TEXT1. Thank you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 08:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528091#M1263103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T08:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528092#M1263104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; maybe this can help:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; check program &lt;STRONG&gt;SAPTEXTEDIT_TEST_1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; in this program pay attention to:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; MODULE pai INPUT.
&amp;gt; 
&amp;gt;   CASE ok_code.
&amp;gt; ....
&amp;gt;     WHEN 'FIND'.
&amp;gt;       PERFORM find_text.
&amp;gt; ....
&amp;gt;     WHEN 'HIGHLIGHT'.
&amp;gt;       highlight = 1.
&amp;gt;       PERFORM highlight_lines USING highlight.
&amp;gt; 
&amp;gt; 
&amp;gt; 
&amp;gt; *&amp;amp;---------------------------------------------------------------------*
&amp;gt; *&amp;amp;      Form  FIND_TEXT
&amp;gt; *&amp;amp;---------------------------------------------------------------------*
&amp;gt; FORM find_text.
&amp;gt;   found = 0.
&amp;gt;   IF case_sensitive = 'X'.             " button on Dynpro
&amp;gt;     case_sensitive_mode = editor-&amp;gt;true.
&amp;gt;   ELSE.
&amp;gt;     case_sensitive_mode = editor-&amp;gt;false.
&amp;gt;   ENDIF.
&amp;gt;   IF whole_word = 'X'.                 " button on Dynpro
&amp;gt;     whole_word_mode = editor-&amp;gt;true.
&amp;gt;   ELSE.
&amp;gt;     whole_word_mode = editor-&amp;gt;false.
&amp;gt;   ENDIF.
&amp;gt; 
&amp;gt;   CALL METHOD editor-&amp;gt;find_and_select_text
&amp;gt;                EXPORTING search_string = search_string
&amp;gt;                          case_sensitive_mode = case_sensitive_mode
&amp;gt;                          whole_word_mode = whole_word_mode
&amp;gt;                CHANGING string_found = found.
&amp;gt; * Flush for proper work of the following if statement
&amp;gt;   CALL METHOD cl_gui_cfw=&amp;gt;flush.
&amp;gt;   IF NOT search_string IS INITIAL.
&amp;gt;     IF found NE 0.
&amp;gt;       MESSAGE s000 WITH text-013.
&amp;gt;     ELSE.
&amp;gt;       MESSAGE s000 WITH text-014.
&amp;gt;     ENDIF.
&amp;gt;   ENDIF.
&amp;gt; ENDFORM.                               " FIND_TEXT
&amp;gt; 
&amp;gt; *&amp;amp;---------------------------------------------------------------------*
&amp;gt; *&amp;amp;      Form  HIGHLIGHT_LINES
&amp;gt; *&amp;amp;---------------------------------------------------------------------*
&amp;gt; *      --&amp;gt;P_HIGHLIGHT  text                                            *
&amp;gt; *----------------------------------------------------------------------*
&amp;gt; FORM highlight_lines USING    p_highlight.
&amp;gt;   IF selection EQ 'X'.
&amp;gt;     CALL METHOD editor-&amp;gt;highlight_selection
&amp;gt;          EXPORTING highlight_mode = p_highlight
&amp;gt;          EXCEPTIONS has_no_effect = 1.
&amp;gt;     IF sy-subrc NE 0.
&amp;gt; *      add your handling
&amp;gt;     ENDIF.
&amp;gt;   ELSE.
&amp;gt;     CALL METHOD editor-&amp;gt;highlight_lines
&amp;gt;          EXPORTING
&amp;gt;                  from_line = from_line
&amp;gt;                  to_line = to_line
&amp;gt;                  highlight_mode = p_highlight
&amp;gt;          EXCEPTIONS has_no_effect = 1.
&amp;gt;     IF sy-subrc NE 0.
&amp;gt; *      add your handling
&amp;gt;     ENDIF.
&amp;gt;   ENDIF.
&amp;gt; 
&amp;gt; ENDFORM.                               " HIGHLIGHT_LINES
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; and this link:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;A href="http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_45b/helpdata/EN/0e/514035634d761fe10000009b38f889/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Best regards.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: Pablo Casamayor on Apr 17, 2009 9:19 AM&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Pablo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have look through the program SAPTEXTEDIT_TEST_1. This program does the Text Selection and Highlighting the Text only after the buttons of each of the function is clicked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirements will be, having all the selected text (with a string pattern) to be highlighted when this text editor is displayed. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really thanks for your replies... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chuak Fen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 08:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528092#M1263104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T08:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Any function module for calling a text editor in subscreen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528093#M1263105</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;1.- execute program SAPTEXTEDIT_TEST_1&lt;/P&gt;&lt;P&gt;2.- write some text&lt;/P&gt;&lt;P&gt;3.- tick the following checkboxes:&lt;/P&gt;&lt;P&gt;Case-sensitive&lt;/P&gt;&lt;P&gt;Whole-word&lt;/P&gt;&lt;P&gt;Use for selection&lt;/P&gt;&lt;P&gt;4.- in Find input field put the text you want to highlight&lt;/P&gt;&lt;P&gt;5.- Click button "Find and select"&lt;/P&gt;&lt;P&gt;6.- click button "Highlight text area"&lt;/P&gt;&lt;P&gt;7.- click on button "Display&amp;lt;-&amp;gt;Change"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you click on the text editor although you are on display mode you can see that the text is hilighted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pablo Casamayor on Apr 17, 2009 12:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 09:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-function-module-for-calling-a-text-editor-in-subscreen/m-p/5528093#M1263105</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2009-04-17T09:18:59Z</dc:date>
    </item>
  </channel>
</rss>

