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 

DEFINE STRUCTURE - extend

Other versions: 7.31 | 7.40 | 7.54

Syntax


... [foreign_key_annos] 
    EXTEND component : [value_help] [foreign_key] ...

Effect

Defines component properties when including include structures using the statement DEFINE STRUCTURE in Dictionary DDL. The addition EXTEND can be specified for the every component component in the included include structure and defines the following properties for this structure. If any of the properties of the included component already exist, they are overwritten.

  • foreign_key - Definition of a foreign key dependency.

At least one of the additions value_help and foreign_key must be specified.


Note

The addition EXTEND can be used for individual components and with the same meaning in the definition of a database table with DEFINE TABLE or an append structure with EXTEND TYPE.


Example

Includes a structure include_struct in a structure struct, where EXTEND is used to assign a search help to the components comp1 and comp2.

...
define structure struct {
  ...
  include include_struct
    extend comp1 :
      with value help demo_f4_field
        where carrid = struct.comp1
          and connid = struct.comp2
    extend comp2 :
      with value help demo_f4_field
        where carrid = struct.comp1
          and connid = struct.comp2;
  ...
  }