ABAP Keyword Documentation →  ABAP − Reference →  Declarations →  Declaration Statements →  Data Types and Data Objects →  Types and Objects - Overview →  Details of Special Data Types or Data Objects →  Boxed Components → 

Static Boxes

Static boxes are boxed components whose components are known statically and which are subject to initial value sharing. Declarations of static boxes generally require less memory for structures that occur multiple times but are rarely used.

The following can currently be declared as static boxes:

A static box can have one of two states:

The internal reference then references an instance of the structure in the current internal session. The memory requirement is the same as for a normal structure plus the administration costs for the internal reference.

With initial value sharing, the memory required for the internal session of a static box is not initially known when the program is executed. However, unlike with real dynamic data objects, the length of a static box is always known statically. In static boxes, the same functions are available as those available for a normal component of the same type. However, when you access a structure that contains a static box, you need to keep in mind that this is a deep component.

Notes