ABAP Program Types

2
SAP NetWeaver AS ABAP Release 731, ©Copyright 2015 SAP AG All rights reserve! ABAP Program Types "he type o# a$ ABAP progra% !eter%i$es, #or e&a%ple, 'hi(h !e(laratio$s a$! pro(essi$g )lo(*s a progra (a$ (o$tai$ a$! ho' it (a$ )e e&e(+te! i$ the ABAP r+$ti%e e$viro$%e$t "he #ollo'i$g ta)le lists all progra% types #or sta$!alo$e progra%s (o%pilatio$ +$its - a$! 'hat i%p these has o$ their properties Program Type Execution Global Declarations Processing BlocksDynpros Text Pools .&e(+ta)le progra% SUBMIT state%e$t or )y (alli$g a !y$pro or sele(tio$ s(ree$ +si$g a tra$sa(tio$ (o!e /o(al i$ter#a(es a$! (lasses, all other !e(larative state%e$ts All e&(ept #+$(tio$ %o!+les es es Class pool Calli$g a visi)le %etho! +si$g CALL METHOD or a tra$sa(tio$s (o!e A glo)al (lass o# the (lass li)rary, lo(al i$ter#a(es a$! (lasses, TYPES a$! CONSTANTS state%e$ts etho!s o$ly No es +$(tio$ gro+p or #+$(tio$ pool Calli$g a #+$(tio$ %o!+le +si$g CALL FUNCTION or a !y$pro +si$g a tra$sa(tio$ (o!e /o(al i$ter#a(es a$! (lasses, all other !e(larative state%e$ts All e&(ept eve$t )lo(*s #or reporti$g eve$ts es es $ter#a(e pool No$e A glo)al i$ter#a(e o# the (lass li)rary No$e No No o!+le pool Calli$g a !y$pro +si$g a tra$sa(tio$ (o!e /o(al i$ter#a(es a$! (lasses, all !e(larative state%e$ts All e&(ept #+$(tio$ %o!+les a$! eve$t )lo(*s #or reporti$g eve$ts es es S+)ro+ti$e pool .&ter$al (alls to lo(al pro(e!+res s+)ro+ti$es or %etho!s- /o(al i$ter#a(es a$! (lasses, all other !e(larative state%e$ts .ve$t )lo(* LOAD- OF-PROGRAM , s+)ro+ti$es, %etho!s No es "ype gro+p or type pool No$e TYPES a$!CONSTANTS state%e$ts No$e No No "he se(o$! ta)le (ol+%$ i$!i(ates the type o# e&e(+tio$ pri%arily i$te$!e! #or the progra% "he thir! i$!i(ates 'hi(h !e(laratio$s (a$ )e %a!e i$ the glo)al !e(laratio$ se(tio$ o# a progra% o# the spe(i#i "he #o+rth (ol+%$ i$!i(ates 'hi(h pro(essi$g )lo(*s the progra% (a$ (o$tai$ "he #i#th (ol+%$ i$!i(ate 'hether yo+r o'$ !y$pros are s+pporte!, a$! the last (ol+%$ i$!i(ates 'hether yo+ (a$ (reate yo+r o'$ pools

description

ABAP Program Types

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.