cancel
Showing results for 
Search instead for 
Did you mean: 

Display mode of Long text container, currently it is in change mode

Former Member
0 Kudos

Hi All,

I'm placing a long text fied on the container through calling the method.

But on the container I want the long text field as not editable . i.e I dont want to edit the long text field.

Where as now I'm able to edit the long text whichis placed on the container.

Please help me in this.

Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi all,

Here are the steps to display the long text in container

and its properites are like this

u2022 for long text to display on container as below

u2022 Used to create the element on the container

u2022 To edit the text on the container

u2022 To display or SET the text in the input text box.

  • Declaring the input field as below

DATA: line(1000) TYPE c,

long_TEXT LIKE STANDARD TABLE OF LINE,

w_long_text type line.

DATA: init,

container TYPE REF TO cl_gui_custom_container,

editor TYPE REF TO cl_gui_textedit.

CREATE OBJECT: container EXPORTING container_name = 'CONTAINER1',

editor EXPORTING parent = container,

handle.

CALL METHOD: editor->set_registered_events

EXPORTING events = event_tab.

CALL METHOD editor->set_text_as_stream

EXPORTING

text = container_text.

Prasad