cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase the ALV visible row count

0 Kudos

Hi Experts,

My standard ALV display is displaying only 10 rows.

My requirements is to display 20 rows.

Please advise.

Regards,

Chitrasen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use this :

l_value->if_salv_wd_table_settings~set_visible_row_count( '20 ).

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.

DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .

lo_interfacecontroller = wd_this->wd_cpifc_alv( ).

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( '20 ).

Answers (2)

Answers (2)

Former Member
0 Kudos

hi ,

u can set the row count to any number , here I am setting it to 5 using the method set_visible_row_count



1 Change the visible row count to u20185u2019

  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.
  DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
  lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).

    DATA lo_value TYPE REF TO cl_salv_wd_config_table.
    lo_value = lo_interfacecontroller->get_model(
    ).
    lo_value->if_salv_wd_table_settings~set_visible_row_count( '5' ).

u can also go thru this useful links for CONFIGUIRING ALV :

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a091...

[original link is broken]

Configuring ALV

http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1190424a-0801-0010-84b5-ef03fd2d3...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd...

I hope it shud solve ur query.

regards,

amit

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

you can do it other way also...

go to the administrative of the web dynpro Application.

Step: In SE80 ,Double on the name of you Web Dynpro Application .

Step2:Select Web Dynpro Application Menu on the Menu Bar.

Step3:Select Test-> Execute in Administrative Mode from the Menu bar selected.

So you applications opens in adminstartive mode .

click on SETTINGS of the ALV table.

in the DISPLAY tab you can set the no.of visble rows.

give this view some name.

if you want to transport it to others systems Save it with the Transport Request.

since you have done this in administartive mode its same for all the users.

Regards,

Priya