ABAP Program Types
description
Transcript of ABAP Program Types
ABAP Keyword Documentation
SAP NetWeaver AS ABAP Release 731, Copyright 2015 SAP AG. All rights reserved.ABAP Program Types The type of an ABAP program determines, for example, which declarations and processing blocks a program can contain and how it can be executed in the ABAP runtime environment. The following table lists all program types for standalone programs (compilation units ) and what impact each of these has on their properties. Program TypeExecutionGlobal DeclarationsProcessing BlocksDynprosText Pools
Executable programSUBMIT statement or by calling a dynpro or selection screen using a transaction codeLocal interfaces and classes, all other declarative statementsAll except function modulesYesYes
Class poolCalling a visible method using CALL METHOD or a transactions codeA global class of the class library, local interfaces and classes, TYPES and CONSTANTS statementsMethods onlyNoYes
Function group or function poolCalling a function module using CALL FUNCTION or a dynpro using a transaction codeLocal interfaces and classes, all other declarative statementsAll except event blocks for reporting eventsYesYes
Interface poolNoneA global interface of the class libraryNoneNoNo
Module poolCalling a dynpro using a transaction codeLocal interfaces and classes, all declarative statementsAll except function modules and event blocks for reporting eventsYesYes
Subroutine poolExternal calls to local procedures (subroutines or methods)Local interfaces and classes, all other declarative statementsEvent block LOAD-OF-PROGRAM, subroutines, methodsNoYes
Type group or type poolNoneTYPES and CONSTANTS statementsNoneNoNo
The second table column indicates the type of execution primarily intended for the program. The third column indicates which declarations can be made in the global declaration section of a program of the specified type. The fourth column indicates which processing blocks the program can contain. The fifth column indicates whether your own dynpros are supported, and the last column indicates whether you can create your own text pools.