Skip to Content
author's profile photo Former Member
Former Member

How to Read Lines from Object Editor

Hi,

I have created an Object Editor in a Module Pool program.

Code for the Object Editor is

DATA: ok_code LIKE sy-ucomm,

container TYPE REF TO cl_gui_custom_container,

editor TYPE REF TO cl_gui_textedit,

t_thead LIKE thead, "OCCURS 0 WITH HEADER LINE,

line_length TYPE i.

DATA: t_tline LIKE tline OCCURS 0 WITH HEADER LINE.

DATA : BEGIN OF t_line OCCURS 0,

line(256) TYPE c,

END OF t_line.

DATA line TYPE i.

CREATE OBJECT container

EXPORTING

container_name = 'MYCONTAINER'.

CREATE OBJECT editor

EXPORTING

parent = container

wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position

wordwrap_position = line_length

wordwrap_to_linebreak_mode = cl_gui_textedit=>true.

What method should i use to read the data entered in the editor.

Thank you,

Ramu N.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 03, 2006 at 12:26 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.