Dialog Programming Tutorial: Module Pool in SAP ABAP

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

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

In this tutorial you will learn:


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

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.

Difference between Report and Dialog Programs

Dialog Programming Tutorial: Module Pool in SAP ABAP

Report Program:

A report is a program that typically reads and analyzes data in database tables without changing the database.

Dialog Program:

A dialog program allows you to work interactively with the system and to change the contents of the database tables. Each dialog program has a certain sequence of screens that are processed by the system one after the other.

A Sample transaction processing in Dialog Programming

Dialog Programming Tutorial: Module Pool in SAP ABAP

Components of Dialog Program

Unlike report which generally entails the creation of one autonomous program which can be executed independently of other objects, dialog program development entails development of multiple objects none of which can be executed on it's own. Instead all objects are linked hierarchically to the main program and and are executed in a sequence dictated by the Dialog Main Program.

The components of a dialog program are:

Transaction code

Screens

GUI status

ABAP Program

Screen Flow Logic

Screen Flow logic is primarily divided into four components.

Dynpro

ABAP Module Pool

Structure of a Dialog Program

Dialog Programming Tutorial: Module Pool in SAP ABAP

Process Flow for a Dialog Program

Dialog Programming Tutorial: Module Pool in SAP ABAP

 

YOU MIGHT LIKE: