Skip to main content

Module pool program can be called dialog programming

SAP-ABAP supports two types of programs - Report Program and Dialog Program. Module pool program can be called dialog programming. If ABAP program demands user input, Dialog programming is used.
Module pool program has different modules which contains different logic for different screen. Any number of screens can be developed by module pool programming. Every screen has a logic which runs at the back end. Module pool program can be executed by Transaction Code only.
Difference between Report and Dialog Programs
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.

The Toolset

The components of a dialog program are:
1) Transaction code
  • The transaction code starts a screen sequence.
  • You create transaction codes in the Repository Browser in the ABAP Workbench or using Transaction SE93.
  • A transaction code is linked to an ABAP program and an initial screen.
  • You can start a screen sequence from any ABAP program using the CALL SCREEN statement.
 2) Screens
  • Each dialog in an SAP system is controlled by one or more screens.
  • You create screens using the Screen Painter in the ABAP Workbench through transaction SE51
  • Each screen belongs to an ABAP program.
  • These screens consist of a "screen mask" or "layout" and its flow logic. The screen has a layout that determines the positions of input/output fields and other graphical elements such as checkboxes and radio buttons. A flow logic determines the logical processing within screen.
 3) GUI status
  • Each screen has a GUI status(es) which are independent components of a program.
  • This controls the menu bars, standard toolbar, application toolbar , with which the user can choose functions in the application.
  • You create them in the ABAP Workbench using the Menu Painter.
 4) ABAP Program
  • Each screen and GUI status in the R/3 System belongs to one ABAP program.
  • The ABAP program contains the dialog modules that are called by the screen flow logic, and also process the user input from the GUI status.
  • ABAP programs that use screens are also known as dialog programs.
  • In a module pool (type M program); the first processing block to be called is always a dialog module. However, you can also use screens in other ABAP programs, such as executable programs or function modules. The first processing block is then called differently; for example, by the runtime environment or a procedure call. The screen sequence is then started using the CALL SCREEN statement.
 5) Screen Flow Logic
In the Object Browser, the module pool code belongs to one of the following categories:
Global fields: data declarations that can be used by all modules in the module pool
PBO modules: modules that are called before displaying the screen
PAI modules:  modules that are called in response to the user input
Subroutines: subroutines that can be called from any position within the module pool
By default, the system divides a module pool into one or several include programs. An include program can contain several modules of the same type (only PBO modules or only PAI modules).
Events in Dialog Program
  • PBO event
This event is triggered before the screen is displayed. The processing of screen before the display of screen is done in this event. For example , filling in default values in the screen fields.
  • PAI event
    This event is responsible for processing of screen after the user enters the data and clicks the pushbutton. The processing of screen can include displaying another screen, or just displaying list or quitting the transaction itself and many more things. Usually it is displaying another screen. These operations can be carried out in the PAI event. OKCODE plays an important role in this operation.
  • POV event
Process on value request is triggered when the user clicks F4 key. You can handle this event when the user presses F4 key by writing code for the same in module pool program. Normally when the user presses F4, list of possible values is displayed. The standard list produced by system is adequate for applications you develop yourself. However, you can also have the option of setting up your own documentation and lists of possible values that are more detailed.
POH event
Normally when the user places the cursor on the field and presses F1 function key, the system displays its own Help for that particular field. You can add your own functionality to the Help button by writing code for the same in the POH event.
6) Dynpro
  • A screen together with its Flow logic is called a Dynpro ("Dynamic Program" since the screen flow logic influences the program flow)
  • Each dynpro controls exactly one step of your Dialog Program.
  • The screens belonging to a program are numbered. The screen flow sequence can be either linear or cyclic. From within a screen chain, you can even call another screen chain and, after processing it, return to the original chain. You can also override the statically-defined next screen from within the dialog modules of the ABAP program.
 7) ABAP Module Pool
  • On a PBO or PAI event a Dynpro calls an ABAP dialog program. Collection of such programs is called the ABAP module pool.
  • For example modules called at the PAI event are used to check the user input and to trigger appropriate dialog steps, such as the update task.
  • All dynpros to be called from within one transaction refer to a common module pool.
Structure of a Dialog Program
Process Flow for a Dialog Program

Comments

Popular posts from this blog

SAP S/4HANA: Next Generation Business suite

SAP delivered a massive wave of simplification and innovation in the core of SAP S/4HANA. With this delivery, enterprises can drive unprecedented business value with innovative use-cases - in core financial and operational areas such as in logistics taking full advantage of a simplified data model and a responsive user experience. SAVIC SAP S/4HANA migration templates helps SAP Business Suite customer can move from different start releases to SAP S/4HANA, on-premise edition. For certain start releases, a one-step procedure is available, which includes the installation of the SAP S/4HANA Core and, if necessary, the migration of the database to SAP HANA. As part of the move to SAP S/4HANA, on-premise edition, SAVIC Migration approach helps customers to adapt current implemented solution to comply with the scope and data structures of SAP S/4HANA.   Optimize IT operations, and innovate business processes faster to become a best-run business.

SAVIC is certified by SAP in the program SAP S/4HANA Demo21

Mumbai India, 26 January 2017 , –SAVIC, a leading global IT company in Digital Business Transformation (DBT) received Certificate of Accomplishment in recognition of their commitmentin the S/4HANA Demo21, build your own SAP S/4HANA, Edition for SAP Business All-in-One Demo Environment, release 1610 FPS0 0 . Through this achievement, the study will be possible, training, proof of concept (POC), development and demonstration of new features in SAP S/4HANA.  For  SAVIC Technologies Private Limited , Shakir VP of the SAP Excellence Centre at India, “Achieving this certification represents an important milestone in our partnership with SAP, not only because it demonstrates that we have the appropriate environment for S/4HANA Demo21 but also our strategy to develop our consultants’ expertise in S/4HANA”. About SAVIC SAVIC  Technologies Pvt Ltd is a global IT service Company providing Strategic Business Consulting and IT Services. The services offered ...

Procure to Pay (P2P) Cycle- by Amod Bhat SAP Consultant at SAVIC Technologies

Procure to Pay, also known as P2P , is the process of obtaining the raw materials needed for manufacturing a product or providing a service, and making payment for these. Every manufacturing concern or service provider needs to run this cycle efficiently if they are to continuously manage their cash flow, build goodwill with suppliers and make profits. Steps of the Procure to Pay (P2P) Cycle: *   The process begins with planning what materials are required, when they are required, and the price that the company can afford to pay for them. *   Then the company prepares a list of vendors that they think can provide the materials for them. *   The company asks each of the vendors to submit a quotation, which includes the price, terms of delivery, quality of materials, and any other information that they need for making their decision. This stage could also involve negotiating with the vendors for the best deal. *   Once a vendor has been chosen, t...