cancel
Showing results for 
Search instead for 
Did you mean: 

Set the records in ALV output table

Former Member
0 Kudos

Dear Experts,

How to set the number of records in the ALV output as 10..i.e .. When user executes WD application the output

of the ALV output table should contains only 10 records in every page.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Venkat

Use the method SET_VISIBLE_ROW_COUNT of interface IF_SALV_WD_TABLE_SETTINGS.

the following code may help you.




DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
  DATA : lr_table_settings TYPE REF TO if_salv_wd_table_settings.




  l_ref_cmp_usage =   wd_This->wd_CpUse_Appr( ).
  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.



  l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Appr( ).


  data:
    l_VALUE type ref to Cl_Salv_Wd_Config_Table.

  l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
  ).

lr_table_settings = l_value.
lr_table_settings->set_visible_row_count( 10).

Regards

Naresh

Edited by: Naresh Kumar Malik on Jun 20, 2008 11:46 AM

Answers (0)