Appearance
Lesson 3 Practice — Employee Directory
Create:
text
ZCL_ABAP_L03_PRACTICE_###Model
Define TY_EMPLOYEE with:
text
id
first_name
last_name
department
salary
activeChoose a table type that makes unique id lookup efficient.
Data
Create at least eight employees with VALUE.
Tasks
- print every employee;
- read one employee by ID;
- test a missing ID safely;
- print only IT employees;
- increase one employee salary;
- remove one employee by key;
- count active employees;
- print the final table.
Reasoning
- Why did you choose your table category?
- What does the table key guarantee?
- Why can a direct table expression fail?
- What is the difference between
INTOandASSIGNINGin a loop? - Why are these operations not persistent database CRUD?