Sei sulla pagina 1di 10

Program Types

www.imustlearn.co.in

Each ABAP program has a type, which


is defined in the program attributes
 The program types determine :
 Which processing blocks a program can
contain
 How the program is handled and
executed by the runtime environment
 Whether it can work with its own screen


www.imustlearn.co.in

Program Types
Executable Programs
 Module Pools
 Function Groups
 Class Pools
 Interface Pools
 Subroutine pools
 Type groups
 Include programs


www.imustlearn.co.in

Executable Programs





Executable programs are introduced with the


REPORT statement
They can contain their own screens
Are executed via the SUBMIT statement or
transaction codes.
Executable programs can contain all the
various processing blocks in ABAP, except for
Function Modules, and any number of local
classes
They can be created directly with the ABAP
editor tool
www.imustlearn.co.in

Module Pools
Module Pools are introduced with the
PROGRAM statement
 They can work with their own screens and
should have at least one screen linked to the
program and can only be executed through
transaction codes
 Module pools can contain all the various
processing blocks in ABAP, except for
reporting event blocks and Function Modules,
and any number of local classes
 They can be created directly with the ABAP
editor tool


www.imustlearn.co.in

Function Groups








Function Groups or Pools are introduced with the


FUNCTION-POOL statement
Normally Function groups are not executed directly
They are loaded by calling their Function Modules
They can contain all the processing blocks in ABAP,
except for reporting event blocks, and any number of
local classes
They are the only programs that can contain function
modules and are created with the function builder tool
They can have their own screens

www.imustlearn.co.in

Class pools






Class pools are introduced with the CLASSPOOL statement


They cannot contain their own screens and no
other processing blocks than Methods
They cannot be executed directly
They are loaded by using their global classes
They are created with the class builder tool

www.imustlearn.co.in

Subroutine pools








Subroutine pools are introduced with the


PROGRAM statement
They cannot contain their own screens
Apart from LOAD-OF-PROGRAM event block,
can have only subroutines or methods of local
classes as processing blocks
They are not executed directly
They are loaded by calling their procedures
externally
They are created with ABAP editor
www.imustlearn.co.in

Type groups
Type groups or pools are introduced with the
TYPE-POOL statement
 They cannot contain their own screens or
processing blocks
 They contain the definitions of global data
types, which can be made visible in any ABAP
program by the TYPE-POOLS statement
 They are created with the ABAP dictionary tool


www.imustlearn.co.in

Include Programs
Include programs have no introductory
program statement and, unlike all other
program types, they do not represent
independent compilation units with their own
memory space
 Include programs provide a library function for
ABAP source code and can be embeded at
any location in other ABAP programs using the
INCLUDE statement
 EG : TOP include etc


www.imustlearn.co.in

Potrebbero piacerti anche