Ansicht
Dokumentation

ABAPDATA_BOXED - DATA BOXED

ABAPDATA_BOXED - DATA BOXED

ROGBILLS - Synchronize billing plans   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

DATA, BOXED

Short Reference



DATA struc TYPE struc_type BOXED.

Effect

This statement defines a structured attribute of a class or an interface as a static box. It can only be in the declaration section of a class or an interface and only at the highest level.

A structured data type must be specified for struc_type. This can be a local program structured type, a visible structured type of a class or a global interface, or a structure from the ABAP Dictionary, and can contain static boxes.

Static boxes support initial value sharing. The structure is not saved in the higher-level context itself. Instead, an internal reference that points to the actual structure is stored in place of the component. A static box is therefore a deep component.

Notes

  • A structure with a static box is a deep structure and the corresponding restrictions apply.

  • The BOXED addition defines the static box with reference to its context (structure or class). A data type that is declared by a direct TYPE or LIKE reference to a static box is assigned its data type but is not a static box.

  • When a static box is copied from one structure to another structure using the INCLUDE TYPE|STRUCTURE statement, its static box attribute is also copied.
  • The addition BOXED can also be used in the statement TYPES to declare a substructure of a nested structured data type.

Example

The following section shows the allowed use of the addition BOXED with the statement $[CLASS-$]DATA. In a class, a static structure struc1 and a structured instance attribute struc2 are declared as static boxes.






rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2614 Date: 20240425 Time: 061223     sap01-206 ( 49 ms )