Skip to Content
avatar image
Former Member

Visible rows in ALV of a CustomController

Hi everybody,

if i use the following piece of code in the CONTROLLER it works and i can control the number of the visible rows in my ALV. But if i use the code in a CUSTOMCUNTROLER (CC_MASTER) it doesn't work. What could be the problem?

DATA:lt_columns     TYPE salv_wd_t_column_ref,
     ls_column      TYPE salv_wd_s_column_ref,
     lr_column      TYPE REF TO cl_salv_wd_column,
     lr_header      TYPE REF TO cl_salv_wd_column_header.

DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage,
      l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table,
      l_value TYPE REF TO cl_salv_wd_config_table.

  l_ref_cmp_usage = wd_this->wd_cpuse_alv_master( ).

  IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
    l_ref_cmp_usage->create_component( ).

  l_ref_interfacecontroller = wd_this->wd_cpifc_alv_master( ).
  l_value = l_ref_interfacecontroller->get_model( ).

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



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 06, 2009 at 07:13 PM

    Did you add the Component usage to the properties tab of the custom controller? Where exactly is the code failing at?

    Add comment
    10|10000 characters needed characters exceeded