SAP Program RN2_ISHMED_COLLECTION1 - Use of Object Collection (1)

Title
Saving and Scanning Object References in an Object Collection (1).

Purpose
Creating an object collection by composition.
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 interface IF_ISHMED_COLLECTION_OBJECT.
The class CL_ISHMED_OBJECT_COLLECTION implements an object referencelist with the internal STANDARD TABLE OF REFERENCE type. Withderivation you can gain a more particular class that can, for example,sort or use hashed tables or enhance the management methods.

Prerequisites
A collectable object must have interface IF_ISHMED_COLLECTION_OBJECTand therefore also the key attribute IF_ISHMED_COLLECTION_OBJECT~KEY ofthe STRING type.

Features

Activities
You should execute the example program.