
- •Icons in Body Text
- •Introduction to the Dictionary
- •Overview of the functions
- •Data objects in the ABAP Dictionary
- •Data types
- •Exercise 1: Basic Data Types
- •Exercise 2: Simple and Nested Structures
- •Exercise 4: Deep Structures
- •Tables
- •Summary
- •Exercise 5: Tables in the ABAP Dictionary
- •Pooled and cluster tables
- •Performance During Table Access
- •Improved Performance through Access per Index
- •Improving the Performance through Table Buffering
- •Exercise 6: Performance Aspects with Table Access
- •Task 1:
- •Input Checks
- •Input check via the technical domains
- •Object Dependencies
- •Activation and Where-Used List
- •Changes to Tables
- •Database Changes to Transparent Tables
- •Enhancement of SAP Standard Tables
- •Exercise 9: Changes to Database Tables
- •Views and Maintenance Views
- •Restricted or Enhanced Views on Database Tables
- •Exercise 11: Views
- •Creating Maintenance Views
- •Exercise 12: Maintenance Views
- •Search Helps
- •Input helps
- •Exercise 13: Search Helps
- •Table ZEMPLOY##
- •Table ZDEPMENT##
- •Table ZEMPLOY##
- •Table ZEMPLOY##
- •Table ZDEPMENT##
- •Table ZDEPMENT##
- •Check table T000
- •Check table SCARR
- •Check table ZDEPMENT##
- •Check table SCURX
- •Check table STRAVELAG
- •Check table ZDEPMENT##
- •Check table T002

BC430 |
Lesson: Consistency Through Input Checks |
2.Define the foreign key of the DepCode field in the ZDEPMENTT## table.
Note: The foreign keys for the Client and Carrier fields in the
ZDEPMENTT## table were already correctly defined by copying.
a)First of all, place the cursor on the Department code field in the table ZDEPMENTT##. Choose Goto → Foreign key.
Note: Since you are using the domain of field
ZDEPMENT##-Department code for field
ZDEPMENTT##-Department code, you can use value table
ZDEPMENT## for the foreign key definition.
b) Have the system make a proposal for the foreign key definition. Check the proposal. The following fields must be assigned:
Check table ZDEPMENT##
CkTabFld |
For. key table |
For. key fld |
|
|
|
MANDT |
ZDEPMENT## |
Client |
|
|
|
CARRID |
ZDEPMENT## |
Airline |
|
|
|
DEPARTMENT |
ZDEPMENT## |
Department code |
|
|
|
c) Enter a short text and determine the semantic attributes as follows:
Field |
Value |
Type of foreign key fields |
key fields of a text |
|
table |
|
|
Cardinality |
1:CN |
|
|
d) Save your foreign key.
Continued on next page
2006/Q2 |
© 2007 SAP AG. All rights reserved. |
127 |

Unit 4: Input Checks |
BC430 |
3.Define the foreign key of the Language field in the ZDEPMENTT## table.
Note: Since you are using domain SPRAS for field ZDEPMENTT##-Language, you can use value table T002 for the foreign key definition.
a) Place the cursor on field ZDEPMENTT##-Language. Choose Goto
→ Foreign key.
b) Have the system make a proposal for the foreign key definition. Check the proposal. The following fields must be assigned:
Check table T002
CkTabFld |
For. key table |
For. key fld |
SPRAS |
ZDEPMENTT## |
Language |
c) Enter a short text and determine the semantic attributes as follows:
Field |
Value |
|
|
Type of foreign key fields |
Key fields / candidates |
|
|
Cardinality |
1:CN |
|
|
d) Save your foreign key. e) Now activate the table.
128 |
© 2007 SAP AG. All rights reserved. |
2006/Q2 |

BC430 |
Lesson: Consistency Through Input Checks |
Lesson Summary
You should now be able to:
•Create and use fixed values
•Define what a foreign key is
•Apply the conditions for the field assignment of the foreign key
•Know the difference between the value table and the check table
•Create foreign key
2006/Q2 |
© 2007 SAP AG. All rights reserved. |
129 |

Unit Summary |
BC430 |
Unit Summary
You should now be able to:
•Create and use fixed values
•Define what a foreign key is
•Apply the conditions for the field assignment of the foreign key
•Know the difference between the value table and the check table
•Create foreign key
130 |
© 2007 SAP AG. All rights reserved. |
2006/Q2 |