WhatsApp Button




top of page

Become Better With MODULE POOL PROGRAMMING In 10 Minutes


ree

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.


ree


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


ree


Steps to create layout for the screen —


Step 1 - Click on layout button.


ree


Sep 2 - Apply functions as per requirement


ree


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.


ree

Coding Screen —

Main coding for the program —


ree

Screen 1000 coding — Customer verification screen


ree


Screen 1000 layout — Customer verification screen


ree


Screen 2000 coding — New Customer Registration screen


ree

Screen 2000 layout — New Customer Registration screen


ree

GUI elements —


ree


Output when Entered Customer No. is present —


ree

Output when Entered Customer No. is not present —


ree

ree


Database table —


ree


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).


ree

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


ree

Step 3 - Repeat step 2 for second tab.


ree

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


ree

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 —


ree

Screen 1000 coding — Customer verification screen


ree


Screen 1000 layout — Customer verification screen


ree


Screen 2000 coding — Tabstrip menu


ree

Screen 2000 layout — Tabstrip menu


ree

Screen 3000 coding — New Customer Registration screen


ree

Screen 3000 layout — New Customer Registration screen


ree

Screen 4000 coding —


ree

Screen 4000 layout —


ree

GUI elements —


ree


Output when Entered Customer No. is present —


ree


Output when Entered Customer No. is not present —


ree

ree

Database tables —

KNA1


ree

KNKK


ree

Steps to make transaction code —


Step 1 - Right click on program name for which you are creating transaction code and select create and transaction.


ree


Step 2 - Fill the required fields and click on enter.


ree

Step 3 - After clicking on enter check this statement. If it appears it means the transaction code is generated successfully.


ree


Checking for the transaction

ree

ree






ree



ree

ISHNOOR SINGH SETHI LINKEDIN- https://www.linkedin.com/in/ishnoorsingh/













 
 
 
bottom of page