- SAP ABAP - Web Dynpro
- SAP ABAP - Business Add-Ins
- SAP ABAP - User Exits
- SAP ABAP - Customer Exits
- SAP ABAP - SAPscripts
- SAP ABAP - Smart Forms
- SAP ABAP - Dialog Programming
- SAP ABAP - Report Programming
- SAP ABAP - Object Events
- SAP ABAP - Interfaces
- SAP ABAP - Encapsulation
- SAP ABAP - Polymorphism
- SAP ABAP - Inheritance
- SAP ABAP - Classes
- SAP ABAP - Objects
- SAP ABAP - Object Orientation
- SAP ABAP - Deleting Internal Tables
- SAP ABAP - Reading Internal Tables
- SAP ABAP - Copying Internal Tables
- ABAP - Populating Internal Tables
- SAP ABAP - Creating Internal Tables
- SAP ABAP - Internal Tables
- SAP ABAP - Native SQL Overview
- SAP ABAP - Open SQL Overview
- SAP ABAP - Include Programs
- SAP ABAP - Function Modules
- SAP ABAP - Macros
- SAP ABAP - Subroutines
- SAP ABAP - Modularization
- SAP ABAP - Lock Objects
- SAP ABAP - Search Help
- SAP ABAP - Views
- SAP ABAP - Structures
- SAP ABAP - Tables
- SAP ABAP - Data Elements
- SAP ABAP - Domains
- SAP ABAP - Dictionary
- SAP ABAP - Exception Handling
- SAP ABAP - Formatting Data
- SAP ABAP - Date & Time
- SAP ABAP - Strings
- SAP ABAP - Decisions
- SAP ABAP - Loop Control
- SAP ABAP - Operators
- SAP ABAP - Constants & Literals
- SAP ABAP - Variables
- SAP ABAP - Data Types
- SAP ABAP - Basic Syntax
- SAP ABAP - Screen Navigation
- SAP ABAP - Environment
- SAP ABAP - Overview
- SAP ABAP - Home
SAP ABAP Useful Resources
- SAP ABAP - Discussion
- SAP ABAP - Useful Resources
- SAP ABAP - Quick Guide
- SAP ABAP - Questions Answers
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
SAP ABAP - Dialog Programming
Dialog programming deals with the development of multiple objects. All these objects are pnked hierarchically to the main program and they are executed in a sequence. Dialog program development makes use of tools in the ABAP workbench. These are the same tools used in standard SAP apppcation development.
Here are the main components of dialog programs −
Screens
Module pools
Subroutines
Menus
Transactions
The Toolset
Dialog programs should be developed by the object browser (transaction: SE80) so that all objects become pnked to the main program without having to exppcitly point each object. Advanced navigation techniques enhance the process of moving from one object to the other.
Screens are made up of screen attributes, screen layout, fields and flow logic. The module pool consists of modularized syntax that is placed inside include programs of the dialog program. These modules can be invoked by the flow logic, which is processed by the dialog processor.
Creating a New Dialog Program
Step 1 − Within the transaction SE80, select ‘Program’ from the dropdown and enter a Z name for your custom SAP program as ‘ZSCREENEX’.
Step 2 − Press Enter, choose ‘With TOP INCL’ and cpck the ‘Yes’ button.
Step 3 − Enter a name for your top include as ‘ZSCRTOP’ and cpck the green tick mark.
Step 4 − Within the attributes screen, simply enter a title and cpck the save button.
Adding a Screen to the Dialog Program
Step 1 − To add a screen to the program, right-cpck on the program name and select the options Create → Screen.
Step 2 − Enter a screen number as 0211 and cpck the green tick mark.
Step 3 − In the next screen, enter a short title, set to normal screen type and cpck the save button on the top apppcation toolbar.
Screen Layout and Adding ‘Hello World’ Text
Step 1 − Cpck the layout button within the apppcation toolbar and the Screen Painter window appears.
Step 2 − Add a Text Field and enter some text such as "Hello World".
Step 3 − Save and activate the screen.
Creating Transaction
Step 1 − To create a transaction code for your program, simply right cpck on the program name and choose the option Create → Transaction and enter a transaction code as ZTRANEX .
Step 2 − Enter the transaction text, program and screen you have just created (ZSCREENEX & 0211), and tick the ‘SAPGUI for Windows’ checkbox in the ‘GUI support’ section.
Executing the Program
Save and activate everything. You can execute the program. As the program executes, the text you entered is displayed on the screen as shown in the following screenshot.
Advertisements