Show TOC

Table TRBATLocate this document in the navigation structure

An example is the best way to understand how tpand ABAP communicate and the task performed by table TRBAT.

Assume there are three change requests which are to be activated. For each change request, tp adds an entry into table TRBAT.

TRKORR

Function

RETCODE

TIMESTMP

T11K004711

J

9999

00000001

T11K004720

J

9999

00000002

T11K003456

J

9999

00000003

The table columns have the following meanings:

  • TRKORR

    Contains the names of the change requests

  • FUNCTION

    Contains a key for the requested action Possible values are:

    • A:

      Activate all ABAP Dictionary objects in the change request with mass activation (old activation program).

    • B:

      Activate all ABAP Dictionary objects in table TACOB with mass activation.

    • D:

      Import application-defined objects.

    • G:

      Generate reports and screens.

    • J:

      Activate all ABAP Dictionary objects other than the enqueue modules in the change request with mass activation (new activation program).

    • M:

      Activate enqueue modules in the change request with mass activation.

    • N:

      Convert all structure changes generated by the import and registered in the table TBATG, other than those of matchcode objects.

    • O:

      Convert all structure changes that were generated by actions in the online system and not by the import, and that are registered in the table TBATG.

    • R:

      Execute programs after PUT (XPRA).

    • S:

      Necessary actions to transfer the new Dictionary structures into the runtime environment are distributed to different steps.

    • X:

      Export application-defined objects.

    • Y:

      Convert structure changes to matchcode objects that were generated by the import and are registered in table TBATG.

  • RETCODE

    Contains exit codes for finished steps.

    Possible values are:

    • 9999: This step is waiting to be executed.
    • 8888: This step is active.
    • Less than or equal to 12: This step is finished.
  • TIMESTMP

    Contains the order in which the actions should be executed Contains the completion time for finished steps

    In addition, a header entry is inserted to tell RDDIMPDP to start (the RETCODE column is set to B (for begin)).

    TRKORR

    FUNCTION

    RETCODE

    TIMESTMP

    T11K004711

    J

    9999

    00000000000001

    T11K004720

    J

    9999

    00000000000002

    T11K003456

    J

    9999

    00000000000003

    HEADER

    J

    B

    19921207130147

If RDDIMPDP is activated, it sets the header entry to R (for running) and starts the corresponding program (mass activation in this case), which sets the first transport to the status active.

TRBAT now looks like this:

TRKORR

FUNCTION

RETCODE

TIMESTMP

T11K004711

J

8888

00000000000001

T11K004720

J

9999

00000000000002

T11K003456

J

9999

00000000000003

HEADER

J

R

19921207130650

8888 in the RETCODE column means that this change request is active. After it is finished, the column contains the return code of the step, and the TIMESTMP column contains the completion time.

When all actions are performed, the header entry is set to F (for finished). In the meantime, tp copies the logs of finished steps from the tp directory to the log directory and deletes the corresponding TRBAT entries.

TRBAT then looks like this (the log of the first change request was already copied to the log directory):

TRKORR

FUNCTION

RETCODE

TIMESTMP

T11K004720

J

4

19921207130912

T11K003456

J

0

19921207130945

HEADER

J

F

19921207139945

As soon as the last log has been edited, tp deletes the header entry and TRBAT is empty again.

Note Note that actions B (activate TACOB), N, O, Y (update structure), and S (distribute) only have header entries. They work independently of change requests.