Sie sind auf Seite 1von 10

12/1/2017 SAP ABAP Dialog Programming

SAP ABAP AND WEBDYNPRO TUTORIALS SUBSCRIBE

SAP ABAP Dialog Programming Select Topics

March 18, 2017

SAP ABAP Dialog Programming(Module Pool


Programming)
When we enter into any SAP Transaction code ,we will enter the data into screen elds
and clicking on menu item and we will click on SAVE button .These interactions
btween user and screen is calling the dailog programming

Dialog program provides us  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.

Dialog Program:

With the help of  dialog program ,we can work interactively with the system and we can
change the contents of the database tables. Each and every dialog program having  a
certain sequence of screens which are processed by the system one after the other.

Structure of Dialog Program

Transaction code
The transaction code starts a screen sequence.
We are creating Transaction codes in  SE93 Tcode.
A transaction code is linked to an ABAP program and an initial screen.
.
Screens
Each dialog in an SAP system is controlled by one or more screens.
We will create screens using the Screen Painter in the ABAP Workbench using
transaction SE51

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 (SE41).
ABAP Program
Each screen and GUI status in the R/3 System belongs to one ABAP program.
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 1/10
12/1/2017 SAP ABAP Dialog Programming
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 ow
logic, and also process the user input from the GUI status.

Screen Flow Logic

Screen Flow logic is primarily divided into four components.


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

We should create every module pool program with the help of four transactions.

1.Create Module pool program in the SE38 transaction code.


2.Create screens and its elements and attributes in SE51 transaction code.
3.Create All Menu's in the SE41 transaction code.
4.Create Transaction code for your module pool program in SE91 Transaction Code.

Screen Painter(SE51) :

The Screen Painter is a tool in the ABAP Workbench that you use to create screens for
ABAP programs and ow logic for the screens.

Screen Attributes
Screen attributes describe a screen object in the SAP system. They describe the
program to which the screen belongs and the type of screen.
Screen Layout
The screen layout describes both the screen elements and their layout. The most
common screen elements are I/O elds, text elds, check boxes, radio buttons, push
buttons and controls. Fields are de ned in the ABAP Dictionary or in your program.
Flow Logic
The ow logic controls the ow of your program.
Screen Painter Modes
The Screen Painter has a Layout Editor with two modes:
●      Graphical mode (available only on Windows platforms)
●      Alphanumeric mode.
 In the graphical mode, you use a drag and drop interface similar to a drawing tool. In
the alphanumeric mode, you use your keyboard and menus. To activate the graphical
mode, in the Screen Painter choose Utilities → Settings →Graphical layout editor.
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 2/10
12/1/2017 SAP ABAP Dialog Programming

Screen Elements 

A screen can contain a wide variety of elements, either for displaying eld contents, or
for allowing the user to interact with the program (for example, lling out input elds or
choosing pushbutton functions). You use the Screen Painter to arrange elements on
the screen.
You can use the following elements:
·        Text elds

·        Input/output elds and templates

·        Dropdown list boxes

·        Checkbox elements

·        Radio button elements

·        Pushbuttons

·        Frame

·        Subscreens

·        Table controls

·        Tabstrip controls

·        Custom Controls

·        Status icons

·        OK eld

Menu Painter(SE41):

The Menu Painter is one of the tools of the ABAP Workbench. You use it to design user
interfaces for your ABAP programs and to de ne the functions that you want to use
within these interfaces.

ABAP programs contain a wide variety of functions which fall into different categories
within the user interface. An instance of the user interface consisting of a menu bar, a
toolbar for system function keys (standard toolbar), and an application toolbar, is
called a GUI status. The GUI status and GUI title de nes how the user interface looks
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 3/10
12/1/2017 SAP ABAP Dialog Programming
called a GUI status. The GUI status and GUI title de nes how the user interface looks
and behaves in an ABAP program. You can see a representation of these objects in the
gure below.

What can we create in Module Pool Prgogramming:

Let us learn more features of screen elements and using screen painter what elements
can we create .

Modal Dialog Box:

Description : Modal Dialog Box is a Pop up window which is displayed on the top of the
screen.

Respond to double Click

We can create double click property for screen leds

Subscreens

A Sub screen is nothing but a screen with in a screen.


Displaying of data of one screen (sub screen) in the other screen (normal screen) is
done by using sub screens.  
The below functions are not possible in the sub screens.

GUI status cannot be set to the sub screen.


OKCODE is not applicable to the sub screen.
Sub screen cannot call another screen.
It cannot contain AT EXIT-COMMAND. 
MULTIPLE SUB SCREENS

You can call multiple sub screens in the same area and is done dynamically during
runtime by using variable screen number.
 At any given point of time, only one sub screen can be called in the sub screen area. 

F4 help

You can call dialog modules in the POV event using the event keyword PROCESS ON
VALUE-REQUEST.

PROCESS ON VALUE-REQUEST.
...
  FIELD <f> MODULE <mod>.
...
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 4/10
12/1/2017 SAP ABAP Dialog Programming
F4IF_FIELD_VALUE_REQUEST

F4IF_INT_TABLE_VALUE_REQUEST

There are also two function modules - DYNP_VALUES_READ and


DYNP_VALUES_UPDATE - that can read the values of screen elds and return values to
them during the POV event. 

eld mandatory/obligatory

We can assign the mandatory options the screen input leds.

Radio buttons

Special input/output elds that are combined into groups. Within a radio button group,
only a single button can be selected at any one time. When the user selects one
button, all of the others are automatically deselected. Radio button elements can be
linked with function codes.

Creation of Variants

We can create selection screen variant for module pool programs. Module
programming can be used with Selection Screens and similar to the report
programming, variants can be saved and loaded.

Context Menu

 The Use of Context menu in Screen  ,is adding Right click menu options in  screen
Through Screen painter context-speci c menus can be de ned on dynpros for any of
the following screen elements:

Input/output elds
Text elds
Table controls
Group boxes
Subscreens

Wizard creation

Wizard is a tool that guides a user to do a certain task in SAP step by step. 

Step-loops

Step-loops in Module Pool Programming

 Step loops are objects for screen table display that are added to a screen in the
Screen Painter. They are preferred in cases of Radio-frequency applications where ALV
displays or table controls pose a hindrance with respect to small displays and
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 5/10
12/1/2017 SAP ABAP Dialog Programming

navigational issues.

Fixed Step-loops
In case of Fixed step-loops, the number of lines of records would be xed as when
designed. You can increase the number of records at run time. Although the number of
records can be decreased as per programming logic if number of records in table to be
displayed are less than xed number.
Variable Step-loops
In case of variable step-loops, at run time we can increase the number of repetitive
blocks depending on the size of the screen.

Select-options 

It is possible in Module Pool program to create select-options as in the report


programs.
Selection-screen can be de ned as sub screen and can be applied in the sub screen
area of module pool program.  

Dynamically editable cells 

We can make a speci c cell as dynamically editable in a table control.

Table Control

We can display the data in the table format using table control which provides us with
the below functions:

Scroll through the table vertically and horizontally


Re-size the width of a column
Scroll within a eld .
Select table rows or columns
Re-order the sequence of columns
Save the current display settings for future use

automatic table resizing (vertical and horizontal) when the user resizes the window
separator lines between rows and between columns (vertical and horizontal)

Insertion
Deletion
Scrolling
First
Last
Next
Previous
Select
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 6/10
12/1/2017 SAP ABAP Dialog Programming

Select all
Deselect
Deselect all  

Splitter Controls and Graphs

Sample code for creating a splitter screen and graph.


The screen is divided into two by splitter control and can be resized
Two graphs are drawn on the two splitter containers.
The sample code also describes creating graphs in ABAP.

 images 

We can Upload picture into SAP using the transaction SE78. 

Tabstrips

Areas on the screen in which you can switch between various pages.

Checkbox

We would design a screen with an input eld for customer number and three check
boxes for Name, City and Address. Upon entering the customer number and selecting
any of the check boxes, the corresponding data should be displayed

Logo 

We can attach logos on the screens.

De ning a Range

We can create renge option in module pool Program.

Dynamic Button Text

 We can display the button with different text after the click or some action.

   Module Pool Programming Interview Questions


   Creating Structure Tutorial in SAP ABAP
   Creating Domain Tutorial in SAP ABAP
   Creating Type Group Tutorial in SAP ABAP
   Help View Tutorial in SAP ABAP
   Secondary Index Tutorial in SAP ABAP
   Copy elds from one table to another Table in SAP ABAP
   Creating Transparent Table Tutorial in SAP ABAP
   SAP ABAP Cluster Table Tutorial
    Pooled Table Tutorial
    SAP Table Technical Settings
http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 7/10
12/1/2017 SAP ABAP Dialog Programming

    Foreign Key in ABAP Data Dictionary


    Table Buffering in SAP ABAP
     What is Database Table in SAP ABAP
     SAP SE16 Table List
     SAP ABAP Guide Tutorials

RELATED POSTS:

Use Of Field How To Disable SAP ABAP Full Form How To Check RFC
Symbols In SAP Icons In SAP ALV Connection Using
ABAP Pr... Too... F...

Related Posts Widget


Dialog Programming SAP ABAP

No comments yet

Add a comment as sobhan koneru

http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 8/10
12/1/2017 SAP ABAP Dialog Programming

Popular ABAP Tutorials

ALV Reports Interview Questions


April 12, 2017

SAP ABAP ALV Reports Interview Questions and Answers for Experienced  Here, i am
sharing very import real time oriented questions which are faced at several interviews
on ALV Reports to help for freshers and experienced SAP ABAP consultants with …

KEEP READING

Sample ABAP Programming Examples for Practice


July 16, 2017

Sample ABAP Programming Examples for Practice Are you beginner to ABAP
Language ,you're looking for example programs for practice .Here i collected some
sample programs from various objects in ABAP useful for beginners to improve …

KEEP READING

SAP ABAP Smartforms Interview Questions and Answers


April 13, 2017

SAP ABAP Smartforms Interview Questions and Answers

What is smartform? Smart Forms are printing forms used to print Invoice and …

KEEP READING

SAP ABAP Data Dictionary Real Time Interview Questions and


Aanswers
April 11, 2017

SAP ABAP Data Dictionary Real Time Interview Questions and Answers
These interview Questions from the SAP ABAP Data Dictionary are faced at the
different companies in the several interviews which are useful for real time …

KEEP READING

BADI Interview Questions in SAP


April 13, 2017

BADI Interview Questions in SAP A BAdI is an object-oriented enhancement option


http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 9/10
12/1/2017 SAP ABAP Dialog Programming
BADI Interview Questions in SAP A BAdI is an object oriented enhancement option,
which makes it the most sophisticated enhancement type. The main characteristic of
a BAdI is that it provides a mechanism to change the functionality of a well-de ned …

KEEP READING

Like on Facebook

SAP ABAP and WebD…


304 likes

Liked Share

You and 1 other friend likes this

Powered by Blogger

Theme images by Michael Elkan

Labels

Monthly Updates

Report Abuse

Donate to Me
Donate with PayPal

Privacy Policy

http://www.sapabapwebdynprotutorials.com/2017/03/sap-abap-dialog-programming.html 10/10

Das könnte Ihnen auch gefallen