<?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 delete texteditor value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107754#M1361628</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>Thu, 16 Jun 2011 07:07:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-16T07:07:51Z</dc:date>
    <item>
      <title>how to delete texteditor value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107749#M1361623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have requirement to capture employee remarks on text editor.when i enter other employee id it is not deleting previous emplyee &lt;/P&gt;&lt;P&gt;remarks.i want delete previous remarks.how can i achieve this one?&lt;/P&gt;&lt;P&gt;i have create texteditor using below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF p_cust_cont IS INITIAL.&lt;/P&gt;&lt;P&gt;CREATE OBJECT p_cust_cont&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;container_name = p_cont_textedit&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;cntl_error = 1&lt;/P&gt;&lt;P&gt;cntl_system_error = 2&lt;/P&gt;&lt;P&gt;create_error = 3&lt;/P&gt;&lt;P&gt;lifetime_error = 4&lt;/P&gt;&lt;P&gt;lifetime_dynpro_dynpro_link = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&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;Create obejct for the TextEditor control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CREATE OBJECT p_text_edit&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;wordwrap_mode =&lt;/P&gt;&lt;P&gt;cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;P&gt;wordwrap_position = c_line_length&lt;/P&gt;&lt;P&gt;wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true&lt;/P&gt;&lt;P&gt;parent = p_cust_cont&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;error_cntl_create = 1&lt;/P&gt;&lt;P&gt;error_cntl_init = 2&lt;/P&gt;&lt;P&gt;error_cntl_link = 3&lt;/P&gt;&lt;P&gt;error_dp_create = 4&lt;/P&gt;&lt;P&gt;gui_type_not_supported = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly need your help.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks....&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 09:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107749#M1361623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete texteditor value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107750#M1361624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are creating text editor correcly and providing user input&lt;/P&gt;&lt;P&gt;but the thing is that against ecah employee u need to create a text name to save these editor commnets by using save_text and while retreiving use read_text for getting the comments against particular employee.&lt;/P&gt;&lt;P&gt;Check out  dis link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/smita.gupta/blog/2009/03/17/an-insight-of-text-objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 12:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107750#M1361624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete texteditor value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107751#M1361625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PBO you need to use method &lt;STRONG&gt;set_text_as_r3table&lt;/STRONG&gt; , while in PAI &lt;STRONG&gt;get_text_as_r3table&lt;/STRONG&gt; only if EE hasn't changed. If entry changes then you simply clear the content and PBO will show empty text.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_textedit TYPE REF TO cl_gui_textedit,
      r_cont     TYPE REF TO cl_gui_custom_container.

DATA: itab TYPE TABLE OF char255.

DATA: eename(10) TYPE c,
      prev_eename(10) TYPE c.

CALL SCREEN 100.

MODULE pbo OUTPUT.
  IF r_cont IS INITIAL.
    CREATE OBJECT r_cont
      EXPORTING
        container_name              = 'CUSTOM_CONTROL'.

    CREATE OBJECT r_textedit
      EXPORTING
        wordwrap_mode          = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
        parent                 = r_cont.
  ENDIF.

  CALL METHOD r_textedit-&amp;gt;set_text_as_r3table
    EXPORTING
      table = itab.


ENDMODULE.                    "pbo OUTPUT

MODULE pai INPUT.
  REFRESH itab.

  IF prev_eename is not INITIAL and
     eename = prev_eename.

    CALL METHOD r_textedit-&amp;gt;get_text_as_r3table
      IMPORTING
        table = itab.
  ENDIF.

  prev_eename = eename.
ENDMODULE.                    "pai INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 13:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107751#M1361625</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-27T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete texteditor value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107752#M1361626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood your question a little bit differently (it's important to be very accurate about the context).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood that you display the screen with a given text, leave the screen (not the program), enter again the same screen but with a new text, and it displays the previous text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must free the control in the PAI when you leave the screen (both call control "free" method, and free the object in memory).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 14:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107752#M1361626</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-27T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete texteditor value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107753#M1361627</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;When ever you reach a new employee. you should refresh the content in the table you use for displaying and update the new content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'READ_TEXT'
    EXPORTING
      CLIENT                  = SY-MANDT
      ID                      = WA_HEADER_OP-TDID
      LANGUAGE                = WA_HEADER_OP-TDSPRAS
      NAME                    = WA_HEADER_OP-TDNAME
      OBJECT                  = WA_HEADER_OP-TDOBJECT
    TABLES
      LINES                   = I_LINES_OP
    EXCEPTIONS
      ID                      = 1
      LANGUAGE                = 2
      NAME                    = 3
      NOT_FOUND               = 4
      OBJECT                  = 5
      REFERENCE_CHECK         = 6
      WRONG_ACCESS_TO_ARCHIVE = 7
      OTHERS                  = 8.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
  ENDIF.

  IF SY-UCOMM EQ 'PRV'
  OR SY-UCOMM EQ 'NXT'.
    REFRESH G_MYTABLE.
  ENDIF.

  IF G_MYTABLE[] IS INITIAL.
    LOOP AT I_LINES_OP.
      CLEAR  WA_MYTABLE.
      WA_MYTABLE = I_LINES_OP-TDLINE.
      APPEND WA_MYTABLE TO G_MYTABLE.
    ENDLOOP.


    CALL METHOD G_EDITOR-&amp;gt;SET_TEXT_AS_R3TABLE
      EXPORTING
        TABLE = G_MYTABLE.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 04:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107753#M1361627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-28T04:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete texteditor value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107754#M1361628</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>Thu, 16 Jun 2011 07:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-texteditor-value/m-p/6107754#M1361628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T07:07:51Z</dc:date>
    </item>
  </channel>
</rss>

