cancel
Showing results for 
Search instead for 
Did you mean: 

Default row dislay in ALV Webdynpro ABAP

Former Member
0 Kudos

Hi ,

I have designed an alv webdynpro table with some records.

But in out put i want to dispaly max 10 rows default.

can anybody tell me the code or the solution?

Thanks

Rakshar.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

thank you....

Former Member
0 Kudos

Hi rakesh .

All thye ALV table settings are handeled by the if_salv_wd_table_settings interface you can get the reference of it and you can do setting as per your requirement

*------- Get Model--------
  DATA lo_value TYPE REF TO cl_salv_wd_config_table.
  lo_value = l_ref_interfacecontroller->get_model(  ).

*---------- ALV table settings.
  DATA: l_table_settings TYPE REF TO if_salv_wd_table_settings .
  l_table_settings ?= lo_value.

*--------Setting row count 
  l_table_settings ->if_salv_wd_table_settings~set_visible_row_count( 10 ).

Regards

Chinnaiya P

former_member199125
Active Contributor
0 Kudos

Use this

Lo_value->if_salv_wd_table_settingssetvisible_row_count( 10 ).

Regards

Srinivas

Former Member
0 Kudos

Hi,

Use the method IF_SALV_WD_TABLE_SETTINGS~SET_VISIBLE_ROW_COUNT of CL_SALV_WD_CONFIG_TABLE to set the number of rows visible.

Hope this helps!

Best Regards,

Srilatha