Start of Content Area

Syntax documentationmodify  Locate the document in its SAP Library structure

Use this method to change an existing flavor.

CALL METHOD dragdrop->modify
     EXPORTING  flavor         = flavor
                dragsrc        = dragsrc
                droptarget     = droptarget
                effect         = effect
                effect_in_ctrl = effect_in_ctrl
     EXCEPTIONS not_found   = 1
                obj_invalid = 2.

Parameters

Description

flavor

Name of the flavor

dragsrc

' X ': The description is a drag source

droptarget

' X ': The description is a drop target

effect

Drop effect of the description between different custom controls. The following effects are supported:

dragdrop->copy : Appearance of the mouse when using drag and drop to copy.

dragdrop->move : Appearance of the mouse when using drag and drop to move.

dragdrop->none : Drag and drop is not possible.

effect_in_ctrl

Drop effect of the description in the same custom control. The following effects are supported:

dragdrop->copy : Appearance of the mouse when using drag and drop to copy.

dragdrop->move : Appearance of the mouse when using drag and drop to move.

dragdrop->none : Drag and drop is not possible.

dragdrop->use_default_effect : Uses the same effect specified in the effect parameter.

Exceptions

Description

not_found

The specified flavor does not exist

obj_invalid

The object has already been destroyed using the method destroy.

Note

If you use the copy and move effects when you define the flavor, the system uses the move effect when the user drags an object normally, and the copy effect when the user presses and holds the CTRL key while dragging.