Вы находитесь на странице: 1из 13

IBM Global Services

Introduction to Online Programming

Introduction to Online Programming |

Dec-2008

2005 IBM Corporation

IBM Global Services

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

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

ABAP Program Types

Report Programs (produce


lists )

Online Programs
(do not produce lists..are a collection of
screens)

Conventional Report
(do not allow interaction
by the user)

Interactive Report
(allow interaction by the
user)

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

Developing Online Programs


ABAP Editor SE38

Screen Painter SE51


Object Navigator SE80

Menu Painter SE41

ABAP Dictionary SE11

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

Screen Components
The Screen Painter is used to maintain all components
of a screen

Screen Painter
Screen Attributes
Screen Layout
Field Attributes
Flow Logic

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

Screen Layout
Some of the elements that can be painted on a screen in the Fullscreen Editor.
Text
Fields
Text

Fields
1

I/O Template

Radio Buttons

Frame

7
Tabstrip Controls

4
Check Boxes

6
6

Push Button

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

ABAP Program Components

ABAP

Top Include (Global


data declaration)

PBO Modules
(Called before the screen is
displayed)

Form Include
(Subroutines)

PAI Modules
(called after the user has invoked a
function code or pressed the Enter
key)

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

Online Program Processing Control


During the execution of an Online program, control is constantly switching between
the DYNPRO and ABAP processors
ABAP PROCESSOR

ABAP PROCESSOR

** INCLUDE MZAVGO01

** SCREEN 9000 **

MODULE CLEAR OUTPUT.

PROCESS BEFORE OUTPUT.

ENDMODULE.

MODULE CLEAR.
PROCESS AFTER INPUT.
MODULE CHECK.
MODULE SELECT.

MODULE CHECK INPUT.


ENDMODULE.

** SCREEN 9001 **

MODULE SELECT INPUT.

PROCESS BEFORE OUTPUT.

ENDMODULE.

PROCESS AFTER INPUT.

MODULE UPDATE INPUT.

MODULE UPDATE.

** INCLUDE MZAVGI01

Introduction to Online Programming

ENDMODULE.

Dec-2008

2005 IBM Corporation

IBM Global Services

Online Program Work Areas


An Online program consists of two distinct work areas the screen work area and
the program (module pool) work area.

Screen Work Area


name
Aaron
phone
215-387-3232

PBO
Program Work Area
DATA
Transport occurs
if the field names
are identical

city
Philadelphia

Aaron
name(10).
DATA num(12).

DATA city(20).
Philadelphia
PAI

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

10

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

11

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

Summary
You should always use the Object Navigator to create online programs
because the system will automatically maintain an online programs subobjects 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.

12

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

IBM Global Services

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 ?

13

Introduction to Online Programming

Dec-2008

2005 IBM Corporation

Вам также может понравиться