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: 

ALV - Multiple selection by mouse drag

Former Member
0 Kudos

Hi Experts,

I have a requirement.

Say, There is a list of records in ALV.

Now, I need to use mouse drag to highlight/ select records.

Is it possible? If yes, could you please share some materials/ codes to do that?

Thanks.

Tee

1 ACCEPTED SOLUTION

former_member186750
Contributor
0 Kudos

Hi Tee,

There are currently several different demo programs available in SAP. In SE38 enter BCALV_DND* and press F4. This will give you a list of programs and is a good a place as any to start researching Drag N Drop.

Cheers,

Neil.

Edited by: Neil Gardiner on Jun 15, 2009 1:42 PM

4 REPLIES 4

Former Member
0 Kudos

Hi,

Yes, it is possible to select multiple records in ALV grip.. Use OO-ABAP to achieve this.. Use the method 'set_table_for_first_display' ... Set the 'SEL_MODE' to 'A'.

former_member186750
Contributor
0 Kudos

Hi Tee,

There are currently several different demo programs available in SAP. In SE38 enter BCALV_DND* and press F4. This will give you a list of programs and is a good a place as any to start researching Drag N Drop.

Cheers,

Neil.

Edited by: Neil Gardiner on Jun 15, 2009 1:42 PM

Former Member
0 Kudos

check the standard report RSDEMO_DRAG_DROP_EDIT_TREE

Former Member
0 Kudos

hi,

declare a filed in final internal table as mwntioned below.

sel TYPE CHAR1, "stores which row user has selected

DATA: gv_layout TYPE slis_layout_alv.

FORM build_layout .

*set field name to store row selection

gv_layout-box_fieldname = 'SEL'.

ENDFORM.

Pass this gv_layout to is_layout in FM 'REUSE_ALV_GRID_DISPLAY'