| bound memory (BC-ABA) |
In ABAP Memory Management, bound storage is the amount of main memory that would be released if the object that uses the storage were deleted or cleared. Bound memory is therefore the storage that is used exclusively by an object.
Example: Assume that class object CO_1 has two attributes. One references an internal table that currently is used only by CO_1. The other references an instance of another class. The other class is also referenced exclusively by CO_1.
The bound storage of CO_1 includes the internal table, because the table is used exclusively by CO_1. If CO_1 is deleted, then the internal table would also be removed from memory.
The bound memory also includes the memory occupied by the referenced class object. As of Release 7.0, the Memory Inspector determines whether class objects or anonymous data objects are referenced by only one or by multiple entities in a program. If an entity has an exclusive reference to such an object, then the referenced object is counted as part of the bound storage of the referring object.
The internal table would not be counted as part of the bound storage of CO_1 if some other entity also had a variable that refers to the table. As long as the internal table is not changed in any way, CO_1 and the entity with the second reference to the internal table share the same object in memory. The internal table would therefore not be the exclusive property of CO_1. Since the internal table has another user, it is not counted toward the bound memory of CO_1.