0% found this document useful (0 votes)
3 views

Chapter 01_Introduction to Online Programming

The document provides an introduction to Online Programming in ABAP, outlining the objectives, types of ABAP programs, and the components involved in developing online programs. It emphasizes the use of the Object Navigator for creating online programs and details the roles of the Screen Painter, program components, and work areas. Additionally, it includes a demonstration and practice exercises for creating an online program that displays employee data.

Uploaded by

Aniruddha_Ghosh
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Chapter 01_Introduction to Online Programming

The document provides an introduction to Online Programming in ABAP, outlining the objectives, types of ABAP programs, and the components involved in developing online programs. It emphasizes the use of the Object Navigator for creating online programs and details the roles of the Screen Painter, program components, and work areas. Additionally, it includes a demonstration and practice exercises for creating an online program that displays employee data.

Uploaded by

Aniruddha_Ghosh
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 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

2 Introduction to Online Programming | Dec-2008 © 2005 IBM Corporation


IBM Global Services

ABAP Program Types

Report Programs (produce Online Programs


lists ) (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)

3 Introduction to Online Programming | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Developing Online Programs

Screen Painter SE51 ABAP Editor SE38

Object Navigator SE80

Menu Painter SE41


ABAP Dictionary SE11

4 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

5 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
Text Fields
Fields
1 2 I/O Template

Radio Buttons
5 Frame

3 7
Tabstrip Controls
4
Check Boxes

6 Push Button

6 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)

PAI Modules
(called after the user has invoked a
Form Include function code or pressed the ‘Enter’
(Subroutines) key)

7 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. ** INCLUDE MZAVGI01

MODULE CHECK. MODULE CHECK INPUT.


MODULE SELECT. ENDMODULE.

** SCREEN 9001 ** MODULE SELECT INPUT.


PROCESS BEFORE OUTPUT. ENDMODULE.

PROCESS AFTER INPUT. MODULE UPDATE INPUT.


MODULE UPDATE. ENDMODULE.

8 Introduction to Online Programming | 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.

PBO
Screen Work Area
Program Work Area

name DATA
Aaron name(10).
Aaron
Transport occurs
if the field names
phone are identical DATA num(12).
215-387-3232

city DATA city(20).


Philadelphia Philadelphia
PAI

9 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 program’s 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.

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

You might also like