Show TOC

  Selection of Objects

When you create a trigger, this is not linked to any specific processing or a specific event. In contrast, you select objects at a defined event during the mass activity.

How the selection is made is defined by the runtime implementation that belongs to the trigger type. If you implement a customer-specific runtime class, you must ensure that your class implements interface IF_MASS_PROCESSING_IMP. The customer-specific class can also inherit from the runtime class CL_MASS_PROCESSING_BASE_IMP supplied by SAP.

For test purposes you can use the IMP Manager to start the objects in dialog mode (transaction IMP_MANAGER). The system processes all triggers of the IMP run that do not have any later execution date. To process the objects, the system groups the triggers by trigger type and hash value. The system selects the objects for all triggers of the same type and the same hash value .

Recommendation Recommendation

Function module IMP_ADD_OBJECTS saves the objects with a MODIFY instruction. This instruction makes it possible to save same objects for a trigger (such as dummy entries). If you only want the system to save unique objects for a trigger, call the function module with the optional parameter IV_UNIQUE_OBJECTS. This uses the INSERT instruction. This instruction guarantees better performance.

End of the recommendation.