Date post: | 03-Jun-2018 |
Category: |
Documents |
Upload: | raul-thomas |
View: | 219 times |
Download: | 0 times |
of 13
8/12/2019 Chapter 05_Automatic Screen Field Checks
1/13
IBM Global Services
2005 IBM CorporationAutomatic Screen Field Checks |6.05
March-2005
Automatic Screen Field Checks
8/12/2019 Chapter 05_Automatic Screen Field Checks
2/13
IBM Global Services
2005 IBM Corporation2 March-2005Automatic 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.
8/12/2019 Chapter 05_Automatic Screen Field Checks
3/13
IBM Global Services
2005 IBM Corporation3 March-2005Automatic Screen Field Checks | 6.05
Automatic Checks
Values in all
input/output
templates are
checked for
Values in
input/outputtemplates painted
from the ABAP
Dictionary are
checked for
Required Field Entered?
Proper Format?
Foreign Key Value?
Valid Value?
8/12/2019 Chapter 05_Automatic Screen Field Checks
4/13
IBM Global Services
2005 IBM Corporation4 March-2005Automatic Screen Field Checks | 6.05
Timing of Automatic Checks
SCREEN PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
MODULE ONE.
MODULE TWO.
YESNO
Module ONE
executed.
Module TWO
executed.Go to PBO of
next screen
Data transport from
screen fields to
program fields with thesame names.
Automatic
Screen Field
Checks OK?
Enter
As soon as the user triggers a screens PAI event, the system performs itsautomatic checks.
8/12/2019 Chapter 05_Automatic Screen Field Checks
5/13
IBM Global Services
2005 IBM Corporation5 March-2005Automatic 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
8/12/2019 Chapter 05_Automatic Screen Field Checks
6/13
IBM Global Services
2005 IBM Corporation6 March-2005Automatic 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
8/12/2019 Chapter 05_Automatic Screen Field Checks
7/13
IBM Global Services
2005 IBM Corporation7 March-2005Automatic 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 does not exist (check your entry).
Enter
8/12/2019 Chapter 05_Automatic Screen Field Checks
8/13
IBM Global Services
2005 IBM Corporation8 March-2005Automatic 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 adrop-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
8/12/2019 Chapter 05_Automatic Screen Field Checks
9/13
IBM Global Services
2005 IBM Corporation9 March-2005Automatic Screen Field Checks | 6.05
Demonstration
Creation of an online program which displays the screen ( referring to theYMOVIE table ) created in the previous chapter.
Demonstration of the various automatic screen checks in this screen.
8/12/2019 Chapter 05_Automatic Screen Field Checks
10/13
IBM Global Services
2005 IBM Corporation10 March-2005Automatic Screen Field Checks | 6.05
Practice
Creation of an online program which displays the screen ( referring to theYMOVIE table ) created in the previous chapter.
Demonstration of the various automatic screen checks in this screen.
8/12/2019 Chapter 05_Automatic Screen Field Checks
11/13
IBM Global Services
2005 IBM Corporation11 March-2005Automatic Screen Field Checks | 6.05
Summary
The values entered into input/output templates are automatically checked by thesystem.
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 inthe 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.
8/12/2019 Chapter 05_Automatic Screen Field Checks
12/13
IBM Global Services
2005 IBM Corporation12 March-2005Automatic Screen Field Checks | 6.05
Summary (Contd.)
If a foreign key relationship is maintained for a field, the system will automaticallycheck 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.
8/12/2019 Chapter 05_Automatic Screen Field Checks
13/13
IBM Global Services
2005 IBM Corporation13 March-2005Automatic 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 ?