cancel
Showing results for 
Search instead for 
Did you mean: 

Hi experts need help regarding the component usage of alv table

Former Member
0 Kudos

Hi,

I am using the alv component usage and mapping the data . in the interface controller my question is is there any way tht i can reduce the number of rows visibile in the table ..since we are getting the data from the coponent usage i am not finding any way to reduce the no of rows in the table plz help

Thanks in advance

Regards,

Sana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sultana,

You can use the method SET_VISIBLE_ROW_COUNT of Interface IF_SALV_WD_TABLE_SETTINGS.

First instanciate the ALV.

Please refer the following code.

l_Value->IF_SALV_WD_TABLE_SETTINGS~SET_VISIBLE_ROW_COUNT( '5' ).

Thanks.

Edited by: Viji on Apr 29, 2008 7:08 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sana,

Once you have instantiated the used component, use the interface method GET_MODEL() of the interface controller of SALV_WD_TABLE component to configure the ALV according to your needs.

If the component use is ALV,

DATA: l_ref_interfacecontroller type ref to iwci_salv_wd_table.

l_ref_interfacecontroller = wd_this->wd_cpifc_alv().

DATA: l_value type ref to cl_salv_wd_config_table.

l_value = l_ref_interfacecontroller->get_model().

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

Regards,

Chitrali