Entering content frame

Background documentation Table TRBAT Locate the document in its SAP Library structure

An example is the best way to understand how tp and ABAP communicate and the task of 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 meaning:

Contains the names of the change requests

Contains a key for the requested action. Possible values are:

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

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

Import application-defined objects.

Generate reports and screens.

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

Activate enqueue modules in the change request with mass activation.

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

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.

Execute programs after PUT (XPRA).

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

Export application-defined objects.

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

Contains return codes for finished steps

Possible values are:

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(egin)).

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(unning) and starts the corresponding program (mass activation in this case), which sets the first transport to the active status.

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(inished). 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 (TACOB activation), N, O, Y (structure conversion), and S (distribution) only have header entries. They work independently of change requests.

 

 

 

 

Leaving content frame