Skip to content

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

DEFINE STRUCTURE

Other versions: 7.31 | 7.40 | 7.54

Syntax


structure_annos 

DEFINE STRUCTURE struct {
  ...
  component;
  ...
  include;
  ...
}

Effect

Dictionary DDL statement for defining an ABAP Dictionary structure struct in the ABAP Development Tools.

  • A structure is defined using the statement DEFINE STRUCTURE. The usual restrictions for ABAP Dictionary data types apply to the name struct.
  • The mandatory structure properties must be specified as annotations structure_annos in front of the statement DEFINE STRUCTURE.
  • The structure components are defined in a semicolon-separated list in curly brackets { } by one of the following methods:
  • Including include structures include


Notes

  • As in the CDS syntax, an ABAP Dictionary structure definition can contain comments after // and between /* ... */.

  • A more detailed description of the syntax is available in the ADT documentation Syntax of ABAP Dictionary Objects.

Example

Defines the structure DEMOFLI in the ADT.

@EndUserText.label : 'Structure for ALV Demo'
@AbapCatalog.enhancementCategory : #NOT_EXTENSIBLE
define structure demofli {
  fldate   : s_date;
  seatsmax : s_seatsmax;
  seatsocc : s_seatsocc; }

Continue

DEFINE STRUCTURE - structure_annos

DEFINE STRUCTURE - component

DEFINE STRUCTURE - include