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

Problem with text editor

Former Member
0 Likes
956

I am displaying a network graphics screen. Now in 1 of the user-command i want to display a text editor in a popup. I used CALL FUNCTION 'TERM_CONTROL_EDIT' . But when the editor is coming it is actually not a editor just a pop-up window, and i cannot write anything in that.I dont understand where the problem is.Cant i call a text editor as a popup in default screen 1000 (used by sap to generate network graphics)

5 REPLIES 5
Read only

Former Member
0 Likes
763

CALL FUNCTION 'TERM_CONTROL_EDIT'

EXPORTING

TITEL = P_title

LANGU = 'E'

TABLES

TEXTLINES = int_text

EXCEPTIONS

USER_CANCELLED = 1

OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Edit a table of text with a very nice text editor. Just call TERM_CONTROL_EDIT and supply with the function with a table of text. Table entries are modified in the editor after clicking "ok".

Read only

0 Likes
763

I am doing the same thing but still the popup which is coming up is empty...no text editor where i could wirte

Read only

0 Likes
763

Hey Priya...

which version of SAP are you using..??

Read only

0 Likes
763

ECC6

Read only

0 Likes
763

Hi Have used the Class

use this it will help to you.

g_text_container TYPE REF TO cl_gui_custom_container,

g_text_editor TYPE REF TO cl_gui_textedit,

CREATE OBJECT g_text_container

EXPORTING

container_name = 'EMAIL_BOX'.

CREATE OBJECT g_text_editor

EXPORTING

parent = g_text_container

wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position

wordwrap_to_linebreak_mode = cl_gui_textedit=>true.

CALL METHOD g_text_editor->set_toolbar_mode

EXPORTING

toolbar_mode = 0.

CALL METHOD g_text_editor->set_statusbar_mode

EXPORTING

statusbar_mode = 0.

For this u need to craete a screen se 51.

Thanks,