cancel
Showing results for 
Search instead for 
Did you mean: 

WDA- ALV visible row count

Former Member
0 Kudos

Hi All,

I am facing an issue to change the WDA ALV visible rows to 25 I made following changes for 2 different components one is created by me and the other one is done by some one else(supporting by me)


   DATA :
           lr_table_settings1 TYPE REF TO if_salv_wd_table_settings.


   lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
   IF lo_cmp_usage->has_active_component( ) IS INITIAL.
     lo_cmp_usage->create_component( ).
   ENDIF.
   lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
   wd_this->lo_value = lo_interfacecontroller->get_model( ).


   LR_TABLE_SETTINGS1 ?= wd_this->lo_value.
   lr_table_settings1->set_visible_row_count('25').


above code effected rows in my own component but not in other I supporting, please advise me why this and how can i rectify.


I observed the SICF component configurations

default configurations,but not sure how to sort this.

Thanks

Rajesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

check this.

   DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .

   DATA lo_value TYPE REF TO cl_salv_wd_config_table.

   DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

   lo_cmp_usage = wd_this->wd_cpuse_alv( ).

   IF lo_cmp_usage->has_active_component( ) IS INITIAL.

     lo_cmp_usage->create_component( ).

   ENDIF.

   lo_nd_zotc_email = wd_context->get_child_node( name = 'ZOTC_EMAIL' ).

   lo_cmp_usage = wd_this->wd_cpuse_alv( ).

   lo_interfacecontroller = wd_this->wd_cpifc_alv( ).

   lo_value = lo_interfacecontroller->get_model( ).


*CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode

*EXPORTING

*value = cl_wd_table=>e_selection_mode-MULTI_NO_LEAD.

*  CALL METHOD lo_value->if_salv_wd_table_settings~set_fixed_table_layout

*    EXPORTING

*      value = abap_true.

   CALL METHOD lo_value->if_salv_wd_table_settings~set_visible_row_count

     EXPORTING

       value  = 25   .

Former Member
0 Kudos

Hi All,

Sorry, its been fixed due to my lack of knowledge this happened...has this is my first ALV development

I am not checking the Standard View option from ALV drop down.

The code is working perfectly.

I have an another requirment, i.e. how can I show nio.of records of table at right hand side and alos it should sync with filter as well...means if user applies filter the total no.of records should reflect accordingly.

Thanks

Rajesh

nishantbansal91
Active Contributor
0 Kudos

Dear rajesh,

It should work.

Can you please let me know where u have written your code.

Thanks

Nishant