Structure of ABAP Program


An ABAP program follows the following structure.

  1. Header
  2. Global Declarations
  3. Processing Block
  4. Subroutine definitions
This image has an empty alt attribute; its file name is sap-abap-online-course-26.jpg
ABAP Program Structure

Header Area

This image has an empty alt attribute; its file name is sap-abap-online-course-22.jpg

It follows a standard template and includes information about the development and important comments.

Global Declaration

This image has an empty alt attribute; its file name is sap-abap-online-course-23.jpg

In the Global declaration section, we define types, and data objects which are global and can be accessed from anywhere in the program.

Processing Block

This image has an empty alt attribute; its file name is sap-abap-online-course-24.jpg

Processing Block is to implement the Business logic.

Subroutine Definitions

This image has an empty alt attribute; its file name is sap-abap-online-course-25.jpg

Subroutines are reusable components and effective in modularization of ABAP programs. No executable statements can be accessed after the definition of subroutines.