cancel
Showing results for 
Search instead for 
Did you mean: 

Progress Indicator within ALV

stefan_kagelmacher
Participant
0 Kudos
224

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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