You are on page 1of 13

IBM Global Services

Subscreens

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

Subscreens

11

Customer

Subscreens are displayed on another


screen

Address Information
Bank Information
11

Customer
Name

Tools International

Address Information
(Subscreen 9020)

Subscreen Area
(on Main Screen 9010)
Bank Information
(Subscreen 9030)

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

Main Screen

Main Screen

Screen Painter

Subscreen
Area #1

Subscreen

Subscreen

Area #2

Area #3

Subscreens |

Layout (subscreen areas)


Flow Logic

Dec-2008

2005 IBM Corporation

IBM Global Services

Subscreen Area in Main Screen


This subscreen area
must be given a name
up to 10 characters
long (e.g. SUB1)

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

CALL SUBSCREEN in PBO


PROCESS BEFORE OUTPUT.

for main screen 9010

* CALL SUBSCREEN <area> INCLUDING <program> <subscreen #>.


CALL SUBSCREEN SUB1 INCLUDING SAPMZSUB SCREEN_NUM.
This SCREEN_NUM variable
Customer
Name

11
Tools International

contains the number of the


subscreen to display in the specified
subscreen area.

Bank Information
Subscreen Area

(Subscreen)

SUB1
Address Information
(Subscreen)

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

CALL SUBSCREEN in PAI

11

Customer
Name

Tools International
To invoke the PAI event of the
actual subscreen, the
CALL SUBSCREEN statement
Address Information
(Subscreen 9020)

PROCESS AFTER INPUT.

must be used in
the PAI event of the main screen.

for main screen 9010

* CALL SUBSCREEN <area>.


CALL SUBSCREEN SUB1.

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

Creating a Subscreen

Address Information

Bank Information

(Subscreen 9020)

(Subscreen 9030)
Screen
Screen Painter
Painter

Screen Attributes
Screen Type = Subscreen

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

Subscreen Restrictions

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

10

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

11

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

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.

12

Subscreens |

Dec-2008

2005 IBM Corporation

IBM Global Services

Questions
What is a sub-screen in the context of online programming ?
Can the CALL SUBSCREEN statement be used in the PBO event ?

13

Subscreens |

Dec-2008

2005 IBM Corporation

You might also like