Академический Документы
Профессиональный Документы
Культура Документы
Dec-2008
Objectives
The participants will be able to:
Default field values with the following methods:
PBO module
Parameter ids
Hold data
Dec-2008
Overview
In this chapter, we will learn how to set default field values upon entering a screen
and how to set default cursor position on screen fields.
Academy Awards
Execute
transaction
Year
1994
Category
PIC
Default
Values
Academy Awards
Year
1994
Category
PIC
Cursor
Positioning
Winner
Forrest Gump
Notes
Dec-2008
Method #1
Method #2
Method #3
Dec-2008
PBO Module
Screen 9000
PROCESS BEFORE OUTPUT.
MODULE INITIALIZE.
PBO Module
ENDMODULE.
Academy Awards
Execute
transaction
Year
1994
Category
PIC
Dec-2008
Parameter IDs
Parameter ID Memory
Parameter
ID YYR
YYR = <value>
YCT = <value>
Parameter
ID YCT
specific
Dec-2008
SET/GET PARAMETER ID
ABAP Statement
OR
SPA/GPA
Field Attributes
Dec-2008
Academy Awards
Year
1994
Category
PIC
ENDMODULE.
GET
SET
YYR = 1994
YMOVIE-CATEGORY = PIC.
YCT = PIC
Parameter ID Memory
Dec-2008
Notice the
parameter
ID name
Dec-2008
Hold Data
System > User profile > Hold data
Screen Attributes
menu path
Academy Awards
Year
1994
Category
PIC
Short Description
Screen Type
Hold Data
If the user selects the System > User profile > Hold data menu path on a screen
and the screen has been set up for Hold data in the screen attributes, the values
on the screen will be saved by the system for the next time the user comes to the
screen during the current logon.
10
Dec-2008
Cursor Position
Academy Awards
11
Year
1994
Category
PIC
Winner
Forrest Gump
Notes
Dec-2008
** PBO Module **
OR
Screen Type
Cursor position
YMOVIE-NOTES
ENDMODULE.
Academy Awards
12
Year
1994
Category
PIC
Winner
Forrest Gump
Notes
Dec-2008
Demonstration
Setting default values for fields in a screen.
13
Dec-2008
Practice
Setting default values for fields in a screen.
14
Dec-2008
Summary
You can set default values for screen fields using three methods:
In a PBO module
Assign values to screen fields using Parameter IDs for ABAP Dictionary fields
Use Hold Data function for the screen.
By default, the cursor will be positioned in the first field open for input on a screen.
You can change this position two ways:
Set the cursor position in the Screen Attributes
Use the SET CURSOR FIELD ABAP statement in a PBO module.
15
Dec-2008
Questions
What are the different methods for setting default values in a screen ?
What are Parameter IDs ?
Where is the cursor positioned in the screen by default ?
16
Dec-2008