<?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 create text editor? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832768#M1471811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have once created the text editor. I can't read your code, but what I have done there is I have saved the text written in editor in table STXL and then read this text using FM READ_TEXT. I don't think you are doing it here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anurag_n on Mar 31, 2010 9:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Mar 2010 07:06:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-31T07:06:05Z</dc:date>
    <item>
      <title>How to create text editor?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832765#M1471808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirment to give two editor on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the  the fowwloing code in my prog for editor...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after running this for both Internal table I am getting same value of 2 container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me howto get first containr value in 1 TTAB&lt;/P&gt;&lt;P&gt;and 2 container value in 2 ITAb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code for your ref.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create control container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object g_editor_container&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;            container_name = 'TEXTEDITOR1'&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     add your handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    g_mycontainer = 'TEXTEDITOR1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create calls constructor, which initializes, creats and links&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TextEdit Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object g_editor&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;           parent = g_editor_container&lt;/P&gt;&lt;P&gt;           wordwrap_mode =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            cl_gui_textedit=&amp;gt;wordwrap_off&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            cl_gui_textedit=&amp;gt;WORDWRAP_AT_WINDOWBORDER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           wordwrap_position = line_length&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  to handle different containers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    g_container_linked = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    refresh g_mytable.  " to initialize table upon OK_CODE 'BACK' at PAI&lt;/P&gt;&lt;P&gt;*======================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create control container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object g_editor_container&lt;/P&gt;&lt;P&gt;        exporting&lt;/P&gt;&lt;P&gt;            container_name = 'TEXTEDITOR2'&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     add your handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    g_mycontainer = 'TEXTEDITOR2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create calls constructor, which initializes, creats and links&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TextEdit Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object g_editor&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;           parent = g_editor_container&lt;/P&gt;&lt;P&gt;           wordwrap_mode =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            cl_gui_textedit=&amp;gt;wordwrap_off&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            cl_gui_textedit=&amp;gt;WORDWRAP_AT_WINDOWBORDER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           wordwrap_position = line_length&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  to handle different containers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    g_container_linked = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    refresh g_mytable1.  " to initialize table upon OK_CODE 'BACK' at PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endmodule.                 " STATUS_1000  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_1000  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module USER_COMMAND_1000 input.&lt;/P&gt;&lt;P&gt;  case SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'EXIT'.&lt;/P&gt;&lt;P&gt;      perform exit_program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    when 'SAVE'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  retrieve table from control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      call method g_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;              importing table = g_mytable.&lt;/P&gt;&lt;P&gt;      call method cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;              others = 1.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call method g_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;              importing table = g_mytable1.&lt;/P&gt;&lt;P&gt;      call method cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;          exceptions&lt;/P&gt;&lt;P&gt;              others = 1.&lt;/P&gt;&lt;P&gt;      if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     endcase.&lt;/P&gt;&lt;P&gt;endmodule.                 " USER_COMMAND_1000  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 06:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832765#M1471808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-31T06:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create text editor?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832766#M1471809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question in Simple term&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Gurus.... I have a requirment to give two editor on the screen. I have used the the fowwloing code in my prog for editor... but after running this for both Internal table I am getting same value of 2 container. Can you please tell me howto get first containr value in 1 TTAB and 2 container value in 2 ITAb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 06:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832766#M1471809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-31T06:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create text editor?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832767#M1471810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one will read your code unless you format it to be readable. There are a lof of formatting links in top of the editor and on left side of the editor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 07:01:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832767#M1471810</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2010-03-31T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create text editor?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832768#M1471811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have once created the text editor. I can't read your code, but what I have done there is I have saved the text written in editor in table STXL and then read this text using FM READ_TEXT. I don't think you are doing it here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anurag_n on Mar 31, 2010 9:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 07:06:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832768#M1471811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-31T07:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create text editor?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832769#M1471812</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;Check the function module &lt;STRONG&gt;'TERM_CONTROL_EDIT&lt;/STRONG&gt;, since it is not formatted you code, its very diffucult to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module to achive the requirement which you are looking for. See the include &lt;STRONG&gt;LSTERM_CONTROLSO01&lt;/STRONG&gt;, for calling the custom containers for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Mar 2010 07:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-text-editor/m-p/6832769#M1471812</guid>
      <dc:creator>praveen_hannu</dc:creator>
      <dc:date>2010-03-31T07:16:36Z</dc:date>
    </item>
  </channel>
</rss>

