Sie sind auf Seite 1von 13

IBM Global Services

2005 IBM Corporation Introduction to Online Programming |


6.01
March-2005
Introduction to Online Programming
IBM Global Services
2005 IBM Corporation 2 March-2005 Introduction to Online Programming | 6.01
Objectives
The participants will be able to:
Recognize the different types of ABAP programs.
Recognize the elements of an Online program:
Screen components
Screen layout
ABAP program components
Processing control
Program work areas
Screen work areas
IBM Global Services
2005 IBM Corporation 3 March-2005 Introduction to Online Programming | 6.01
ABAP Program Types
Report Programs (produce
lists )
Conventional Report
(do not allow interaction
by the user)
Interactive Report
(allow interaction by the
user)
Online Programs
(do not produce lists..are a collection of
screens)
IBM Global Services
2005 IBM Corporation 4 March-2005 Introduction to Online Programming | 6.01
Developing Online Programs
Object Navigator SE80
Screen Painter SE51
ABAP Editor SE38
ABAP Dictionary SE11
Menu Painter SE41
IBM Global Services
2005 IBM Corporation 5 March-2005 Introduction to Online Programming | 6.01
Screen Components
Screen Painter
Screen Attributes
Screen Layout
Field Attributes
Flow Logic
The Screen Painter is used to maintain all components
of a screen
IBM Global Services
2005 IBM Corporation 6 March-2005 Introduction to Online Programming | 6.01
Screen Layout
1 2
3
4
5
6
7
Some of the elements that can be painted on a screen in the Fullscreen Editor.
Text Fields
Radio Buttons
Check Boxes
Frame
Push Button
Tabstrip Controls
Text Fields
I/O Template
IBM Global Services
2005 IBM Corporation 7 March-2005 Introduction to Online Programming | 6.01
ABAP Program Components
Top Include (Global
data declaration)
PBO Modules
(Called before the screen is
displayed)
PAI Modules
(called after the user has invoked a
function code or pressed the Enter
key)
ABAP
Form Include
(Subroutines)
IBM Global Services
2005 IBM Corporation 8 March-2005 Introduction to Online Programming | 6.01
Online Program Processing Control

During the execution of an Online program, control is constantly switching between
the DYNPRO and ABAP processors
** INCLUDE MZAVGI01
MODULE CHECK INPUT.
ENDMODULE.

MODULE SELECT INPUT.
ENDMODULE.

MODULE UPDATE INPUT.
ENDMODULE.
** INCLUDE MZAVGO01
MODULE CLEAR OUTPUT.
ENDMODULE.
ABAP PROCESSOR
** SCREEN 9000 **
PROCESS BEFORE OUTPUT.
MODULE CLEAR.

PROCESS AFTER INPUT.
MODULE CHECK.
MODULE SELECT.
** SCREEN 9001 **
PROCESS BEFORE OUTPUT.

PROCESS AFTER INPUT.
MODULE UPDATE.
ABAP PROCESSOR
IBM Global Services
2005 IBM Corporation 9 March-2005 Introduction to Online Programming | 6.01
Online Program Work Areas
Screen Work Area
Program Work Area
PBO
PAI
Transport occurs
if the field names
are identical
name
Aaron
phone
215-387-3232
city
Philadelphia
DATA name(10).
Aaron
DATA num(12).
DATA city(20).
Philadelphia
An Online program consists of two distinct work areas the screen work area and
the program (module pool) work area.

IBM Global Services
2005 IBM Corporation 10 March-2005 Introduction to Online Programming | 6.01
Demonstration
Creation of an online program through transaction SE80.
Creating a screen for that program to display data for an employee of an
organization ( name, employee number , designation, etc )
Attaching a transaction code to the Online program.
Displaying the screen with employee data, on execution of the transaction
code.
IBM Global Services
2005 IBM Corporation 11 March-2005 Introduction to Online Programming | 6.01
Practice
Creation of an online program through transaction SE80.
Creating a screen for that program to display data for an employee of an
organization ( name, employee number , designation, etc )
Attaching a transaction code to the Online program.
Displaying the screen with employee data, on execution of the transaction
code.
IBM Global Services
2005 IBM Corporation 12 March-2005 Introduction to Online Programming | 6.01
Summary
You should always use the Object Navigator to create online programs
because the system will automatically maintain an online programs sub-
objects and you will be able to see the hierarchy list of these sub-objects.
In ABAP, basically there are two different types of programs: Report
programs and Online programs.
The Screen Painter is used to maintain all components of a screen: screen
attributes, screen layout, field attributes, and Flow Logic.
The Fullscreen Editor supports two modes: Graphical and alphanumeric.
An online program consists not only of the screens and their Flow Logic, but
also ABAP program components: Global data, PBO modules, PAI modules,
and subroutines.
The run-time environment of an online program is made up of two
components: dynpro (online) processor and ABAP processor.
An online program consists of two distinct work areas the screen work area
and the program (module pool) work area.
IBM Global Services
2005 IBM Corporation 13 March-2005 Introduction to Online Programming | 6.01
Questions
What are the different elements of an online program ?
What is the difference between a PBO event and a PAI event in an online
program ?
What are the two components of the run-time environment of an online program ?