You are on page 1of 13

IBM Global Services

2005 IBM Corporation Subscreens | 6.12 March-2005


Subscreens
IBM Global Services
2005 IBM Corporation 2 March-2005 Subscreens | 6.12
Objectives
The participants will be able to:
Create a subscreen.
Create a subscreen area.
Call a subscreen onto a subscreen area.
Recognize a subscreens restrictions.
IBM Global Services
2005 IBM Corporation 3 March-2005 Subscreens | 6.12
Subscreens are displayed on another
screen
Customer 11
Bank Information
Address Information
Customer 11
Name
Tools International
Subscreen Area
(on Main Screen 9010)


Address Information
(Subscreen 9020)


Bank Information
(Subscreen 9030)
Subscreens
IBM Global Services
2005 IBM Corporation 4 March-2005 Subscreens | 6.12
Main Screen
Subscreen
Area #1
Subscreen
Area #2
Subscreen
Area #3
Screen Painter
Main Screen
Layout (subscreen areas)
Flow Logic
IBM Global Services
2005 IBM Corporation 5 March-2005 Subscreens | 6.12
Subscreen Area in Main Screen
This subscreen area
must be given a name
up to 10 characters
long (e.g. SUB1)
IBM Global Services
2005 IBM Corporation 6 March-2005 Subscreens | 6.12
CALL SUBSCREEN in PBO
Customer 11
Name
Tools International
Subscreen Area
SUB1

Bank Information
(Subscreen)

PROCESS BEFORE OUTPUT. for main screen 9010
* CALL SUBSCREEN <area> INCLUDING <program> <subscreen #>.
CALL SUBSCREEN SUB1 INCLUDING SAPMZSUB SCREEN_NUM.
This SCREEN_NUM variable
contains the number of the
subscreen to display in the specified
subscreen area.

Address Information
(Subscreen)

IBM Global Services
2005 IBM Corporation 7 March-2005 Subscreens | 6.12
Customer 11
Name

Tools International



Address Information
(Subscreen 9020)

PROCESS AFTER INPUT. for main screen 9010
* CALL SUBSCREEN <area>.
CALL SUBSCREEN SUB1.

To invoke the PAI event of the
actual subscreen, the
CALL SUBSCREEN statement
must be used in
the PAI event of the main screen.
CALL SUBSCREEN in PAI
IBM Global Services
2005 IBM Corporation 8 March-2005 Subscreens | 6.12
Screen Attributes
Screen Type = Subscreen


Address Information
(Subscreen 9020)


Bank Information
(Subscreen 9030)
Screen Painter
Creating a Subscreen
IBM Global Services
2005 IBM Corporation 9 March-2005 Subscreens | 6.12
Subscreen Restrictions
IBM Global Services
2005 IBM Corporation 10 March-2005 Subscreens | 6.12
Demonstration
Creating an online program to display customer information on the main screen.
Creating two sub-screens : one for displaying address information and the other
for displaying bank information .
Showing that the appropriate sub-screen is displayed on clicking the appropriate
radio-button on the main screen.
IBM Global Services
2005 IBM Corporation 11 March-2005 Subscreens | 6.12
Practice
Creating an online program to display customer information on the main screen.
Creating two sub-screens : one for displaying address information and the other
for displaying bank information .
Showing that the appropriate sub-screen is displayed on clicking the appropriate
radio-button on the main screen.
IBM Global Services
2005 IBM Corporation 12 March-2005 Subscreens | 6.12
Summary
A subscreen is a screen that is displayed in a specified area of another screen
(the main screen). A subscreen cannot be displayed by itself.
To include a subscreen in a predefined area on the main screen, use the CALL
SUBSCREEN statement in the main screens PBO event.
If the subscreen contains any PAI code, use the CALL SUBSCREEN statement
in the PAI event of the main screen.
A subscreen is created just like any other screen of an online program. The only
difference is the screen type specified in the Screen Attributes section of the
Screen Painter. The screen type for a subscreen is appropriately called
Subscreen.
The following ABAP/4 statements cannot be used in a subscreens PBO or PAI
modules (instead, they must be used in the main screen): SET PF-STATUS,
SET TITLEBAR, SET SCREEN, LEAVE TO SCREEN,CALL SCREEN.
IBM Global Services
2005 IBM Corporation 13 March-2005 Subscreens | 6.12
Questions
What is a sub-screen in the context of online programming ?
Can the CALL SUBSCREEN statement be used in the PBO event ?

You might also like