Vous êtes sur la page 1sur 17

IBM Global Business Services

Welcome

Introduction to Online Programming

IBM Corporation 2013

Course Title
IBM Global Business Services

Module 1: Introduction to Online Programming

(Optional client
logo can
be placed here)

IBM Corporation 2013

IBM Global Business Services

Housekeeping

Breaks
Washrooms
Transportation / parking
No pagers or cell phones
Participation
Parking lot issues
Questions

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Module objectives
At the completion of the module, the participants should be able to:
Recognize the different types of ABAP programs
Recognize the elements of an Online program, like, Screen components,
Screen layout, ABAP program components, Processing control, Program
work areas, and Screen work areas

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Module agenda
The topics dealt in this module are:
ABAP program types
Developing Online programs
Screen components
Screen Layout
ABAP Program Components
Online Program Processing Control
Online Program Work Areas

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

ABAP program types


Report Programs (produce
lists)
Conventional Report
(do not allow interaction
by the user)

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

Interactive Report
(allow interaction by the
user)

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Developing Online programs


Screen Painter SE51

ABAP Editor SE38


Object Navigator SE80

ABAP Dictionary SE11

Introduction to Online Programming

Menu Painter SE41

IBM Corporation 2013

IBM Global Business 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

IBM Corporation 2013

IBM Global Business Services

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

I/O Template
5

Radio Buttons

Frame

7
Tabstrip Controls
4
Check Boxes
6

Push Button

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

ABAP Program Components

ABAP

Top Include (Global


data declaration)

PBO Modules
(called before the screen is
displayed)

Form Include
(Subroutines)

10

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

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business 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.

** INCLUDE MZAVGI01

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.
11

Introduction to Online Programming

ENDMODULE.

IBM Corporation 2013

IBM Global Business 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

Transport occurs
if the field names
are identical

city
Philadelphia

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

DATA city(20).
Philadelphia
PAI

12

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Demonstration / Practice
1. Create an Online program through transaction SE80.
2. Create a screen for that program to display data for an employee of an
organization (for example, name, employee number, designation, and so on).
3. Attach a transaction code to the Online program.
4. Display the screen with employee data, on execution of the transaction code.

13

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Summary of the lesson learnt so far


1. 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.
2. In ABAP, basically there are two different types of programs, Report
programs and Online programs.
3. The Screen Painter is used to maintain all components of a screen, Screen
Attributes, Screen Layout, Field Attributes, and Flow Logic.
4. The Fullscreen Editor supports two modes, Graphical and Alphanumeric.
5. 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.
6. The run-time environment of an Online program is made up of two
components, Dynpro (online) processor and ABAP processor.
7. An Online program consists of two distinct work areas, the Screen Work Area
and the Program (module pool) Work Area.

14

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Answer a few questions


1. What are the different elements of an Online program?
2. What is the difference between a PBO event and a PAI event in an Online
program?
3. What are the two components of the run-time environment of an Online
program?

15

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Module summary
Now that we have completed the module, we should be able to:
Recognize the different types of ABAP programs
Recognize the elements of an Online program, like, Screen components,
Screen layout, ABAP program components, Processing control, Program
work areas, and Screen work areas

16

Introduction to Online Programming

IBM Corporation 2013

IBM Global Business Services

Thank You

17

Introduction to Online Programming

IBM Corporation 2013

Vous aimerez peut-être aussi