Become Better With MODULE POOL PROGRAMMING In 10 Minutes



SAP-ABAP supports two types of programs – Report Program and Dialog Program.

If your ABAP program demands user input , Dialog programming is used.


A user dialog is any form of interaction between the user and the program and could be any of the following

  • Entering data

  • Choosing a menu item

  • Clicking a button

  • Clicking or double clicking an entry

Dialog program is also used when we need to navigate back and forth between screens


Dialog programs are created with type as 'M' – Module Pool. They cannot be executed independently and must be attached to at least one transaction code in which you specify an initial screen.

Events in Module Pool Programming —

  • Process Before Output (PBO) event: which is processed before the screen is displayed

  • Process After Input (PAI) event: which is processed after a user action on the screen

  • Process on help request (POH): which is processed when F1 is pressed

  • Process on value request (POV):which is processed when F4 is pressed


Steps to start with Module Pool Programming

  • On Object Navigator Screen (tcode - “SE80”) select program from drop down menu and then fill the name for the program. Click on enter and save the program.



  • After saving Program name will appear in the below grid, right click on program name and select create and screen.


Steps to create layout for the screen —

Step 1 - Click on layout button.



Sep 2 - Apply functions as per requirement



To add table contents in layout click on the circled button and then write the name of the table and click on “get from dictionary.” After clicking select the field and click on tick icon.


Coding Screen —

Main coding for the program —



Screen 1000 coding — Customer verification screen



Screen 1000 layout — Customer verification screen



Screen 2000 coding — New Customer Registration screen



Screen 2000 layout — New Customer Registration screen



GUI elements —



Output when Entered Customer No. is present —



Output when Entered Customer No. is not present —



Database table —



Tab Strip Control —

A tabstrip control is a screen object consisting of two or more pages. Each tab page consists of a tab title and a page area. If the area occupied by the tabstrip control is too narrow to display all of the tab titles, a scrollbar appears, allowing you to reach the titles that are not displayed. There is also a pushbutton that allows you to display a list of all tab titles.


Tabstrip controls allow you to place a series of screens belonging to an application on a single screen, and to navigate between them easily.


Steps to create a Tab Strip Control menu —

Step 1 - On the painter window click on the circled button (Tabstrip Control).



Step 2 - Double click on the tab name and rename as per requirement.



Step 3 - Repeat step 2 for second tab.



Step 4 - Click on the circled button (subscreen area) and drag inside the tabstrip box.



Sample program for checking if the record is present in the table and if not adding it into the data base table.


Main coding screen —



Screen 1000 coding — Customer verification screen


Screen 1000 layout — Customer verification screen


Screen 2000 coding — Tabstrip menu



Screen 2000 layout — Tabstrip menu



Screen 3000 coding — New Customer Registration screen



Screen 3000 layout — New Customer Registration screen



Screen 4000 coding —



Screen 4000 layout —