Introduction to module pool programming in SAP

Introduction to module pool programming and screen, flow login in module pool programs

+ -
It is a special type of programming which is used to create custom SAP screens.

Transaction code for creating module pool programs is SE80.

Every module pool program must be executed with a transaction (T-code).

Events in Module pool programming

There are four events available in module pool programming.

PBO (Process Before Output):Triggered before MPP screen is displayed.

PAI (Process After Input): Triggered after MPP screen is displayed whenever user raises an action. Also,Now PBO is also triggered.

POV (Process On Value Request): Triggered when User Clicks on search help or F4 Button.

POH (Process On Help Request): Triggered when User Clicks on search help or F4 Button.

Events in Module pool programming

Modularization techniques in Module Pool

Basically there are four include programs which are created automatically for an MPP program.

_TOP   "top include program ,All data declarations.
_O01  "PBO include program , All logic related to PBO event
_I01  "PAI include program , All logic related to PAI event
_F01  "Forms include program , All logic related to subroutines

SCREEN

It is a visible layout which is displayed in the output. The components of the Screen are
Components of Screen:
  • Attributes : Properties of screen
  • Element List : List of UI/Library elements
  • Flow-Logic : Abap logic related to MPP
  • Layout : Screen Designing Area

Flow Logic in module pool

It will contain the logic related to screen in the form of modules By default, 2 events will be available with their corresponding modules as below: Just uncomment the modules and create them and write the abap logic.

PROCESS BEFORE OUTPUT.
*MODULE STATUS_0100.
PROCESS AFTER INPUT.
*MODULE USER_COMMAND_0100.

MODULE:

  • It is an sub-program which contains the ABAP code for a screen .
  • Flow-Logic cannot understand ABAP statements. So the entire ABAP code is written in the form of modules.
  • Since the entire abap logic is divided in the form of modules, that is why it is called MODULE POOL PROGRAMMING

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 70 People out of 75 think this lesson helpful


    Lesson Navigation

    SD and MM flows in SAP← Previous Lesson
    Next Chapter →