Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Text editor display

Former Member
0 Likes
566

hi...i have retrieved data frm ztable and put inside internal table ..i need to display in text editor(module pool)..can anyone help me ..

1 ACCEPTED SOLUTION
Read only

praveen_reddy2
Active Participant
0 Likes
532

Hi,

create a custom container in module pool .

use the CL_GUI_CUSTOM_CONTAINER According to this u will get it.

Regards,

Praveen

4 REPLIES 4
Read only

praveen_reddy2
Active Participant
0 Likes
533

Hi,

create a custom container in module pool .

use the CL_GUI_CUSTOM_CONTAINER According to this u will get it.

Regards,

Praveen

Read only

0 Likes
532

yes..i have created as u said only..i need to display that internal table inside text editor..

Read only

0 Likes
532

hi,

You can call a sub screen from the screen you are trying to place the text editor.

In that sub screen , you can use the container and perform the operation.

With regards,

Syed Ibrahim

Read only

0 Likes
532

OK.

Then after creating the container, assign it to a CL_GUI_TEXTEDIT object and use the SET_TEXT_AS_R3TABLE method to fill it with your internal table data.


CREATE OBJECT g_d_custom_container_0100
    EXPORTING
*        PARENT                      =
      container_name              = 'G_D_CONTAINER_0100'
*        STYLE                       =
*        LIFETIME                    = lifetime_default
*        REPID                       =
*        DYNNR                       =
*        NO_AUTODEF_PROGID_DYNNR     =
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS                      = 6.

    CREATE OBJECT g_d_editor_0100
    EXPORTING
*       MAX_NUMBER_CHARS       =
      style                  = 0
*       WORDWRAP_MODE          = WORDWRAP_AT_WINDOWBORDER
*       WORDWRAP_POSITION      = -1
*       WORDWRAP_TO_LINEBREAK_MODE = FALSE
*       FILEDROP_MODE          = DROPFILE_EVENT_OFF
      parent                 = g_d_custom_container_0100
*       LIFETIME               =
*       NAME                   =
    EXCEPTIONS
      error_cntl_create      = 1
      error_cntl_init        = 2
      error_cntl_link        = 3
      error_dp_create        = 4
      gui_type_not_supported = 5
      OTHERS                 = 6.


      CALL METHOD g_d_editor_0100->set_text_as_r3table
        EXPORTING
          table           = gt_texto
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.