<?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: Save the text from Text Editor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588932#M1082239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;GET_TEXT_AS_R3TABLE&lt;/STRONG&gt; method can be used for getting &lt;/P&gt;&lt;P&gt;the text entered into any standard internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA : container   TYPE REF TO cl_gui_docking_container,
        text_editor TYPE REF TO cl_gui_textedit,
        lt_texttab  TYPE TABLE OF char80 WITH HEADER LINE.

 CALL SCREEN 100.

 LOOP AT lt_texttab.
   WRITE / lt_texttab.
 ENDLOOP.

*---------------------------------------------------------------------*
 MODULE pb0 OUTPUT.

   SET PF-STATUS 'BASIC'.  " Only a BACK button with Apllication type 'E'.

   CHECK container IS NOT BOUND.

   CREATE OBJECT container  EXPORTING side       = cl_gui_docking_container=&amp;gt;dock_at_top
                                      extension  = '99999'.

   CREATE OBJECT text_editor EXPORTING parent            = container
                                       wordwrap_mode     = 2
                                       wordwrap_position = 80.
 ENDMODULE.                 " pb0  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
 MODULE pai INPUT.
   text_editor-&amp;gt;get_text_as_r3table( IMPORTING table = lt_texttab[] ).
   SET SCREEN 0.LEAVE SCREEN.
 ENDMODULE.                 " pai  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screen flow logic&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; process before output.
   MODULE pb0.

 process after input.
   module pai at exit-command.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here once we click back button the content of the text editor &lt;/P&gt;&lt;P&gt;is extracted into the internal table and written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 06:52:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-06T06:52:01Z</dc:date>
    <item>
      <title>Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588931#M1082238</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; I am creating a editor using  CREATE OBJECT text_editor.&lt;/P&gt;&lt;P&gt;there i am entering 2000 characters of text into the Editor.l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to save the data from the editor into the field,&lt;/P&gt;&lt;P&gt;will anybody let me know it &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;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 06:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588931#M1082238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T06:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588932#M1082239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;GET_TEXT_AS_R3TABLE&lt;/STRONG&gt; method can be used for getting &lt;/P&gt;&lt;P&gt;the text entered into any standard internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below code for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA : container   TYPE REF TO cl_gui_docking_container,
        text_editor TYPE REF TO cl_gui_textedit,
        lt_texttab  TYPE TABLE OF char80 WITH HEADER LINE.

 CALL SCREEN 100.

 LOOP AT lt_texttab.
   WRITE / lt_texttab.
 ENDLOOP.

*---------------------------------------------------------------------*
 MODULE pb0 OUTPUT.

   SET PF-STATUS 'BASIC'.  " Only a BACK button with Apllication type 'E'.

   CHECK container IS NOT BOUND.

   CREATE OBJECT container  EXPORTING side       = cl_gui_docking_container=&amp;gt;dock_at_top
                                      extension  = '99999'.

   CREATE OBJECT text_editor EXPORTING parent            = container
                                       wordwrap_mode     = 2
                                       wordwrap_position = 80.
 ENDMODULE.                 " pb0  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
 MODULE pai INPUT.
   text_editor-&amp;gt;get_text_as_r3table( IMPORTING table = lt_texttab[] ).
   SET SCREEN 0.LEAVE SCREEN.
 ENDMODULE.                 " pai  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screen flow logic&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; process before output.
   MODULE pb0.

 process after input.
   module pai at exit-command.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here once we click back button the content of the text editor &lt;/P&gt;&lt;P&gt;is extracted into the internal table and written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 06:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588932#M1082239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T06:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588933#M1082240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, till here iam able to get the data.&lt;/P&gt;&lt;P&gt;Now i need to update text from  lt_texttab[]  into my ztable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i have to update it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD text_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;   table                  = text_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD popup-&amp;gt;free( ).&lt;/P&gt;&lt;P&gt;  LOOP AT text_lines INTO wa.&lt;/P&gt;&lt;P&gt;    gv_text =    wa-line .&lt;/P&gt;&lt;P&gt;    CONCATENATE  gv_text1 gv_text INTO gv_text1 SEPARATED BY space.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  gs_edi-len = 4000.&lt;/P&gt;&lt;P&gt;  gs_edi-zstr = gv_text1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; gv_id = es_row_no-row_id.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MODIFY gt_edi FROM gs_edi  INDEX gv_id&lt;/P&gt;&lt;P&gt;                 TRANSPORTING zstr len.&lt;/P&gt;&lt;P&gt;  MODIFY zpf_text FROM TABLE gt_edi.&lt;/P&gt;&lt;P&gt;  COMMIT WORK.&lt;/P&gt;&lt;P&gt;But this is allowing only 255 characters to update.&lt;/P&gt;&lt;P&gt;will anybody let me know how to update into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: varisetty madhavi on Oct 6, 2008 12:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 07:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588933#M1082240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T07:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588934#M1082241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If 255 characters are getting updated, the problem seems to &lt;/P&gt;&lt;P&gt;exist with the length of &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; internal tab fields/variables/DB
tab field&lt;/SPAN&gt; used.Increasing their length might solve the&lt;/P&gt;&lt;P&gt;problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, why r u using such a long field?? We can use the &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wordwrap_position&lt;/STRONG&gt; parameter of its constructor to break a line at a fixed position(Say 255).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 09:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588934#M1082241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588935#M1082242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;One Clarification required from your end please&lt;/P&gt;&lt;P&gt;Its fine that we can break into lines with say 255 characters using wordwrap_position parameter of its constructor.&lt;/P&gt;&lt;P&gt;But can you say what will be the format in which it is saved in database table&lt;/P&gt;&lt;P&gt;I mean to say&lt;/P&gt;&lt;P&gt;Suppose&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;_&amp;gt;----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;_&amp;gt;----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;_&amp;gt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here there are 3 lines each breaking at say 255 characters&lt;/P&gt;&lt;P&gt;but my every line stops at _&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in what format will it be stored&lt;/P&gt;&lt;P&gt;and when i try to retrieve do i get in the same format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Vikas C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 07:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588935#M1082242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T07:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588936#M1082243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say,&lt;/P&gt;&lt;P&gt;Ur DB table has a char field of length 255 and ur int table also &lt;/P&gt;&lt;P&gt;has the same structure.&lt;/P&gt;&lt;P&gt;Then it ll be stored in the same format as u type in text-editor &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;_&amp;gt;----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;_&amp;gt;----&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------" /&gt;&lt;P&gt;_&amp;gt;----&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 12:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588936#M1082243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Save the text from Text Editor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588937#M1082244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved Myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-the-text-from-text-editor/m-p/4588937#M1082244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T09:15:37Z</dc:date>
    </item>
  </channel>
</rss>

