Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary →  Classic Objects in ABAP Dictionary →  Data Types →  Structures →  Dictionary DDL for Structure Definitions →  DEFINE STRUCTURE 

DEFINE STRUCTURE - include

Other versions: 7.31 | 7.40 | 7.54

Syntax


[group :] INCLUDE struct [WITH SUFFIX suffix] 
                  [...
                   extend
                   ...];

Effect

Includes an include structure in the definition of a structure using the statement DEFINE STRUCTURE in Dictionary DDL.

  • Any existing structure from ABAP Dictionary, including database tables or views, can be specified as struct.
  • group can be used to specify an optional name of a group.
  • suffix can be used to specify an optional three-character suffix.
  • A blank-separated list of additions, extend, can be used to overwrite the assignment to a search help and the definition of a foreign key dependency for each included component.


Note

The addition INCLUDE can be used with the same semantics in the statement DEFINE TABLE in cases where the include structure is suitable for database tables.


Example

Syntax for defining the structure DEMO_WEEK in the ADT.

...
define structure demo_week {
  monday    : include demo_day with suffix _mo;
  tuesday   : include demo_day with suffix _tu;
  wednesday : include demo_day with suffix _we;
  thursday  : include demo_day with suffix _th;
  friday    : include demo_day with suffix _fr;
}

Continue

DEFINE STRUCTURE - extend