cancel
Showing results for 
Search instead for 
Did you mean: 

Fixed Rows in Alv Table

Former Member
0 Kudos

Hello all, i want to fixed first 3 rows in my ALV in web dynpro, and other rows must be scrollable. How can I do this?
Can somebody help ,pls?


thanks.

Accepted Solutions (1)

Accepted Solutions (1)

harsha_jalakam
Active Contributor
0 Kudos

Hi Nikita,

please use if_salv_wd_table_settings~set_visible_row_count( 3 ), to set the first 3 rows visible and the rest scrollable.

Regards,

Harsha

harsha_jalakam
Active Contributor
0 Kudos

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .

  lo_cmp_usage =   wd_this->wd_cpuse_alv( ). //ALV Name

  IF lo_cmp_usage->has_active_component( ) IS INITIAL.

    lo_cmp_usage->create_component( ).

  ENDIF.

lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).//ALV Name

  DATA l_value TYPE REF TO cl_salv_wd_config_table.

  l_value = lo_interfacecontroller->get_model(

  ).

l_value->if_salv_wd_table_settings~set_visible_row_count( '3' ).

Answers (0)