Skip to content

ABAP Keyword Documentation →  ABAP - Dictionary 

Activating ABAP Dictionary Types

When a data type in ABAP Dictionary is activated, a runtime object is created that consumers such as dictionary objects, ABAP programs, or dynpros can use to effectively access all relevant type attributes. When a data type is activated, all objects that are dependent on it must be activated again as well.

  • For dependent Dictionary objects, this usually happens immediately.
  • For dependent ABAP programs or dynpros, this happens the next time they are used.

A data type can only be activated if the dependent Dictionary objects can be activated as well. However, if an incompatible change to a Dictionary type leads to an error in an ABAP program or dynpro, this does not prevent activation. This type of error is detected in the system the next time the program is executed or during an explicit syntax check. When changed Dictionary types are transported to target systems, dependent ABAP programs and dynpros are activated by the transport as well. If an error occurs, the transport is reported as unsuccessful.

Other versions: 7.31 | 7.40 | 7.54


Note

Each time a dictionary object is activated, a detailed activation log is created that can be evaluated if errors occur.

Runtime Objects

When a data type in ABAP Dictionary is activated, a runtime object is usually created in the name table (nametab), which the ABAP runtime environment accesses when the data type is used in an ABAP program or dynpro. The runtime object summarizes all important attributes of the entire data type. A runtime object has a time stamp for the time it was activated. If an existing type is activated, the corresponding runtime object is adapted and the time stamp is updated.


Note

  • Runtime objects are only intended for internal use, but can also be checked when analyzing failed activations.

  • For quick access, runtime objects are buffered in the shared memory of the current AS Instance.

  • The runtime object of a dictionary object can be displayed and checked in an ABAP Dictionary tool by choosing Utilities → Runtime Object. The meaning of the individual components of a runtime object is also documented here.

Example

The program DEMO_GET_NAMETAB shows a read access to the runtime objects of any data types using the special methods GET_DDIC_HEADER and GET_DDIC_OBJECT of the RTTI. The names of data elements, structures, table types, database tables, database views, and CDS entities can be passed to the program, but not domains.

Activating Dependent Objects

If existing Dictionary objects that are already used by other Dictionary objects or ABAP programs and dynpros are activated, the dependent objects must be activated as well.

Activating Dependent ABAP Programs and Dynpros

ABAP programs and dynpros that are dependent on a changed data type of the ABAP Dictionary are activated in the same system the first time they are used, and in the target system after a transport of the Dictionary type once it has been activated. When a Dictionary type is activated, the time stamp of its runtime object is adapted, as are the time stamp sources of all ABAP programs and dynpros that use this type, if a change relevant for a program or dynpro has been made. When a program or dynpro is used, or after it has been transported, this time stamp is compared with the current time stamp of its load and is generated again if necessary.

Activating Dependent Dictionary Objects

Dictionary objects that are dependent on a changed data type of the ABAP Dictionary are activated with it immediately:

  • First, the changed data type is activated. If the activation is successful and the data type has dependent objects, its status changes to "partially active" and it is flagged accordingly.
  • The dependent objects are then activated. If a dependent object cannot be activated, its status also changes to "partially active" and it is flagged accordingly.
  • If all dependent objects are activated successfully, the changed data type is set to status "active". Otherwise, it remains "partially active".

The status "partially active" means that a Dictionary object could not be fully activated:

  • For the changed data type, "partially active" means that it can be used without restrictions, but that there are restrictions on the dependent objects.
  • For dependent objects, "partially active" means that there are generally restrictions on their use because the previous runtime object is used, which has not yet implemented the changes of the changed data type.

If an activation results in "partially active" objects, these must be located in the activation log. The causes of the errors must be eliminated and

  • first the dependent objects and
  • then the changed data type

must be activated again, until all involved objects have the status "active". If this procedure is not completed, Dictionary objects keep the status "partially active". This actually often affects the data type that was originally changed, which is in fact fully usable.

The system program RUTMSJOB can be used to deal with "partially active" objects. It identifies "partially active" objects and proposes a cleanup if possible.

Mass Activation

In a mass activation, a system program (RADMASG0) is used as a mass activator to activate a number of dictionary objects. The mass activator is provided with a list of the Dictionary objects to be activated. A mass activation can be started as follows:

  • Explicit call of the mass activator. The list of Dictionary objects can be passed as follows:
  • Direct Objects

    The Dictionary objects to be activated can be entered in an input mask.
  • External Table

    A table from the structure TACOB can be specified. All Dictionary objects contained in this table are activated. The entries for objects that have been successfully activated are deleted from the table. If an object is not activated successfully, the corresponding entry remains in the table and an error text is saved in the relevant column.
  • Transport Request

    A transport request can be specified. All Dictionary objects contained in the request are activated.
  • Implicit call of the mass activator after a transport request has been imported into a target system. All Dictionary objects contained in the request are activated.

For mass activations that will take a long time, background processing can be used to execute the mass activator. In this case, the Dictionary objects to be activated can be specified in an external table with type TACOB or in the TACOB table itself.


Note

If Dictionary objects have interdependencies or belong together, mass activation is preferable to activating them individually. The mass activator activates them in the correct order and avoids unnecessary repetitions.

Cyclical Dependencies

Activations that would produce a cycle of technical dependencies between the runtime objects are not possible. In mass activations, cyclical dependencies that arise from semantic relationships between Dictionary objects are resolved by step-by-step activation. Here, the semantic relationships are first bypassed and then reintroduced.

See also ABAP CDS - Cyclical Dependencies