Professional Documents
Culture Documents
Chapter 10 - Dynamic Screen Sequence
Chapter 10 - Dynamic Screen Sequence
Dec-2008
Objectives
The participants will be able to:
Know about the next screen attribute for a screen.
Understand the functioning of the following screen navigation commands:
LEAVE SCREEN
SET SCREEN
LEAVE TO SCREEN
CALL SCREEN
Dec-2008
Overview
Exit
Edit
Loop
Academy Awards
Year
1994
Category
PIC
Exit
Update
Academy Awards
1994
Year
Category
PIC
Winner
Forrest Gump
Notes
Critic
Enter Name
Dec-2008
** PAI Modules **
MODULE ONE INPUT.
...
LEAVE SCREEN.
Screen 9000
...
ENDMODULE.
MODULE INITIALIZE.
...
ENDMODULE.
Dec-2008
Screen 9000
PROCESS AFTER INPUT.
FIELD YMOVIE-AAYEAR
ENDMODULE.
VALUES (BETWEEN 1927 AND 1996).
CHAIN.
FIELD: YMOVIE-AAYEAR,
YMOVIE-CATEGORY.
MODULE SELECT_LISTING.
ENDCHAIN.
Dec-2008
Dec-2008
Exit
Update
Titlebar
Academy Awards
Year
1994
Category
PIC
Winner
Forrest Gump
Notes
Critic
Enter Name
Dec-2008
ENDMODULE.
Dec-2008
Demonstration
Demonstration of screen navigation commands in a sample online program.
Dec-2008
Practice
Demonstration of screen navigation commands in a sample online program.
10
Dec-2008
Summary
The screen sequence of an online program is determined by Next Screen
pointers.
When the system encounters the LEAVE SCREEN ABAP statement, it
immediately terminates the screens PAI event and goes to the PBO event of the
screen specified in the Next Screen attribute.
When the system encounters the SET SCREEN <screen #> ABAP statement, it
temporarily overrides the Next Screen attribute with this <screen #> and the PAI
processing continues. After all PAI modules are executed, the system goes to the
PBO event of <screen #>.
When the system encounters the LEAVE TO SCREEN <screen #> ABAP
statement, it terminates the screens PAI event and immediately goes to the PBO
of <screen #>.
The LEAVE TO SCREEN <screen #> statement performs the functionality of two
statements: SET SCREEN <screen #> and LEAVE SCREEN.
11
Dec-2008
Summary (Contd.)
When the system encounters the CALL SCREEN <screen #> ABAP statement,
it temporarily suspends the current screens PAI processing and immediately goes
to the PBO event of <screen #>. When control returns back to the calling
screen, its PAI processing will resume.
After you have called another screen, you need to code a way back to the
calling screen. Using screen number zero will accomplish this task.
12
Dec-2008
Questions
Screen 9100
Screen 9100
Screen Attributes
Screen Attributes
Short Description
Short Description
Screen Type
Screen Type
Next screen
13
9100
Next screen
Dec-2008