<?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 in Dialog Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407048#M1241762</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;         If you don't want to use the oops concept... then you can use the follwing FM's Create_text , &lt;STRONG&gt;Edit_text, read_text, save_text&lt;/STRONG&gt; which is simple to use. I hope this will help you solving the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         For  this you want to create one &lt;STRONG&gt;Text object and text id&lt;/STRONG&gt; in se75.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         If you use the FM &lt;STRONG&gt;EDIT_TEXT&lt;/STRONG&gt;, text editor will be opened through which you can enter the data required.Even  you can open the editor in MS-WORD ,other than line editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         By using &lt;STRONG&gt;SAVE_TEXT&lt;/STRONG&gt; you can save the data in text id.For saving you need to pass the &lt;STRONG&gt;unique Name&lt;/STRONG&gt; in the type THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         By using &lt;STRONG&gt;READ_TEXT&lt;/STRONG&gt; you can reterive the data from text id by passing the &lt;STRONG&gt;textobject, text id and unique name&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;          Just check this FM's in se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with thanks and regards,&lt;/P&gt;&lt;P&gt;Kiruba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kirubakaran.t38 on Jun 21, 2009 3:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kirubakaran.t38 on Jun 21, 2009 3:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jun 2009 10:12:13 GMT</pubDate>
    <dc:creator>I066686</dc:creator>
    <dc:date>2009-06-21T10:12:13Z</dc:date>
    <item>
      <title>Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407042#M1241756</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 want to create a text editor to capture long text in dialog programming. How can i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 13:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407042#M1241756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T13:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407043#M1241757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using : FM's&lt;/P&gt;&lt;P&gt;TXW_TEXTNOTE_EDIT&lt;/P&gt;&lt;P&gt;TERM_CONTROL_EDIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check cl_gui_textedit or Refer to the Demo SAPSCRIPT_DEMO_NOTE_EDITOR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 13:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407043#M1241757</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-07T13:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407044#M1241758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using abap objects you can achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use these two classes cl_gui_custom_container and cl_gui_textedit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some hints are as follows -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declarations req.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Text Editor&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;" Container For Text Display&lt;/P&gt;&lt;P&gt;DATA : w_txtobj         TYPE tdobname,&lt;/P&gt;&lt;P&gt;       w_container_disp TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;       w_editor_disp    TYPE REF TO cl_gui_textedit.&lt;/P&gt;&lt;P&gt;TYPES: w_line_ty(132)   TYPE  C.                            "(1)&lt;/P&gt;&lt;P&gt;DATA: t_text_tab        TYPE STANDARD TABLE OF w_line_ty,   "(1)&lt;/P&gt;&lt;P&gt;      w_line_tab_ds     TYPE w_line_ty,                     "(1)&lt;/P&gt;&lt;P&gt;      w_text_tab_ds     TYPE w_line_ty.    &lt;/P&gt;&lt;P&gt;CONSTANT: c_txtcn(9)       TYPE c VALUE 'W_GC_DISP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a  screen say 9007&lt;/P&gt;&lt;P&gt;Put a Container on it say ''W_GC_DISP' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in flow logic -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE STATUS_9007.&lt;/P&gt;&lt;P&gt;  MODULE pbo_text_editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  MODULE exit_command_9007 AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  MODULE user_command_9007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In side module pbo_text_editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT:  W_CONTAINER_DISP&lt;/P&gt;&lt;P&gt;                     EXPORTING container_name = c_txtcn,&lt;/P&gt;&lt;P&gt;                  W_EDITOR_DISP&lt;/P&gt;&lt;P&gt;                     EXPORTING parent = w_container_disp.&lt;/P&gt;&lt;P&gt;  REFRESH: t_text_tab[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Displaying stream text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD W_EDITOR_DISP-&amp;gt;SET_TEXT_AS_STREAM&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TEXT = T_TEXT_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH: T_TEXT_TAB[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In user command -&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_9007 INPUT.&lt;/P&gt;&lt;P&gt;  CALL METHOD w_editor_disp-&amp;gt;get_text_as_stream&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      text = t_text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ur user command if you want to save -&lt;/P&gt;&lt;P&gt;you may require fm 'RKD_WORD_WRAP'.&lt;/P&gt;&lt;P&gt;Or export for editor object the following two -&lt;/P&gt;&lt;P&gt;wordwrap_mode = cl_gui_textedit=&amp;gt;wordwrap_at_windowborder&lt;/P&gt;&lt;P&gt;wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 13:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407044#M1241758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T13:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407045#M1241759</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;Yes, you can add using TEXT AREA control. Insert a custom control area in the screen and create a object of the text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code for PBO and PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEDITOR&lt;/STRONG&gt; is the custom contorl area name on screen:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE PBO OUTPUT.
  IF EDITOR IS INITIAL.
 
*   set status
SET pf-status '1111'.
 
*   create control container
    CREATE OBJECT TextEdit_Custom_Container
        EXPORTING
            CONTAINER_NAME = 'TEDITOR'
        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.
    mycontainer = 'TEDITOR'.
 
*   create calls constructor, which initializes, creats and links
*   TextEdit Control
    create object editor
          exporting
           parent = TextEdit_Custom_Container
           WORDWRAP_MODE =
*               cl_gui_textedit=&amp;gt;wordwrap_off
              cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
*              cl_gui_textedit=&amp;gt;WORDWRAP_AT_WINDOWBORDER
           WORDWRAP_POSITION = line_length
           wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.
 
*   to handle different containers
    container_linked = 1.
 
    refresh mytable.
 
  ENDIF.
 
ENDMODULE.                 " PBO  OUTPUT
 
 
MODULE pai INPUT.
case ok_code.
 
WHEN 'SAVE'.
*   retrieve table from control
clear: txt.
      call method editor-&amp;gt;get_text_as_r3table
              importing table = mytable.
 
      loop at mytable into wa.
 
         concatenate txt wa into txt
         separated by '|'.
      endloop.
 
      shift txt left.
      length = strlen( txt ).
 
      ztext-CLUSTR = length.
      ztext-text   = txt.
 
      modify ztext.
 
      clear: ztext.
      refresh: mytable.
        call method editor-&amp;gt;set_text_as_r3table
              exporting table = mytable.
      Message s000(zwa).
 
when 'DISP'.
  
      select single * from
      ztext
      where fund = ztext-fund.
 
      SPLIT ztext-text AT '|' INTO TABLE mytable.
 
      call method editor-&amp;gt;set_text_as_r3table
             exporting table = mytable.
 
endcase.
 
clear: ok_code.
 
ENDMODULE.                 " pai  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can refer:-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2031714"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 03:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407045#M1241759</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-04-09T03:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407046#M1241760</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;Simplest would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DATA:  objtxt like SOLISTI1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;editor-call for objtxt.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope his helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2009 04:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407046#M1241760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-09T04:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407047#M1241761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAPPIEN,&lt;/P&gt;&lt;P&gt;I think the experts have given you the solutions how to code for text editor.But that require OOPS concept.&lt;/P&gt;&lt;P&gt;If you are not so good in that then you can opt for a different way to call function module i.e. EDIT_TEXT.&lt;/P&gt;&lt;P&gt;It will open you a standard  EDITOR  which will take care of every thing.&lt;/P&gt;&lt;P&gt;Because in any way you have to save the text aganist a Text object in any ways . So you can go for this Function Module .Just go through Function Module Documentation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 06:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407047#M1241761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T06:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Text Editor in Dialog Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407048#M1241762</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;         If you don't want to use the oops concept... then you can use the follwing FM's Create_text , &lt;STRONG&gt;Edit_text, read_text, save_text&lt;/STRONG&gt; which is simple to use. I hope this will help you solving the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         For  this you want to create one &lt;STRONG&gt;Text object and text id&lt;/STRONG&gt; in se75.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         If you use the FM &lt;STRONG&gt;EDIT_TEXT&lt;/STRONG&gt;, text editor will be opened through which you can enter the data required.Even  you can open the editor in MS-WORD ,other than line editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         By using &lt;STRONG&gt;SAVE_TEXT&lt;/STRONG&gt; you can save the data in text id.For saving you need to pass the &lt;STRONG&gt;unique Name&lt;/STRONG&gt; in the type THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         By using &lt;STRONG&gt;READ_TEXT&lt;/STRONG&gt; you can reterive the data from text id by passing the &lt;STRONG&gt;textobject, text id and unique name&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;          Just check this FM's in se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with thanks and regards,&lt;/P&gt;&lt;P&gt;Kiruba.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kirubakaran.t38 on Jun 21, 2009 3:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kirubakaran.t38 on Jun 21, 2009 3:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2009 10:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-editor-in-dialog-programming/m-p/5407048#M1241762</guid>
      <dc:creator>I066686</dc:creator>
      <dc:date>2009-06-21T10:12:13Z</dc:date>
    </item>
  </channel>
</rss>

