You are on page 1of 3

Exercise 01.

01 - ABAP Dictionary
Exercise 01.01 - ABAP Dictionary
Note: USERID indicates your Intranet user-id. Truncate the intranet user-id if required.

1) Create the following data elements and domains:


a) YUSERID_CARRID - Carrier id - CHAR3
b) YUSERID_EMPNO - Employee number - NUMC10
c) YUSERID_FNAME - Employee’s first name - CHAR20
d) YUSERID_LNAME - Employee’s last name - CHAR20
e) YUSERID_WORKYRS - Employee's years of service - NUMC2
f) YUSERID_EMPFUNC - Employee function - CHAR4
g) YUSERID_DATE - Joining date - DATS
h) YUSERID_AREA - Area - CHAR1
i) YUSERID_AMT - Salary amount - CURR10
j) YUSERID_CURY - Currency - CUKY5
k) YUSERID_DESC - Description - CHAR25

Note: Use the above data elements and domains wherever applicable in the following exercise:

2)
i) Create a transparent table YUSERID_FUNC with the following fields:
a) Airline carrier id - Primary key
b) Employee function - Primary key
c) Area

ii) Design the table such that the field “Airline carrier id” can take only the following values:
a) AA
b) AI
c) LH
d) UA

iii) Document the fields Employee function, area.

3) Create some entries in the table YUSERID_FUNC and display them.

4) Create a transparent table YUSERID_EMP with the following fields:


a) Airline carrier id - Primary key
b) Employee number - Primary key
c) Employee first name
d) Employee last name
e) Employee’s years of service
f) Employee function
g) Joining date - Use direct type entry for this field.

ii) Maintain foreign key relationships for fields “Airline carrier id” and “Employee function”
using transparent table YUSERID_FUNC.

iii) Design the table such that the field “Employee number” can take values between 100 and
300 only.

5) Create some entries in the table YUSERID_EMP and display them.

6) Create a transparent table YUSERID_SAL with the following fields:

- Page 1 of 2 -
Exercise 01.01 - ABAP Dictionary
a) Airline carrier id - Primary key
b) Employee function - Primary key, Check table-
YUSERID_FUNC
c) Employee's years of service - Primary key
d) Salary according to salary grade
e) Currency key
Ensure that only valid currency keys are entered.

7) Create some entries in the table YUSERID_SAL and display them.

8) Create a transparent table YUSERID_TEXT to maintain texts for Airline Carrier Ids, with the
following fields:

a. Airline Carrier Id - Primary key


b. Language (use the standard data element SPRAS) - Primary key
c. Description.

Maintain foreign key relationship between the table created in Question 2 and this table.
Populate the table with the following data:

Airline Carrier Id Language Description


AA EN Afghan Airlines
AI EN Indian Airlines
LH EN Lufthansa Airlines
UA EN United Airlines

9) Identify all the foreign key relationships between the transparent tables SBOOK, SPFLI and
SFLIGHT and map them. Draw relevant diagrams if required.

- Page 2 of 2 -

You might also like