Skip to content

ABAP Keyword Documentation →  ABAP - Short Reference 

DATA BEGIN OF - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


DATA BEGIN OF struc [READ-ONLY] [OCCURS n]. 
  ...
  INCLUDE ...
  ...
DATA END OF struc [VALID BETWEEN intlim1 AND intlim2].

Effect

Declares a data object or instance attribute struc. This variant of the statement DATA creates a structure whose components can be declared using DATA statements or copied from other structures using INCLUDE.

Additions

  • READ-ONLY
    Protects a non-private structure from write access from outside its own class.
  • OCCURS n
    Obsolete: Creates an internal table with a structured row type, standard key, a header line, and initial memory requirement n.
  • VALID BETWEEN intlim1 AND intlim2
    Obsolete: Defines the columns intlim1 and intlim2 in an internal table, created using OCCURS, as interval limits for the obsolete short form of PROVIDE.