Skip to content

Lesson 3 Practice — Employee Directory ​

Create:

text
ZCL_ABAP_L03_PRACTICE_###

Model ​

Define TY_EMPLOYEE with:

text
id
first_name
last_name
department
salary
active

Choose a table type that makes unique id lookup efficient.

Data ​

Create at least eight employees with VALUE.

Tasks ​

  1. print every employee;
  2. read one employee by ID;
  3. test a missing ID safely;
  4. print only IT employees;
  5. increase one employee salary;
  6. remove one employee by key;
  7. count active employees;
  8. print the final table.

Reasoning ​

  1. Why did you choose your table category?
  2. What does the table key guarantee?
  3. Why can a direct table expression fail?
  4. What is the difference between INTO and ASSIGNING in a loop?
  5. Why are these operations not persistent database CRUD?

Checklist ​