<?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 TEXT BOX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549210#M580247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guyz,&lt;/P&gt;&lt;P&gt;i have a requirement to create Text Editor in my screen which should save the data and display when asked according to the item. the text editor should look like the one that we have in ME21N or VA01 (in Texts Tab). How do i create this and save the data in there. Please help. &lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh Kotra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 11:27:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T11:27:45Z</dc:date>
    <item>
      <title>TEXT BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549210#M580247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guyz,&lt;/P&gt;&lt;P&gt;i have a requirement to create Text Editor in my screen which should save the data and display when asked according to the item. the text editor should look like the one that we have in ME21N or VA01 (in Texts Tab). How do i create this and save the data in there. Please help. &lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh Kotra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 11:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549210#M580247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T11:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: TEXT BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549211#M580248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you have to create a text object and text id. (T-Code: SE75)&lt;/P&gt;&lt;P&gt;Then use the function modules: READ_TEXT, EDIT_TEXT and SAVE_TEXT to read from the text object, display the editor and edit the text and save the text respectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 11:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549211#M580248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T11:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: TEXT BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549212#M580249</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 program "DEMO_CUSTOM_CONTROL" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check &lt;A href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITEXTEDIT/BCCITEXTEDIT.pdf" target="test_blank"&gt;http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITEXTEDIT/BCCITEXTEDIT.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your purpose will be solved.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chetan Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549212#M580249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: TEXT BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549213#M580250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjoj,&lt;/P&gt;&lt;P&gt;thanks for the reply but the function mod. EDIT_TEXT would give me the full screen editor. But as i mentioned i need the editor to be like the one we see in ME21n or VA01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:14:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549213#M580250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: TEXT BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549214#M580251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the class CL_GUI_TEXTEDIT for that. Please refer to the program BC_CONTROLS_TUTORIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549214#M580251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: TEXT BOX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549215#M580252</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;example for text edit custom controll..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cLASS event_handler DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS: handle_f1 FOR EVENT f1 OF cl_gui_textedit&lt;/P&gt;&lt;P&gt;             IMPORTING sender,&lt;/P&gt;&lt;P&gt;             handle_f4 FOR EVENT f4 OF cl_gui_textedit&lt;/P&gt;&lt;P&gt;             IMPORTING sender.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ok_code LIKE sy-ucomm,&lt;/P&gt;&lt;P&gt;      save_ok LIKE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: init,&lt;/P&gt;&lt;P&gt;      container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;      editor    TYPE REF TO cl_gui_textedit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: event_tab TYPE cntl_simple_events,&lt;/P&gt;&lt;P&gt;      event     TYPE cntl_simple_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: line(256) TYPE c,&lt;/P&gt;&lt;P&gt;      text_tab LIKE STANDARD TABLE OF line,&lt;/P&gt;&lt;P&gt;      field LIKE line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA handle TYPE REF TO event_handler.&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;Reporting Events ***************************************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  line = 'First line in TextEditControl'.&lt;/P&gt;&lt;P&gt;  APPEND line TO text_tab.&lt;/P&gt;&lt;P&gt;  line = '----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;  APPEND line TO text_tab.&lt;/P&gt;&lt;P&gt;  line = '...'.&lt;/P&gt;&lt;P&gt;  APPEND line TO text_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dialog Modules *****************************************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'SCREEN_100'.&lt;/P&gt;&lt;P&gt;  IF init is initial.&lt;/P&gt;&lt;P&gt;    init = 'X'.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT',&lt;/P&gt;&lt;P&gt;                   editor    EXPORTING parent = container,&lt;/P&gt;&lt;P&gt;                   handle.&lt;/P&gt;&lt;P&gt;    event-eventid = cl_gui_textedit=&amp;gt;event_f1.&lt;/P&gt;&lt;P&gt;    event-appl_event = ' '.                     "system event&lt;/P&gt;&lt;P&gt;    APPEND event TO event_tab.&lt;/P&gt;&lt;P&gt;    event-eventid = cl_gui_textedit=&amp;gt;event_f4.&lt;/P&gt;&lt;P&gt;    event-appl_event = 'X'.                     "application event&lt;/P&gt;&lt;P&gt;    APPEND event TO event_tab.&lt;/P&gt;&lt;P&gt;    CALL METHOD: editor-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;                 EXPORTING events = event_tab.&lt;/P&gt;&lt;P&gt;    SET HANDLER handle-&amp;gt;handle_f1&lt;/P&gt;&lt;P&gt;                handle-&amp;gt;handle_f4 FOR editor.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL METHOD editor-&amp;gt;set_text_as_stream EXPORTING text = text_tab.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE cancel INPUT.&lt;/P&gt;&lt;P&gt;  LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;  save_ok = ok_code.&lt;/P&gt;&lt;P&gt;  CLEAR ok_code.&lt;/P&gt;&lt;P&gt;  CASE save_ok.&lt;/P&gt;&lt;P&gt;    WHEN 'INSERT'.&lt;/P&gt;&lt;P&gt;      CALL METHOD editor-&amp;gt;get_text_as_stream IMPORTING text = text_tab.&lt;/P&gt;&lt;P&gt;    WHEN 'F1'.&lt;/P&gt;&lt;P&gt;      MESSAGE i888(sabapdocu) WITH text-001.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      MESSAGE i888(sabapdocu) WITH text-002.&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_gui_cfw=&amp;gt;dispatch.      "for application events&lt;/P&gt;&lt;P&gt;      MESSAGE i888(sabapdocu) WITH text-003.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  SET SCREEN 100.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Class Implementations **********************************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS event_handler IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_f1.&lt;/P&gt;&lt;P&gt;    DATA row TYPE i.&lt;/P&gt;&lt;P&gt;    MESSAGE i888(sabapdocu) WITH text-004.&lt;/P&gt;&lt;P&gt;    CALL METHOD sender-&amp;gt;get_selection_pos&lt;/P&gt;&lt;P&gt;         IMPORTING from_line = row.&lt;/P&gt;&lt;P&gt;    CALL METHOD sender-&amp;gt;get_line_text&lt;/P&gt;&lt;P&gt;         EXPORTING line_number = row&lt;/P&gt;&lt;P&gt;         IMPORTING text = field.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code   "raise PAI for&lt;/P&gt;&lt;P&gt;         EXPORTING new_code = 'F1'.           "system events&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;  METHOD handle_f4.&lt;/P&gt;&lt;P&gt;    DATA row TYPE i.&lt;/P&gt;&lt;P&gt;    MESSAGE i888(sabapdocu) WITH text-005.&lt;/P&gt;&lt;P&gt;    CALL METHOD sender-&amp;gt;get_selection_pos&lt;/P&gt;&lt;P&gt;         IMPORTING from_line = row.&lt;/P&gt;&lt;P&gt;    CALL METHOD sender-&amp;gt;get_line_text&lt;/P&gt;&lt;P&gt;         EXPORTING line_number = row&lt;/P&gt;&lt;P&gt;         IMPORTING text = field.&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;jaideep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*reward points if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/text-box/m-p/2549215#M580252</guid>
      <dc:creator>jaideeps</dc:creator>
      <dc:date>2007-07-12T13:13:48Z</dc:date>
    </item>
  </channel>
</rss>

