Файл: BC430_EN_Col62_FV_Part_A4_-_ABAP_Dictionary.pdf

ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 03.04.2021

Просмотров: 2303

Скачиваний: 40

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.
background image

BC430

Lesson: Tables in the ABAP Dictionary

System data is data that the SAP System itself needs. The program sources are
an example.

Further data classes, called customer data classes (USER, USER1), are provided
for customers. These should be used for customer developments. Special storage
areas must be allocated in the database.

Figure 24: Size Category

The size category describes the expected storage requirements for the table on
the database.

An initial extent is reserved when a table is created on the database. The size of
the initial extent is identical for all size categories. If the table needs more space
for data at a later time, extents are added. These additional extents have a fixed
size that is determined by the size category specified in the ABAP Dictionary.

You can choose a size category from 0 to 4. Every category is assigned a fixed
extent size, which depends on the database system used.

Correctly assigning a size category ensures that you do not create a large number
of small extents. It also prevents storage space from being wasted when creating
extents that are too large.

2006/Q2

© 2007 SAP AG. All rights reserved.

53


background image

Unit 2: Data objects in the ABAP Dictionary

BC430

Figure 25: Logging

You can use logging to record and store modifications to the entries of a table.

To activate logging, the corresponding field must be selected in the technical
settings. Logging, however, only takes place if the SAP system was started with a
profile that contains the parameter´rec/clien´t. Only selecting the flag in the ABAP

Dictionary is not sufficient to trigger logging.

Parameter “rec/client” can have the following settings:

rec/client =ALL

All the clients should be logged.

rec/client = 000[...]

Only the specified clients should be logged.

rec/client = OFF

Logging is deactivated in this system.

The data modifications are logged independently of the update. You can display
the logs with the Table History transaction (SCU3).

Caution: Logging creates a bottleneck in the system:

Additional write access for each modification to tables being logged.

This can result in lock situations although the users are accessing
different application tables!

54

© 2007 SAP AG. All rights reserved.

2006/Q2


background image

BC430

Lesson: Tables in the ABAP Dictionary

Summary

All the business-oriented data is administered in the form of tables whose
definition is stored in the ABAP Dictionary.

A two-level domain concept is used for defining the tables. The semantic
definition is implemented with data elements and the technical definition
with domains.

The fields of include structures can be included in tables.

The technical settings of a table define how the table should be stored in the
database (tablespace, extent size) and whether changes to the data records
should be logged.

2006/Q2

© 2007 SAP AG. All rights reserved.

55


background image

Unit 2: Data objects in the ABAP Dictionary

BC430

56

© 2007 SAP AG. All rights reserved.

2006/Q2


background image

BC430

Lesson: Tables in the ABAP Dictionary

Exercise 5: Tables in the ABAP Dictionary

Exercise Objectives

After completing this exercise, you will be able to:

Create tables and use the two-level domain concept

Define the technical settings sensibly

Document fields

Create and use include structures

Business Example

In these exercises, the tables of the flight model will be enhanced with employee
management. This employee management enables the airlines to enter and
evaluate data about their employees (for example, name, personnel number,
salary, department, etc.) and about assignments within the organization (airline
departments).

In this exercise, two tables will be created for the employee data and the airline
departments.

The data for the employees is maintained in the ZEMPLOY## table. The names
and addresses of the employees and their salaries are stored in the ZEMPLOY##
table. The ZDEPMENT## table contains the departments of the airline. Each
department can be reached with a telephone and fax number. These tables will
be enhanced step-by-step in the following exercises.

Task 1:

Create the two transparent tables ZEMPLOY## and ZDEPMENT##. Define
their key fields.

Note:

Before you can activate the tables, you still have to define their

technical settings. The procedure is described in the last tasks for the
exercises. The first tasks can also be solved without activating the table.

Data is maintained for three airlines. An airline has 20,000 employees and
between 10 and 30 departments. Do not buffer or log the data. Buffering
will be discussed in the exercises for the next unit.

1.

Create table ZEMPLOY##.

Via the path

Tools

ABAP Workbench

Development

ABAP

Dictionary

, you come to the overview screen of the ABAP Dictionary.

Continued on next page

2006/Q2

© 2007 SAP AG. All rights reserved.

57