chapter 12 sub-screens

Post on 03-Jun-2018

221 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 1/13

IBM Global Services

© 2005 IBM CorporationSubscreens | 6.12 March-2005

Subscreens

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 2/13

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 3/13

IBM Global Services

© 2005 IBM Corporation3 March-2005Subscreens | 6.12

Subscreens are displayed on another

screenCustomer 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

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 4/13

IBM Global Services

© 2005 IBM Corporation4 March-2005Subscreens | 6.12

“Main” Screen 

Subscreen

Area #1

Subscreen

Area #2

Subscreen

Area #3

Screen Painter

“Main” Screen 

Layout (subscreen areas)

Flow Logic

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 5/13

IBM Global Services

© 2005 IBM Corporation5 March-2005Subscreens | 6.12

Subscreen Area in “Main” Screen 

This subscreen area

must be given a name

up to 10 characters

long (e.g. “SUB1”) 

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 6/13

IBM Global Services

© 2005 IBM Corporation6 March-2005Subscreens | 6.12

“CALL SUBSCREEN” in PBO 

Customer11

Name Tools International

Subscreen AreaSUB1

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 thesubscreen to display in the specified

subscreen area.

Address Information

(Subscreen)

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 7/13

IBM Global Services

© 2005 IBM Corporation7 March-2005Subscreens | 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 

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 8/13

IBM Global Services

© 2005 IBM Corporation8 March-2005Subscreens | 6.12

Screen Attributes

Screen Type = Subscreen

Address Information

(Subscreen 9020)

Bank Information

(Subscreen 9030)

Screen Painter

Creating a Subscreen

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 9/13

IBM Global Services

© 2005 IBM Corporation9 March-2005Subscreens | 6.12

Subscreen Restrictions

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 10/13

IBM Global Services

© 2005 IBM Corporation10 March-2005Subscreens | 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.

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 11/13

IBM Global Services

© 2005 IBM Corporation11 March-2005Subscreens | 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.

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 12/13

IBM Global Services

© 2005 IBM Corporation12 March-2005Subscreens | 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” screen‟s 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 subscreen‟s PBO or PAImodules (instead, they must be used in the “main” screen): SET PF-STATUS,

SET TITLEBAR, SET SCREEN, LEAVE TO SCREEN,CALL SCREEN.

8/12/2019 Chapter 12 Sub-screens

http://slidepdf.com/reader/full/chapter-12-sub-screens 13/13

IBM Global Services

© 2005 IBM Corporation13 March-2005Subscreens | 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 ? 

top related