<?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: text editor not getting cleared in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428225#M1550110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Clear G_editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 04:46:07 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2010-11-30T04:46:07Z</dc:date>
    <item>
      <title>text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428222#M1550107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;i am doing a module pool to create a gate pass and i when i press create it will go to the next screen .in that screen i have created a texteditor for entering the purpose . if i enter the purpose and if i dont save and click back it goes to the previous screen and then if i again click create the text i entered in the texteditor still is retained. how can i clear that?. will be thankful if some one could help.below is the code i have used in PBO.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF G_EDITOR IS INITIAL.
    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    CREATE OBJECT g_editor
      EXPORTING
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true
      EXCEPTIONS
          others = 1.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with thanks in advance,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SYED_ibbu on Nov 30, 2010 5:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 03:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428222#M1550107</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T03:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428223#M1550108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD cl_gui_cfw=&amp;gt;flush
      EXCEPTIONS
        OTHERS = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428223#M1550108</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-11-30T04:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428224#M1550109</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 gautam  for the rply.But i had used flush part that i removed while posting before creating the container.but it is not still getting cleared.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL METHOD cl_gui_cfw=&amp;gt;flush
      EXCEPTIONS
        CNTL_SYSTEM_ERROR = 1
        CNTL_ERROR        = 2.

    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with thanks in advance,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428224#M1550109</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T04:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428225#M1550110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS = 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Clear G_editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428225#M1550110</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-11-30T04:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428226#M1550111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks again gautam,&lt;/P&gt;&lt;P&gt;i tried with clear g_editor .still no luck.i am posting the whole code for a better picture.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"in PBO
 g_repid = sy-repid.
  IF G_EDITOR IS INITIAL.
    CALL METHOD cl_gui_cfw=&amp;gt;flush
      EXCEPTIONS
        CNTL_SYSTEM_ERROR = 1
        CNTL_ERROR        = 2.
***
    CLEAR G_EDITOR_CONTAINER.CLEAR G_EDITOR.
    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
    ENDIF.

    CREATE OBJECT g_editor
      EXPORTING
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true
      EXCEPTIONS
          others = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-001.
    ENDIF.

    IF ( L_FUNC = C_DISPLAY OR L_FUNC = C_CHANGE ).
      REFRESH G_MYTABLE.CLEAR W_MYTABLELINE.
      SELECT SINGLE PURPOSE PURPOSE1 PURPOSE2 PURPOSE3 INTO (TEXT,TEXT1,TEXT2,TEXT3) FROM ZGATE_PASS_CFL WHERE PASS_NO = ZST_GP_CFL-PASS_NO.
      W_MYTABLELINE-LINE = TEXT. APPEND W_MYTABLELINE TO G_MYTABLE.
      W_MYTABLELINE-LINE = TEXT1. APPEND W_MYTABLELINE TO G_MYTABLE.
      W_MYTABLELINE-LINE = TEXT2. APPEND W_MYTABLELINE TO G_MYTABLE.
      W_MYTABLELINE-LINE = TEXT3. APPEND W_MYTABLELINE TO G_MYTABLE.

      CALL METHOD g_editor-&amp;gt;SET_text_as_r3table
        EXPORTING
          table  = g_mytable
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc NE 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
          EXPORTING
            titel = g_repid
            txt2  = space
            txt1  = text-003.
      ENDIF.
    ENDIF.

  ENDIF.
  IF L_FUNC = C_DISPLAY OR C_APPROVE2 IS NOT INITIAL.
    CALL METHOD g_editor-&amp;gt;set_focus
      EXPORTING
        control = g_editor.
    call method G_editor-&amp;gt;SET_READONLY_MODE( '1' ).
  ELSEIF L_FUNC = C_CHANGE AND C_APPROVE2 IS INITIAL.
    CALL METHOD g_editor-&amp;gt;set_focus
      EXPORTING
        control = g_editor.
    call method G_editor-&amp;gt;SET_READONLY_MODE( '0' ).
  ENDIF.
" in PAI
IF MENGE_FL IS NOT INITIAL AND ( L_FUNC = C_CREATE OR L_FUNC = C_CHANGE ).
    CALL METHOD g_editor-&amp;gt;get_text_as_r3table
      IMPORTING
        table  = g_mytable
      EXCEPTIONS
        OTHERS = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-003.
    ENDIF.
    LOOP AT G_MYTABLE INTO W_MYTABLELINE.
      IF SY-TABIX = 1.
        TEXT = W_MYTABLELINE-LINE.
      ELSEIF SY-TABIX = 2.
        TEXT1 = W_MYTABLELINE-LINE.
      ELSEIF SY-TABIX = 3.
        TEXT2 = W_MYTABLELINE-LINE.
      ELSEIF SY-TABIX = 4.
        TEXT3 = W_MYTABLELINE-LINE.
      ENDIF.
    ENDLOOP.
*      READ TABLE G_MYTABLE INTO W_MYTABLELINE INDEX 1.
*      TEXT = W_MYTABLELINE-LINE.

    CALL METHOD cl_gui_cfw=&amp;gt;flush
      EXCEPTIONS
        OTHERS = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-002.
    ENDIF.
CLEAR g_ok_code.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with thanks in advance,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 04:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428226#M1550111</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T04:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428227#M1550112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Edited by: SYED_ibbu on Nov 30, 2010 6:02 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SYED_ibbu on Nov 30, 2010 6:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428227#M1550112</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T05:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428228#M1550113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI  SYED,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;try this code from 'PBO' then it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD cpreg-&amp;gt;delete_text.   "    cpreg : container name 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Murthy.SAP on Nov 30, 2010 6:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428228#M1550113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T05:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428229#M1550114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call the method free before initilizing the object for editor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD g_editor-&amp;gt;free( ).

CLEAR g_editor.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428229#M1550114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T05:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428230#M1550115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks murthy,&lt;/P&gt;&lt;P&gt;when i tried his it is showing the error as 'delete_text is unknown or protected or private'&lt;/P&gt;&lt;P&gt;with thanks,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428230#M1550115</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T05:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428231#M1550116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks murthy,&lt;/P&gt;&lt;P&gt;when i tried his it is showing the error as 'delete_text is unknown or protected or private'&lt;/P&gt;&lt;P&gt;with thanks,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428231#M1550116</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T05:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428232#M1550117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks benu,&lt;/P&gt;&lt;P&gt;i have used it as below.it is dumping as access not possible due to null refrence.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   call method g_editor-&amp;gt;free( ).
    clear g_editor.
    CREATE OBJECT g_editor
      EXPORTING
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true
      EXCEPTIONS
          others = 1.
    IF sy-subrc NE 0.
      CALL FUNCTION 'POPUP_TO_INFORM'
        EXPORTING
          titel = g_repid
          txt2  = space
          txt1  = text-001.
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with thanks in advance,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428232#M1550117</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T05:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428233#M1550118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syed try it from PBO module it wil work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not I wil giv you an Example program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know the status , after u tried..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 05:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428233#M1550118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T05:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428234#M1550119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tahnks again,&lt;/P&gt;&lt;P&gt;i tried it from PBO only.below is the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"PBO
    CALL METHOD cl_gui_cfw=&amp;gt;flush
      EXCEPTIONS
        CNTL_SYSTEM_ERROR = 1
        CNTL_ERROR        = 2.
    CLEAR G_EDITOR_CONTAINER.CLEAR G_EDITOR.
CALL METHOD g_editor_container-&amp;gt;delete_text.

    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        EXCEPTIONS
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
*      add your handling
    ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428234#M1550119</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T06:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428235#M1550120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Please try this code below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "in PBO&lt;/P&gt;&lt;P&gt; g_repid = sy-repid.&lt;/P&gt;&lt;P&gt; IF G_EDITOR IS &lt;STRONG&gt;NOT&lt;/STRONG&gt;   INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR = 1&lt;/P&gt;&lt;P&gt;        CNTL_ERROR        = 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This should work ...  the reason it is not working currently is in PBO of screen  the system checkes the editor is initial or not .. &lt;/P&gt;&lt;P&gt;if it is not initial then only it should call the flush .&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428235#M1550120</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2010-11-30T06:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428236#M1550121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SYED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example program which iam using in my current project&lt;/P&gt;&lt;P&gt;Surely it wil work check it out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
" IN PBO

DATA : editor_container TYPE REF TO  cl_gui_custom_container,
       cpreg TYPE REF TO cl_gui_textedit.

 IF cpreg IS INITIAL.

    CREATE OBJECT editor_container
      EXPORTING
        container_name = 'CPREG'.

    CREATE OBJECT cpreg
      EXPORTING
        parent                     = editor_container
        wordwrap_mode        = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
        wordwrap_position     = 45
        wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.

    CALL METHOD cpreg-&amp;gt;set_toolbar_mode
      EXPORTING
        toolbar_mode = cl_gui_textedit=&amp;gt;false.

    CALL METHOD cpreg-&amp;gt;set_statusbar_mode
      EXPORTING
        statusbar_mode = cl_gui_textedit=&amp;gt;false.

  ENDIF.

"THIS IS ALSO IN PBO

  IF sy-ucomm = 'CLEAR'.
       PERFORM clear_data.
  ENDIF.

"FORM CLEAR_DATA...

FORM clear_data .
    CALL METHOD cpreg-&amp;gt;delete_text.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know the Status&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428236#M1550121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T06:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428237#M1550122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dump is due to the null reference for the object. You should have cleared the object in PAI event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, before freeing the object try calling the free() method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Benu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428237#M1550122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T06:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: text editor not getting cleared</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428238#M1550123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi murthy,&lt;/P&gt;&lt;P&gt;thanks a lot.it worked.and thanks everyone for helping me out.&lt;/P&gt;&lt;P&gt;with thanks,&lt;/P&gt;&lt;P&gt;syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-not-getting-cleared/m-p/7428238#M1550123</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-11-30T06:45:56Z</dc:date>
    </item>
  </channel>
</rss>

