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

  1. Define an internal table of type LVC_T_FCAT for the field catalog.

  2. Define one or several Drag & Drop behaviors and get their handles using method get_handle of class cl_dragdrop.

  3. 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).

  4. Pass the field catalog with method set_table_for_first_display.

Result

The columns have a Drag & Drop behavior according to the handle passed.