2009 Jun 15 3:28 AM
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
2009 Jun 15 4:42 AM
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
2009 Jun 15 4:37 AM
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'.
2009 Jun 15 4:42 AM
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
2009 Jun 15 7:48 AM
2009 Jun 15 7:55 AM
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'
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |