<?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: Getting problem while calling method g_editor-&amp;gt;get_text_as_r3tab in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788893#M1465678</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;You should have 2 different editors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex : g_editor and g_editor_2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_editor_2-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Apr 2010 13:22:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-01T13:22:52Z</dc:date>
    <item>
      <title>Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788892#M1465677</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 of to give 2 text editor on the screen and get the input from the user and print it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using call method g_editor-&amp;gt;get_text_as_r3table to retrive the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on my save event I called  g_editor-&amp;gt;get_text_as_r3table method and pass my 1 internal table and flush it by call method cl_gui_cfw=&amp;gt;flush&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again I call call method g_editor-&amp;gt;get_text_as_r3table method and pass my 2ne Internal table and flush it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i chek my Internal table, both the Internal table having same data of my second Text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can ou help me to solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get First Text editor data on 1st internal table&lt;/P&gt;&lt;P&gt;and Second Text editor data on 2 nd internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in adv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 12:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788892#M1465677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T12:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788893#M1465678</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;You should have 2 different editors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex : g_editor and g_editor_2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_editor-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_editor_2-&amp;gt;get_text_as_r3table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 13:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788893#M1465678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T13:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788894#M1465679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi cagatay ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solved my one proble...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its working fine now but one problem still active....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when first time I entered some data and click on save it will give me the screen input on my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I made some modification on same test or I enter same new ilnes and click on save it will refresh my internal table&lt;/P&gt;&lt;P&gt;I am not getting any data on my internal table if I modify the Text editor contant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me on this I am not getting what is happaning ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your fist reply...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 13:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788894#M1465679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788895#M1465680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need also to use method &lt;EM&gt;set_text_as_r3table&lt;/EM&gt; in PBO in order data don't flush after each PAI.&lt;/P&gt;&lt;P&gt;Refer below program for the logic:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT zglxx_pro_re_textedit_oo_pmi.

DATA: r_textedit TYPE REF TO cl_gui_textedit,
      r_cont     TYPE REF TO cl_gui_custom_container.

DATA: itab TYPE TABLE OF char255.

CALL SCREEN 100.


MODULE pbo OUTPUT.
  IF r_cont IS INITIAL.
    CREATE OBJECT r_cont
      EXPORTING
        container_name              = 'CUSTOM_CONTROL'.

    CREATE OBJECT r_textedit
      EXPORTING
        wordwrap_mode          = cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position
        parent                 = r_cont.
  ENDIF.

  CALL METHOD r_textedit-&amp;gt;set_text_as_r3table    "set your internal table content in order to keep data
    EXPORTING
      table = itab.


ENDMODULE.                   


MODULE pai INPUT.
  REFRESH itab.

    CALL METHOD r_textedit-&amp;gt;get_text_as_r3table  "now set new internal table
      IMPORTING
        table = itab.

ENDMODULE.                  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 14:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788895#M1465680</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-01T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788896#M1465681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have use the CALL METHOD r_textedit-&amp;gt;set_text_as_r3table to set the data it working. it save my old data into internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i enter some new lines into same editor and click on save, I am not getting new data which i enter in editor on my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is showing old dat only which i set by CALL METHOD r_textedit-&amp;gt;set_text_as_r3table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its proble with CALL METHOD g_editor2-&amp;gt;get_text_as_r3table on first run it fetch the data properly after any event its not fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me how I will fetch the updated data which is enter on Editor.&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;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 14:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788896#M1465681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T14:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788897#M1465682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kaustubh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you are using same editor both in PAI and PBO (namely &lt;EM&gt;g_editor&lt;/EM&gt; , not &lt;EM&gt;g_editor2&lt;/EM&gt; )?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I gave you will take the input from &lt;EM&gt;itab&lt;/EM&gt; during PBO, and tabke it back there during PAI and again show it on screen in PBO (after dialog step). So, I think there is something with addressing both text editors.&lt;/P&gt;&lt;P&gt;Try to achieve this for first editor, then if it works do the same for the second one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 14:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788897#M1465682</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-04-01T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788898#M1465683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;Please find the below code I am using........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;module USER_COMMAND_1000 input.
  CASE sy-ucomm.

    WHEN 'EXIT'.
      PERFORM exit_program.

    WHEN 'SAVE'.
*   retrieve table from control
      refresh g_mytable.
      CALL METHOD g_editor-&amp;gt;get_text_as_r3table
*              EXPORTING
*                  ONLY_WHEN_MODIFIED = 1
              IMPORTING
                  table = g_mytable.

      refresh g_mytable1.
      CALL METHOD g_editor2-&amp;gt;get_text_as_r3table
              IMPORTING table = g_mytable1.

     ENDCASE.
endmodule.                 " USER_COMMAND_1000  INPUT


module STATUS_1000 output.
*   set status
  SET PF-STATUS 'ZZEDITOR'.
*   create control container
    CREATE OBJECT g_editor_container
        EXPORTING
            container_name = 'TEXTEDITOR1'
        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.
    g_mycontainer = 'TEXTEDITOR1'.

*   create calls constructor, which initializes, creats and links
*   TextEdit Control
    CREATE OBJECT g_editor
          EXPORTING
           parent = g_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.

*   to handle different containers
    g_container_linked = 1.

      CALL METHOD g_editor-&amp;gt;set_text_as_r3table
              EXPORTING
                  table = g_mytable.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Apr 1, 2010 5:12 PM - &lt;STRONG&gt;please use  tags around your creations!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788898#M1465683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem while calling method g_editor-&gt;get_text_as_r3tab</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788899#M1465684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcin and Cagatay, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solved my problem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:27:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-while-calling-method-g-editor-gt-get-text-as-r3tab/m-p/6788899#M1465684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T15:27:03Z</dc:date>
    </item>
  </channel>
</rss>

