Creating Drag&Relate
Supertypes
In some rare cases, the same data element is used to identify more than one business object type.
As it is no longer possible to uniquely reference a business object type from the data element; these generic data elements need to be assigned to a Drag&Relate supertype, which you must create separately. The Drag&Relate supertype is a technical generalization of business objects that are semantically different.
A function module that is assigned to the Drag&Relate supertype is used to determine the actual business object type in a certain instance. The actual business object type is then determined by calling this function module when the object is dropped.

For example, the Order number (AUFNR) data element identifies both internal orders and production orders. A Drag&Relate supertype with the same name as the data element (_AUFNR) is therefore defined in transaction SPO0. This Drag&Relate supertype represents both this business object type and others.
You use this procedure to create Drag&Relate supertypes to allow a distinction between the different uses of a data element.
...
1. Start transaction SPO0.
2. To change the definition of an object type, choose the relevant object type in the Object type field using the F4 help or by typing the exact name in this field.

You can only create a Drag&Relate supertype on the Object View.
3. Choose Display to the left of the field.
4. Choose D&R Supertypes.
5. Choose Create.
6. Specify the Drag&Relate supertype name.
7. Enter the name of the function module that is to determine the current business object at runtime in the Func. module field. This function module must determine which business object is to be called in a Drag&Relate context.

The function module must have the same interface as the function module WP_DR_OBJTYPE_GET_EXAMPLE (see F1 help on the Func. module field).
8. Choose Object types and enter the new supertype in the Supertype field of all object types required.

Only object type with identical key definitions can be assigned to the same supertype.
9. Assign a given data element to any number of objects that belong to the same supertype. The status indicator informs you whether the data element is assigned to the actual object or the supertype.
10. Save your entries.
You have created a Drag&Relate supertype. A function module can determine the current business object for use in Drag&Relate actions.
If you have finished maintaining the object metadata, you can continue by activating the metadata.