<?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: saving data from text edit control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-text-edit-control/m-p/3456551#M830488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1) To start off ;&lt;/P&gt;&lt;P&gt;Place a Custom conatiner on screen set it's name to TEXTEDITOR&lt;/P&gt;&lt;P&gt;Created a reference to the custom Container &amp;amp; create it's object&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA editor_container TYPE REF TO cl_gui_custom_container.

create object editor_container
exporting
      container_name = 'TEXTEDITOR'
exceptions
     cntl_error = 1
     cntl_system_error = 2
     create_error = 3
      lifetime_error = 4
      lifetime_dynpro_dynpro_link = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Created a reference to your Text Edit Control and create it's object :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA text_editor TYPE REF TO cl_gui_textedit.
create object text_editor
exporting
    parent = editor_container
    wordwrap_mode =  cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
    wordwrap_position = line_length
    wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3)Hide toolbar and statusbar&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method text_editor -&amp;gt;set_toolbar_mode
exporting
     toolbar_mode = cl_gui_textedit=&amp;gt;false.
 call method text_editor-&amp;gt;set_statusbar_mode
 exporting
        statusbar_mode = cl_gui_textedit=&amp;gt;false.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Answering your question &lt;U&gt;Text Edit Control --&amp;gt; Database Table&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method text_editor-&amp;gt;get_text_as_stream
exporting
    only_when_modified = cl_gui_textedit=&amp;gt;false
importing
     text               = wrk_text
exceptions
     others             = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Save wrk_text to Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) &lt;U&gt;Text Edit Control &amp;lt;-- Database Table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The reverse process of Step 4&lt;/P&gt;&lt;P&gt;With method :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD text_editor-&amp;gt;set_text_as_stream
......
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope this answers your Query.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Remi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 11:19:40 GMT</pubDate>
    <dc:creator>RemiKaimal</dc:creator>
    <dc:date>2008-02-25T11:19:40Z</dc:date>
    <item>
      <title>saving data from text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-text-edit-control/m-p/3456550#M830487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i save to and get the data from a table (having a text field of 255 char in size) , from using a text edit control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Edit Control --&amp;gt; Database Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text Edit Control &amp;lt;-- Database Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 09:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-text-edit-control/m-p/3456550#M830487</guid>
      <dc:creator>naveenvishal</dc:creator>
      <dc:date>2008-02-25T09:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: saving data from text edit control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-text-edit-control/m-p/3456551#M830488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1) To start off ;&lt;/P&gt;&lt;P&gt;Place a Custom conatiner on screen set it's name to TEXTEDITOR&lt;/P&gt;&lt;P&gt;Created a reference to the custom Container &amp;amp; create it's object&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA editor_container TYPE REF TO cl_gui_custom_container.

create object editor_container
exporting
      container_name = 'TEXTEDITOR'
exceptions
     cntl_error = 1
     cntl_system_error = 2
     create_error = 3
      lifetime_error = 4
      lifetime_dynpro_dynpro_link = 5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Created a reference to your Text Edit Control and create it's object :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA text_editor TYPE REF TO cl_gui_textedit.
create object text_editor
exporting
    parent = editor_container
    wordwrap_mode =  cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
    wordwrap_position = line_length
    wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3)Hide toolbar and statusbar&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method text_editor -&amp;gt;set_toolbar_mode
exporting
     toolbar_mode = cl_gui_textedit=&amp;gt;false.
 call method text_editor-&amp;gt;set_statusbar_mode
 exporting
        statusbar_mode = cl_gui_textedit=&amp;gt;false.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Answering your question &lt;U&gt;Text Edit Control --&amp;gt; Database Table&lt;/U&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method text_editor-&amp;gt;get_text_as_stream
exporting
    only_when_modified = cl_gui_textedit=&amp;gt;false
importing
     text               = wrk_text
exceptions
     others             = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Save wrk_text to Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) &lt;U&gt;Text Edit Control &amp;lt;-- Database Table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;The reverse process of Step 4&lt;/P&gt;&lt;P&gt;With method :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD text_editor-&amp;gt;set_text_as_stream
......
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope this answers your Query.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Remi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 11:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-text-edit-control/m-p/3456551#M830488</guid>
      <dc:creator>RemiKaimal</dc:creator>
      <dc:date>2008-02-25T11:19:40Z</dc:date>
    </item>
  </channel>
</rss>

