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

Regarding Text-Editor in Module pool programming

Former Member
0 Likes
274

I want to display the text which is in my internal table in the text-editor and it should be in display mode only, how to achieve it?

Please reply its urgent.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
251

Hi,

***to put some text in the text editor.
 
  APPEND 'Type something place ur cursor outside the editor and hit enter' TO lt_texttab.
 
  CALL METHOD text_editor->set_text_as_r3table
    EXPORTING
      table           = lt_texttab       " Contents of this table is displayed in text editor
    EXCEPTIONS
      error_dp        = 1
      error_dp_create = 2
      OTHERS          = 3.
  IF sy-subrc  0.
  ENDIF.

***For display mode.

text_editor->set_readonly_mode( ).

Cheers,

Jose

1 REPLY 1
Read only

Former Member
0 Likes
252

Hi,

***to put some text in the text editor.
 
  APPEND 'Type something place ur cursor outside the editor and hit enter' TO lt_texttab.
 
  CALL METHOD text_editor->set_text_as_r3table
    EXPORTING
      table           = lt_texttab       " Contents of this table is displayed in text editor
    EXCEPTIONS
      error_dp        = 1
      error_dp_create = 2
      OTHERS          = 3.
  IF sy-subrc  0.
  ENDIF.

***For display mode.

text_editor->set_readonly_mode( ).

Cheers,

Jose