creating text area

Posted on 2005-05-06
Last Modified: 2013-12-08
Hi Guys,
        How to create a large text area in dialog screens. Not that of the size of a text box. A larger one just as that of the size of this question body one.

Thanx and Regards,
Ravi Kumar.
Question by:Ravikumarv
    LVL 10

    Expert Comment

    You have to use the text area GUI  control.

    Create an area on your Screen and fill it with the text area control ...

    LVL 10

    Accepted Solution

    Once you have created the container on the screen - in this case it is called SC_CONT_9000
    you then create the control

    * create container
      if gv_custom_container is initial.
        create object gv_custom_container
         exporting container_name = 'SC_CONT_9000'.

    * create text control
        create object gv_text_editor
                parent = gv_custom_container
                wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
                wordwrap_to_linebreak_mode = cl_gui_textedit=>false
                error_cntl_create      = 1
                error_cntl_init        = 2
                error_cntl_link        = 3
                error_dp_create        = 4
                gui_type_not_supported = 5.

        call method gv_text_editor->set_toolbar_mode
                  toolbar_mode = gv_text_editor->true
                  error_cntl_call_method = 1
                  invalid_parameter      = 2
                  others                 = 3.

        call method gv_text_editor->set_statusbar_mode
                  statusbar_mode = gv_text_editor->false
                  error_cntl_call_method = 1
                  invalid_parameter      = 2
                  others                 = 3.

        call method gv_text_editor->set_readonly_mode
                      readonly_mode = gv_text_editor->true
                      error_cntl_call_method = 1
                      invalid_parameter      = 2
                      others                 = 3.

    ** you then need to get your text ...

    ** then convert it to a stream
    * convert itf text to stream text
      call function 'CONVERT_ITF_TO_STREAM_TEXT'
                itf_text    = perm_tlinetab
                text_stream = lt_text_table.

    * add it to the control
      call method gv_text_editor->set_text_as_stream
                text = lt_text_table
                error_dp        = 1
                error_dp_create = 2
                others          = 3.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    Scheduled Reports in BOE XI R2 4 362
    configuration management 2 95
    Best extranet for customers 1 97
    Removing or cleaning up OMS agent 6 129
    Hello All, In previous article we used Hortonworks sandbox to work with Hadoop. Now, lets think to create own single node Hadoop on Linux. Here we Install and Configure Apache Hadoop on UI based Oracle Linux. I assume, you have VMware installe…
    "Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now