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: 

how do i add EXPAND ICON in separate column in an ALV report...

former_member185116
Active Participant
0 Kudos

hi all,

how do i add EXPAND ICON in separate column in an ALV report...

some thing like below....

and when i click this icon i should display some records in that column....

thanks in advance......

4 REPLIES 4

rajkumarnarasimman
Active Contributor
0 Kudos

Hi Vinay,

Add a separate field in final structure. Copy the values to that particular field. In sort, set the attribute EXPA for the particular column.


wa_sort-fieldname = 'MATNR'.

wa_sort-up = 'X'.

wa_sort-subtot = 'X'.

wa_sort-expa = 'X'. 

append wa_sort to it_sort.

Regards

Rajkumar Narasimman

0 Kudos

hi raj,

if write above code i am getting some thing like this,,(i have highlighted PO column )

but i don't want this,,

i need a EXPAND button under PO column and when i click this icon i should dispaly

all PO numbers....

0 Kudos

hi,

add a separate column in alv report of type char 4 and set in field cat that display as icon.

on user interaction if user click on that icon do what ever u want.

hope it help you

0 Kudos

hi swadhin,

as u said i have added another column(say iocn) of type char 4....

how do i set this in FIELDCAT to display as icon.....

thanks in advance.....