Process documentationD&D Behavior for Special Columns Locate this document in the navigation structure

 

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.

    Note Note

    You can also subsequently pass the field catalog with the Drag & Drop behavior using method set_frontend_fieldcatalog.

    End of the note.

Result

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

Caution Caution

If you want to check the Drag & Drop behavior defined on the screen, you must have at least one drag source and one drop target that have the same flavor.

End of the caution.