cancel
Showing results for 
Search instead for 
Did you mean: 

Scrollbar in ALV table

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member205703
Participant
0 Kudos

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

Former Member
0 Kudos

Hi Amol,

It gives you the buttons to scroll. I wanted scroll bar.

I have solved it by myself.

Thank you for your reply.

Suresh

Former Member
0 Kudos

Suresh, can u post how you exactly got the sroll bar ?

Did u use a scroll container with Horizontal scrollbar ?