Application Development 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: 

expand and collapse

Former Member
0 Kudos

hi,

i am doing module pool program in which i used REUSE_ALV_HIERSEQ_LIST_DISPLAY function for display my output.

in this output depend on icon i want to display my data in EXPAND all or in COLLAPSE mode.

means when i click on that icon it display expand format and collapse format.

what should i use in function and where.

thanks in advance.

1 ACCEPTED SOLUTION

former_member200338
Active Contributor
0 Kudos

Hi,

in your header table declartion include the following field.

exp type c.

in your layout defintion, change as follwos..

wa_layout-expand_fieldname = 'EXP'.

wa_layout-expand_all = 'X'.

pass this layout in the FM.

Rewards points if useful,

Regards,

Niyaz

7 REPLIES 7

Former Member
0 Kudos

hi priya,

Pass value to Layout for fields

expand all and collapse all

might this will solve ur problem..

regards points if usefull..

regards

satish.v

Former Member
0 Kudos

chk this program --- BCALV_TEST_HIERSEQ_LIST

former_member200338
Active Contributor
0 Kudos

Hi,

in your header table declartion include the following field.

exp type c.

in your layout defintion, change as follwos..

wa_layout-expand_fieldname = 'EXP'.

wa_layout-expand_all = 'X'.

pass this layout in the FM.

Rewards points if useful,

Regards,

Niyaz

0 Kudos

whatever u told me that i had already done but problem is that when i pass expand all then all list was displayed but i want my list dispaly on icon when i click then it should expand and collapse.

using FM that list is display in expand all fashion but i want to change as per ICON

0 Kudos

hi priya kotkar,

Ru want to play with sap..? or else the requirement.?

the list that u r displaying is alv..and u want to use menupainter then ok...

tell me exactly can u have the authorisatiosn to use menu painter for that taprticluar event we will proceed ok.

regards

satish.v

0 Kudos

hi satish,

thankx for your advise . my problem is solved

Former Member
0 Kudos

supriya,

You will find all the events in below program..

BCALV_TEST_HIERSEQ_LIST_EVENTS

Pls. reward if useful...