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

How to use CL_SALV_WD_UIE_TEXT_VIEW in ALV

Hi,

I want to create a text field in an ALV-Table can I use CL_SALV_WD_UIE_TEXT_VIEW.

Greetings,

Marcus

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2008 at 02:20 PM

    Hi marcus,

    Yes you can, set it as the celleditor of the column.

    DATA:

    zlo_controller TYPE REF TO iwci_salv_wd_table,

    zlo_model TYPE REF TO cl_salv_wd_config_table,

    zlo_textview TYPE REF TO cl_salv_wd_uie_text_view,

    zls_column TYPE salv_wd_s_column_ref.

    CREATE OBJECT zlo_textview.

    zlo_controller = wd_this->wd_cpifc_alv( ).

    zlo_model = zlo_controller->get_model( ).

    zlt_columns = zlo_model->if_salv_wd_column_settings~get_columns( ).

    LOOP AT zlt_columns INTO zls_column.

    CASE zls_column-id.

    WHEN OTHERS.

    zls_column-r_column->set_cell_editor( zlo_textview ).

    ENDCASE.

    ENDLOOP.

    Regards,

    Jos

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2008 at 03:09 PM

    Thanks,

    but this cell is not editable.

    What can I do to make this cell editable.

    Greetings

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Use CL_SALV_WD_UIE_INPUT_FIELD instead.

      The create object method changes then to:

      CREATE OBJECT zlo_inputfield

      EXPORTING

      value_fieldname = zls_column-id.

      And of course move the create object into the loop.

      Regards,

      Jos

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2008 at 03:20 PM

    The Input Field is only one row. I need a text field like the text_edit.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Marcus,

      I checked all posibilities but you can't set a text_edit as a cell editor.

      I'm sorry, this is a disadvantage, only single lined cell editors are available at this moment, hopefully SAP will enable Multi-line cell editors soon!

      For now you'll have to work with the input field.

      Regards,

      Jos

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.