SAP Program RN2_ISHMED_COLLECTION2 - Use of Object Collection (2)

Title
Saving and Scanning Object References in an Object Collection (1).Purpose
Creating an object collection by derivation
The program shows how you can easily manage object references in anobject collection. You will find explanatory notes in the source code.

Integration
Collectable objects satisfy the interfaceIF_ISHMED_COLLECTION_OBJECT
The classCL_ISHMED_OBJECT_COLLECTIONimplements an object reference list with the internal STANDARDTABLE OF REFERENCE type. With derivation you can gain a moreparticular class that can, for example, sort or use hashed tables orenhance the management methods.

Prerequisites
A collectable object must have interface IF_ISHMED_COLLECTION_OBJECTand therefore also the key attributeKEY of the STRINGtype.

Features