<?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: how to refresh the textedit object in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965379#M396507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this  or like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FU FREE_TEXT_MEMORY&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;SAPscript: Delete all texts in update catalog (Textmemory)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;All text modules whose object identifiers are defined for storage in the update task are initially stored in the text memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text memory has been created within ABAP memory and as such is preserved even when a transaction is called in call mode in an application program (CALL TRANSACTION, SUBMIT AND RETURN or CALL DIALOG). The same is true for reports and dialog modules. This means that all programs in this CALL hierarchy called by an application program work with the same text memory and thus have access to the same texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an application program wants to insure that the text memory is empty after another transaction has been called in CALL mode, it uses the function module FREE_TEXT_MEMORY, that deletes all text memory texts. In principle, you can call this function module at the beginning of a transaction to insure that the text memory is empty, that is that you are programming and saving things to an empty text memory buffer. In concrete cases, this must be determined by the application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;See the description of the text memory and CALL mode in the SAP Online Documentation for SAPscript (section Program interface -&amp;gt; Textmemory)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;LOCAL_CAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;NOT_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;STXD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rregards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Feb 2007 12:24:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-13T12:24:40Z</dc:date>
    <item>
      <title>how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965377#M396505</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 would appreciate if anybody can solve my problem.&lt;/P&gt;&lt;P&gt;Problem is i have created one TEXTEDIT and now when user clicks on the cancel button and come back to the screen the data which was previously entered is still coming up.&lt;/P&gt;&lt;P&gt;Please tell me how to refresh the data in TEXTEDIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 12:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965377#M396505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965378#M396506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refresh the internal table used to hold the data for the text editor when the Cancel button is pressed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 12:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965378#M396506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T12:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965379#M396507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this  or like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FU FREE_TEXT_MEMORY&lt;/P&gt;&lt;P&gt;____________________________________________________&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;SAPscript: Delete all texts in update catalog (Textmemory)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;All text modules whose object identifiers are defined for storage in the update task are initially stored in the text memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text memory has been created within ABAP memory and as such is preserved even when a transaction is called in call mode in an application program (CALL TRANSACTION, SUBMIT AND RETURN or CALL DIALOG). The same is true for reports and dialog modules. This means that all programs in this CALL hierarchy called by an application program work with the same text memory and thus have access to the same texts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an application program wants to insure that the text memory is empty after another transaction has been called in CALL mode, it uses the function module FREE_TEXT_MEMORY, that deletes all text memory texts. In principle, you can call this function module at the beginning of a transaction to insure that the text memory is empty, that is that you are programming and saving things to an empty text memory buffer. In concrete cases, this must be determined by the application program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further Information&lt;/P&gt;&lt;P&gt;See the description of the text memory and CALL mode in the SAP Online Documentation for SAPscript (section Program interface -&amp;gt; Textmemory)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;LOCAL_CAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;NOT_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;STXD&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rregards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 12:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965379#M396507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-13T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965380#M396508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike &lt;/P&gt;&lt;P&gt;I have also facing the same problem as you have. &lt;/P&gt;&lt;P&gt;i think you have not Re-Initialize the container.&lt;/P&gt;&lt;P&gt;Please Reinitialze the contianer. Then automatically you problem would resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 16:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965380#M396508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T16:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965381#M396509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this you use at the PBO Event.&lt;/P&gt;&lt;P&gt;for Initialziing the Editor Use below code for the edito&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      CONSTANTS: C_LINE_LENGTH TYPE I VALUE 80.
*     define table type for data exchange
      TYPES: BEGIN OF MYTABLE_LINE,
               LINE(C_LINE_LENGTH) TYPE C,
             END OF MYTABLE_LINE.

      DATA G_MYTABLE TYPE TABLE OF MYTABLE_LINE.

      if not g_editor_container1 is initial.
        CALL METHOD g_editor_container1-&amp;gt;FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 2
            others            = 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.

      endif.
*   create control container
      CREATE OBJECT g_editor_container1
          EXPORTING
              container_name = 'CUST_CTRL'
          EXCEPTIONS
              cntl_error = 1
              cntl_system_error = 2
              create_error = 3
              lifetime_error = 4
              lifetime_dynpro_dynpro_link = 5.

*&amp;amp;   create Editor
      CREATE OBJECT editor_400
        EXPORTING
           parent = g_editor_container1
           wordwrap_mode = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
           wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true
        EXCEPTIONS
            others = 1.

      CALL METHOD cl_gui_cfw=&amp;gt;flush
        EXCEPTIONS
          OTHERS = 1.
*Delete Text
      CALL METHOD editor_400-&amp;gt;DELETE_TEXT
*  EXCEPTIONS
*    ERROR_CNTL_CALL_METHOD = 1
*    others                 = 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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 16:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965381#M396509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T16:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965382#M396510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the below code would refresh the long text data.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   if not g_editor_container1 is initial.
        CALL METHOD g_editor_container1-&amp;gt;FREE
          EXCEPTIONS
            CNTL_ERROR        = 1
            CNTL_SYSTEM_ERROR = 2
            others            = 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.
 
      endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 16:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965382#M396510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to refresh the textedit object in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965383#M396511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actualy it is enough to do the following, assuming you have a container to put the textedit into it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************&lt;/P&gt;&lt;P&gt;  DATA:  l_parent_container TYPE REF TO cl_gui_custom_container, &lt;/P&gt;&lt;P&gt;         l_obj_editor TYPE REF TO cl_gui_textedit, "make this a global variable&lt;/P&gt;&lt;P&gt;         l_text_table TYPE re_t_textline,&lt;/P&gt;&lt;P&gt;         l_itftext TYPE STANDARD TABLE OF tline,&lt;/P&gt;&lt;P&gt;         l_thead TYPE thead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;l_parent_container = ... "your container&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;move .... to l_thead...    "your text header to read or reread&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read text from SO10&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      id                      = l_thead-tdid "Text-ID&lt;/P&gt;&lt;P&gt;      language                = l_thead-tdspras "im_request-language?&lt;/P&gt;&lt;P&gt;      name                    = l_thead-tdname "TDIC Text-Name&lt;/P&gt;&lt;P&gt;      object                  = l_thead-tdobject "Texte: Anwendungsobjekt&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      lines                   = l_itftext&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      id                      = 1&lt;/P&gt;&lt;P&gt;      language                = 2&lt;/P&gt;&lt;P&gt;      name                    = 3&lt;/P&gt;&lt;P&gt;      not_found               = 4&lt;/P&gt;&lt;P&gt;      object                  = 5&lt;/P&gt;&lt;P&gt;      reference_check         = 6&lt;/P&gt;&lt;P&gt;      wrong_access_to_archive = 7&lt;/P&gt;&lt;P&gt;      OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;convert itf text to stream text (SAPSCRIPT_DEMO_NOTE_EDITOR)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      itf_text    = l_itftext&lt;/P&gt;&lt;P&gt;      text_stream = l_text_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF l_obj_editor IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT l_obj_editor&lt;/P&gt;&lt;P&gt;        EXPORTING parent = l_parent_container. " Abstract Container for GUI Controls&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;discard any previous changes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_obj_editor-&amp;gt;set_textmodified_status( cl_gui_textedit=&amp;gt;false ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;übertragen text in editor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD l_obj_editor-&amp;gt;set_text_as_stream&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      text            = l_text_table&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error_dp        = 1&lt;/P&gt;&lt;P&gt;      error_dp_create = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-textedit-object-in-module-pool/m-p/1965383#M396511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:03:07Z</dc:date>
    </item>
  </channel>
</rss>

