Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Alv collapse selection button

former_member674908
Discoverer
0 Likes
1,440

     Hi Gurus,

     how to control collapse selection button circled below using abap codes? i want to view the same layout below but my codes doesn't works

      DATA: sla         TYPE slis_layout_alv.


     sla-colwidth_optimize = 'X'.
     sla-zebra             = 'X'.
     sla-EXPAND_ALL        = 'X'.
     sla-group_change_edit = 'X'..
     sla-detail_popup = 'X'.
     sla-get_selinfos = 'X'.

thanks,

Ryl

3 REPLIES 3
Read only

Former Member
0 Likes
951

Hi Ryl,

use user command in that you can write your code and it will return you which row and column you have selected the collapse button in parameter res_selfield something please go through ALV documentation ind read interface user_sommand.

Please let me know if you still face issue.

Thanks

rahul

Read only

0 Likes
951

Hi rahul,

    

     Do you have specific example? because im having hard time reading and understand user_command rs_selfield and the definition is so broad.

thanks,

ryl

Read only

Former Member
0 Likes
951

Hi Ryl,

You can use

FM REUSE_ALV_HIERSEQ_LIST_DISPLAY

or class CL_GUI_ALV_TREE

Thanks,

MARIMUTHU.K