Sei sulla pagina 1di 13

IBM Global Services

2005 IBM Corporation Automatic Screen Field Checks |


6.05
March-2005
Automatic Screen Field Checks
IBM Global Services
2005 IBM Corporation 2 March-2005 Automatic Screen Field Checks | 6.05
Objectives
The participants will be able to:
Recognize which Automatic Screen Checks occur on all fields vs. dictionary fields.
Understand the timing of automatic checks.
Understand the process of required field check, field format check, foreign key check
and valid value check.
IBM Global Services
2005 IBM Corporation 3 March-2005 Automatic Screen Field Checks | 6.05
Automatic Checks
Values in all
input/output
templates are
checked for
Values in
input/output
templates painted
from the ABAP
Dictionary are
checked for
Required Field Entered?
Proper Format?
Foreign Key Value?
Valid Value?
IBM Global Services
2005 IBM Corporation 4 March-2005 Automatic Screen Field Checks | 6.05
Timing of Automatic Checks
SCREEN
PROCESS BEFORE OUTPUT.

PROCESS AFTER INPUT.
MODULE ONE.
MODULE TWO.
YES NO
Module ONE
executed.
Module TWO
executed.
Go to PBO of
next screen
Data transport from
screen fields to
program fields with the
same names.
Automatic
Screen Field
Checks OK?
Enter
As soon as the user triggers a screens PAI event, the system performs its
automatic checks.
IBM Global Services
2005 IBM Corporation 5 March-2005 Automatic Screen Field Checks | 6.05
Required Field Check
Fields can be marked as
required two ways: (1) use a
question mark ? as the first
character of an input/output
template or (2) check on the
field attribute for required entry.
If a required field is not
entered, the system will
display the error message:
Make an entry in all required
fields.
Enter
IBM Global Services
2005 IBM Corporation 6 March-2005 Automatic Screen Field Checks | 6.05
Field Format Check
The AAYEAR field in the
YMOVIE table has the NUMC
(numeric character) data type.
The system will automatically
check that the user has entered
all numbers in this field.
If a field format is incorrect,
the system will display an
appropriate error message.
Enter
IBM Global Services
2005 IBM Corporation 7 March-2005 Automatic Screen Field Checks | 6.05
Foreign Key Check
Address Information
Customer # C32
E: Entry C32 does not exist (please check your entry)
Address Information
Customer # C32
This customer number field
painted from the ABAP
Dictionary has a foreign key
relationship maintained.
Because of this relationship,
you will see a drop-down arrow
to get a list of possible values
(F4).
If the value entered does not exist in the foreign key (check) table, the system
will display the error message: Entry <x> does not exist (check your entry).
Enter
IBM Global Services
2005 IBM Corporation 8 March-2005 Automatic Screen Field Checks | 6.05
Valid Value Check
Academy Awards
Year
Category
2005
PI
E: Please enter a valid value
Academy Awards
Year
Category
2005
PI
The CATEGORY field in the
YMOVIE table points to a
domain with a set of valid
values. Because of this set of
valid values, you will see a
drop-down arrow to get a list of
possible values (F4).
If a valid value is not
entered, the system will
display the error message:
Please enter a valid value.
Enter
IBM Global Services
2005 IBM Corporation 9 March-2005 Automatic Screen Field Checks | 6.05
Demonstration
Creation of an online program which displays the screen ( referring to the
YMOVIE table ) created in the previous chapter.
Demonstration of the various automatic screen checks in this screen.
IBM Global Services
2005 IBM Corporation 10 March-2005 Automatic Screen Field Checks | 6.05
Practice
Creation of an online program which displays the screen ( referring to the
YMOVIE table ) created in the previous chapter.
Demonstration of the various automatic screen checks in this screen.
IBM Global Services
2005 IBM Corporation 11 March-2005 Automatic Screen Field Checks | 6.05
Summary
The values entered into input/output templates are automatically checked by the
system.
As soon as the user triggers a screens PAI event, the system performs its
automatic checks.
If a field is marked as required, there will be a question mark in the input/output
template and the system will automatically check that the user entered a value in
the field.
When you paint input/output templates on the screen, the fields have a
corresponding data type (format) associated with them. If an incorrect format is
entered, the system will display an appropriate error message.
IBM Global Services
2005 IBM Corporation 12 March-2005 Automatic Screen Field Checks | 6.05
Summary (Contd.)
If a foreign key relationship is maintained for a field, the system will automatically
check to see if the value entered exists in the foreign key (check) table.
If valid values are maintained at the domain level for a field, the system will
automatically check to see if the value entered is one of the valid values.




IBM Global Services
2005 IBM Corporation 13 March-2005 Automatic Screen Field Checks | 6.05
Questions
What are the different automatic screen checks available in a screen ?
Does Foreign Key checks happen automatically for screen-fields referring to a
check table ?
When does the system performs its automatic checks ?

Potrebbero piacerti anche