Skip to Content
avatar image
Former Member

Scrollbar in ALV table

Hi All,

Is anybody using Scroll bars in ALV table? If yes please help me out.

Iam not able to set scroll bar.

Thank You,

Suresh.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 18, 2007 at 06:45 AM

    Hi Suresh ,

    In the INIT method of the view where you are using the ALV do the following coding.

    data: l_ref_cmp_usage type ref to if_wd_component_usage.
    data: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
    data: l_VALUE type ref to Cl_Salv_Wd_Config_Table.
    
    *initiate the used component
    
    l_ref_cmp_usage =   wd_This->wd_CpUse_Alv( ).
    if l_ref_cmp_usage->has_active_component( ) is initial.
      l_ref_cmp_usage->create_component( ).
    endif.
    
    l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Alv( ).
    l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).
    
    *Set visible col count
    
     l_value->if_salv_wd_table_settings~SET_SCROLLABLE_COL_COUNT( EXPORTING value = 4 ).
    

    So in method SET_SCROLLABLE_COL_COUNT give the number of columns visible for rest you will have to scroll.

    Regards

    Amol

    Add comment
    10|10000 characters needed characters exceeded