Escolar Documentos
Profissional Documentos
Cultura Documentos
Welcome
Course Title
IBM Global Business Services
(Optional client
logo can
be placed here)
Housekeeping
Breaks
Washrooms
Transportation / parking
No pagers or cell phones
Participation
Parking lot issues
Questions
Module objectives
At the completion of the module, the participants should be able to:
Create an Online program
Use the object navigator
Maintain the Screen attributes, Screen layout, Field attributes, Flow logic,
ABAP modules, and Global data
Recognize screen to program data transport
Execute an Online program
Module agenda
This module deals with the following topics:
Creating an Online program
Object Navigator
Online Program Components
Screen Attributes
Screen Layout
Field Attributes
Flow Logic
ABAP modules
Global data
Screen to Program Data Transport
Executing an Online Program
Overview
In this module, we will create a simple Online program. This program will calculate a
players scoring average.
Title
With TOP INCL.
should be checked.
Type MODULE
Go back to Repository
Browser, not source
code.
7
Application
Object Navigator
Main Program
** SAPMY220_PLAYER_AVG **
INCLUDE MY220_PLAYER_AVGTOP.
Top Include
** MY220_PLAYER_AVGTOP - Include Program **
PROGRAM SAPMY220_PLAYER_AVG.
Screen Attributes
For each screen you create, you must maintain the Screen Attributes in the Screen
Painter. There are two required fields in the Screen Attributes section.
Screen Painter
Screen Attributes
10
Short Description
Screen Type
Next Screen
Required
Required
Optional
Screen Layout
Screen Painter
Fullscreen Editor
Use an
underscore to
link words into
one text field.
11
Player_Average
Total_Points ______
Total_Games ______
Input / output
templates are
created with
underscores.
Online Programming Example
Field Attributes
Screen Painter
Element List
Field name,
not text
12
Field format
Online Programming Example
Flow Logic
The Flow Logic refers to the code behind the screens and it is maintained in the
Screen Painter. Each screen has its own Flow Logic which is divided into two main
events, PBO and PAI.
Screen Painter
Flow Logic
Screen 9000
Flow
Logic
Command
13
ABAP modules
Main Program
PBO Module
** SAPMYOP_PLAYER_AVG **
INCLUDE MYOP_PLAYER_AVGTOP.
** MYOP_PLAYER_AVGO01 - Include
Program **
INCLUDE MYOP_PLAYER_AVGO01.
INCLUDE MYOP_PLAYER_AVGI01.
14
Global data
Main Program
** SAPMYOP_PLAYER_AVG **
INCLUDE MYOP_PLAYER_AVGTOP.
INCLUDE MYOP_PLAYER_AVGO01.
INCLUDE MYOP_PLAYER_AVGI01.
Top Include
** MYOP_PLAYER_AVGTOP - Include Program **
PROGRAM SAPMYOP_PLAYER_AVG.
DATA:
POINTS TYPE I,
GAMES TYPE I,
AVERAGE TYPE P
DECIMALS 2.
15
16
Transaction Code
Transaction Text
Program Name
Initial Screen
Required
Required
Required
SAPMY220_PLAYER_AVG
17
9000
Demonstration / Practice
For creation of an Online program to display a players scoring average:
Two screens are required to be created for this program.
The first screen takes the total points and the number of games as input.
The scoring average is output in the next screen.
18
20
Screen 9001
MODULE INITIALISE.
MODULE CALCULATE.
MODULE CALCULATE.
We could have calculated the players average in the PBO of screen 9001.
Why is it better to do the calculation in the PAI of screen 9000 instead of the
PBO of screen 9001?
21
Module summary
Now that we have completed this module, we should be able to:
Create an Online program
Use the object navigator
Maintain the Screen attributes, Screen layout, Field attributes, Flow logic,
ABAP modules and Global data
Recognize screen to program data transport
Execute an Online program
22
Thank You
23