ABAP INCLUDE structure

INCLUDE statement can be used for copy the components from a structured type or from a Structure. This statement should come between BEGIN OF and END OF statements in the current ABAP program. The specified structure components will be copied to the structure in ABAP program

Syntax:

INCLUDE { {TYPE struc_type} | {STRUCTURE struc} }

[AS name [RENAMING WITH SUFFIX suffix]].

  • TYPE addition is used for specifying the structured type from where the components should copy and insert in our ABAP program.
  • STRUCTURE addition is used for specifying the structure from where the components should copy and insert in our ABAP program.
  • AS addition is for specify a name for addressing all the copied components together.
  • RENAMING WITH SUFFIX addition is used for adding a specified suffix with each individual component names.

Normally this statement is used with the following data objects creation in ABAP programs.

  • TYPES
  • DATA
  • CLASS-DATA
  • STATICS

Sample program for INCLUDE a structure

Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes