Each ABAP program is divided into processing blocks. Each accessible statement of an ABAP program that does not belong to the global declaration section of the program belongs to a processing block. The possible processing blocks are:
You use ABAP statements to call their processing. Possible procedures are methods, function modules, and subroutines.
You can define the processing blocks in any order in the source text of the ABAP program. Non-declarative statements that appear between or after closed processing blocks cannot be accessed and can never be executed. The syntax check reports such dead coding as an error. Declarative statements that appear between or after closed processing blocks belong to the global data declarations of the ABAP program and are visible in all subsequent processing blocks.