D&D Behavior for Special Columns
Use
You can use this process to define a Drag & Drop behavior for special columns of the grid control. Each column can have its own Drag & Drop behavior.
Process
-
Define an internal table of type LVC_T_FCAT for the field catalog.
-
Define one or several Drag & Drop behaviors and get their handles using method get_handle of class cl_dragdrop.
-
Create the field catalog manually or semi-automatically. Assign the corresponding handle to field dragdropid for selected columns (you can use field fieldname to refer to the desired column).
-
Pass the field catalog with method set_table_for_first_display.
Result
The columns have a Drag & Drop behavior according to the handle passed.