SAP PROGRAM TYPE OVIEW



Get Example source ABAP code based on a different SAP table
  


VERSION 5 IN

ABAP Program Types
The type of an ABAP program determines, among other things, which declarations and processing blocks a program can contain and how it can be executed in the ABAP runtime framework.
The following table shows the program types for standalone programs ( compilation units) and how they affect their properties: Program TypeProgram-Initiating StatementExecution Global Declarations Processing BlocksDynpros Text Pools Class pool CLASS-POOL Call of a visible method
BEGIN_SECTION VERSION 5 OUT or using a transaction code for an object transaction.
END_SECTION VERSION 5 OUT A global class of the class library, local interfaces and classes, statements TYPES and CONSTANTS Methods onlyNoYes Interface pool INTERFACE-POOLNoneA global interface of the class libraryNoneNoNo Function pool or function group FUNCTION-POOL Call of a function module using CALL FUNCTION
BEGIN_SECTION VERSION 5 OUT or of a dynpro using a transaction code
END_SECTION VERSION 5 OUT Local interfaces and classes, all other declarative statements All except event blocks for reporting events YesYes
BEGIN_SECTION VERSION 5 OUT Executable program REPORTStatement SUBMIT or call of a dynpro or selection screen using a transaction codeLocal interfaces and classes, all other declarative statements All except function modulesYesYes Module pool PROGRAM Call of a dynpro using a transaction codeLocal interfaces and classes, all declarative statementsAll except function modules and event blocks for reporting eventsYesYes Subroutine pool PROGRAMExternal call of local procedures (subroutines or methods)Local interfaces and classes, all other declarative statements Event block LOAD-OF-PROGRAM, subroutines, methodsNoYes Type pool or type group TYPE-POOL None Statements TYPES and CONSTANTS NoneNoNo
END_SECTION VERSION 5 OUT
The second column of the table shows the respective program-initiating statement, the third column shows the type of execution for which the program type is mainly designated. The fourth column shows which declarations can be made in the global declaration part of a program with the specified type. The fifth column indicates which processing blocks the program can contain. The sixth column indicates whether standalone dynpros are supported. The final column indicates whether standalone text pools can be created.

ABAP_PGL
ABAP Program Types
ABAP_PGL_END