DATA BOXED

Get Example source ABAP code based on a different SAP table
  



DATA - BOXED


Short Reference

• BOXED DATA
• BOXED CLASS-DATA


ABAP SyntaxDATA struc TYPE struc_type BOXED.



What does it do?This statement defines a structured attribute of a class or an interface as a
oder eine Unterstruktur eine solchen Struktur static box. It can only be located in the declaration section of a class or an interface and only at the highest level.
oder innerhalb einer Strukturdefinition mit den Zusätzen
BEGIN OF
und END OF der Anweisung DATA
und dort wiederum nur auf der höchsten Komponentenebene.
INCLUDE ABAPTYPES_DATA_BOXED OBJECT DOKU ID SD
The addition BOXED can also be used in the statement TYPES to declare a substructure of a nested structured data type.




Example ABAP Coding
The following section shows the allowed usage of the
addition BOXED with the statement [CLASS-]DATA. In a class, declares a static structure struc1 and a structured instance attribute struc2 as a static box. CLASS c1 DEFINITION.
PUBLIC SECTION.
TYPES: BEGIN OF t_struc,
comp1 TYPE c LENGTH 100,
comp2 TYPE n LENGTH 100,
END OF t_struc.
PRIVATE SECTION.
CLASS-DATA struc1 TYPE t_struc BOXED.
DATA struc2 TYPE t100 BOXED.
ENDCLASS.


Return to menu