Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
BC430_EN_Col62_FV_Part_A4_-_ABAP_Dictionary.pdf
Скачиваний:
217
Добавлен:
21.05.2015
Размер:
21.37 Mб
Скачать

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

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]