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 - Multiple selection by mouse drag

Former Member
0 Likes
1,259

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
Read only

Former Member
0 Likes
815

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
815

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'.

Read only

Former Member
0 Likes
816

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

Read only

Former Member
0 Likes
815

check the standard report RSDEMO_DRAG_DROP_EDIT_TREE

Read only

Former Member
0 Likes
815

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'