Skip to Content

Progress Indicator within ALV

Hi all,

I have another small problem. In my wd application ther is an ALV output. Within this list I want to display a progress indicator. I tried this:


  DATA: lr_cellvar TYPE REF TO cl_salv_wd_cv_standard,
        l_cellvar TYPE string,
        lr_progress_indicator TYPE REF TO cl_salv_wd_uie_progr_indicator,
        lt_columns                TYPE salv_wd_t_column_ref,
        ls_column                 TYPE salv_wd_s_column_ref,
        lr_column                 TYPE REF TO cl_salv_wd_column.

  LOOP AT lt_columns INTO ls_column.
    lr_column = ls_column-r_column.
    CASE ls_column-id.
      WHEN 'PROGRESS_STATUS'.

        CREATE OBJECT lr_cellvar.
        l_cellvar = 'CV_SB'.
        lr_cellvar->set_key( l_cellvar ).

        CREATE OBJECT lr_progress_indicator.
        lr_progress_indicator->set_percent_value_fieldname( 'PROGRESS_STATUS' ).
        lr_progress_indicator->set_display_value_fieldname( 'PROGRESS_DISP_VALUE' ).
        lr_progress_indicator->set_tooltip( 'Fortschrittsanzeige Status des Vorganges' ).
        lr_progress_indicator->set_bar_color( '00' ).

        lr_cellvar->set_editor( lr_progress_indicator ).

        lr_column->add_cell_variant( lr_cellvar ).
        lr_column->set_width( '75' ).
        lr_column->set_position( '-1' ).
        lr_column->set_selected_cell_variant( l_cellvar ).
    ENDCASE.

  ENDLOOP.

But only the first row in ALV is shown as well as progress indicator.

Any Ideas?

Many Thx and best regards

Stefan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 05:12 PM

    Stefan,

    How many elements do you have in your Node? If you have only one element, even if you alv table has 10 visible lines, it'll display only the first one with the progress indicator.

    Regards,

    Andre

    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.