Ansicht
Dokumentation

ABENABAP_PROGRAM_LAYOUT - ABAP PROGRAM LAYOUT

ABENABAP_PROGRAM_LAYOUT - ABAP PROGRAM LAYOUT

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Program Structure

IMAGE @@ABDOC_Program.gif@@567@@1020@@

  • The functions of an ABAP program are implemented in processing blocks. Processing blocks are defined using modularization statements. Declarative statements in processing blocks of the type procedure can be used to create local data types and data objects. All other processing blocks do not have a local data area and any declarative statements apply to the program globally. The most important processing blocks in ABAP Objects are methods. They can only be implemented in the implementation part of their class. The order of the processing blocks or implementation parts is irrelevant for program execution, but should support the readability of a program.
  • Following the program-initiating statement, every program contains a global declaration part, in which definitions and declarations are implemented that are valid and visible throughout the entire program. This includes the declaration of data types and data objects, as well as the definition of interfaces or the declaration section of classes in ABAP Objects. The definitions of interfaces and classes contain the declarations of their components. While the order of the individual definitions and declarations is not fixed, it should respect the fact that an ABAP statement can only refer to existing definitions and declarations. For example, a reference variable can only refer to a previously defined class, which in turn can only implement a previously defined interface. Once a procedure is initiated, data types and data objects that are visible within that procedure can be declared. In the broadest sense, the declaration of data types also includes the typing of objects that have an undetermined data type when the program is created.
  • All other statements of an ABAP program are implementation statements, which are part of a processing block. The implementation statements are used to implement the functions of a processing block. The functionality of all processing blocks is largely implemented using the same statements.
  • Since ABAP is a language that has grown over time, it contains several obsolete additions of statements that have been replaced by better language constructs, but which cannot be removed for reasons of downward compatibility. In ABAP Objects, that is, when implementing methods, almost all of the obsolete language elements usually fail syntax checks. Although these language elements should no longer be used in new programs, they can still be found in older programs.





Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3846 Date: 20240329 Time: 163928     sap01-206 ( 75 ms )