‎2008 Jun 11 11:20 AM
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.
‎2008 Jun 11 11:41 AM
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
‎2008 Jun 11 11:41 AM
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