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

An input/output box with a scrollable property

Hi,

Is it possible to have a Big scrollable input-output box. It should be like a text area

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 23, 2007 at 06:47 AM

    Look at class cl_gui_textedit

    (1) Screen

    In dynpro create a custom container, call it 'TEXTBOX' or so

    (2) In program top, declare

    DATA: container TYPE REF TO cl_gui_custom_container,
          editor TYPE REF TO cl_gui_textedit.

    (3) in PBO

    if editor is initial.

    CREATE OBJECT: container EXPORTING container_name = 'TEXTBOX',

    editor EXPORTING parent = container

    wordwrap_mode = 2

    wordwrap_position = 80

    wordwrap_to_linebreak_mode = 1.

    CALL METHOD editor->set_text_as_r3table

    EXPORTING table = texttab.

    ENDIF.

    (4) in PAI

    read the text

    IF NOT init IS INITIAL.
          CALL METHOD editor->get_text_as_r3table
            IMPORTING table = texttab.

    exit and release

          CALL METHOD editor->free.
          CALL METHOD container->free.
          CLEAR: editor, container.
    ENDIF.

    Look at SAP" target="_blank">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCITEXTEDIT/BCCITEXTEDIT.pdf">SAP Textedit

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 08:03 AM
    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.