# Inconsistencies found in the table TADIR

### Symptoms <a href="#symptoms" id="symptoms"></a>

* Objects are not assigned to packages, resulting in program errors
* Failures during Support Packs and Upgrades application using SAP's Software Update Manager
* General missing objects in TADIR

### Environment <a href="#environment" id="environment"></a>

* All SAP Systems

### Cause <a href="#cause" id="cause"></a>

* Transports and 3rd-party updates were imported only into production, not the sandbox
* Differences in transported objects between systems after system refresh

### Resolution <a href="#resolution" id="resolution"></a>

1. Perform a remote comparison of transports between systems with valid RFC connections using either of the following methods:

**Manual Delta Calculation**

If you want to calculate the delta of transport requests manually, you need to log in to QAS and PRD systems and save the content of the E070, and E071 tables (which would contain data about all imported transport requests). Our delta would be the difference between PRD and QAS systems, of \<SID>K\* transports.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FzoljnDS2xMdTIBVUFlV4%2Ftable-e70.png?alt=media&#x26;token=0823ab18-e02e-45e3-b9ce-6c598fd581f0" alt=""><figcaption><p>Figure 1: Table E070 Select Entries</p></figcaption></figure>

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2F5QIBWbGxABpaPAg6IWzo%2Ftable-e071.png?alt=media&#x26;token=c2ef1e32-9dfc-448f-81d9-fdc8b30025dd" alt=""><figcaption><p>Figure 2: Table E071 Select Entries</p></figcaption></figure>

**Delta Calculation with ST-OST Add-on for Solution Manager**

Before using this scenario you need to perform the initial configuration of it, according to the ST-OST [configuration guide](https://help.sap.com/viewer/product/FBUILD/230/en-US).

After completing the configuration, a new task list variant will be generated for one of your cycles. Subsequently, you'll need to create a dedicated cycle specifically for refreshing systems within, without any other intended use.

2. Add the calculated transport requests to the import buffer of the refreshed system using either of the following methods:

**Individual Import**

a. Run transaction STMS in the QAS system.

b. Select the import buffer of the system and add transport requests by navigating to **Extras > Other Requests**, then click **Add**.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FUJgTq7YOkEQJnoXrc4Xm%2Findividual-import-transport-requests.png?alt=media&#x26;token=d96ad017-4b74-4091-ad23-98c074680c38" alt=""><figcaption><p>Figure 3: Individual Import</p></figcaption></figure>

**Mass Redirect from PRD System**

a. Run transaction STMS in the PRD system.

b. Select the import buffer of PRD and transport requests that need to be added using the F9 key.

c. Navigate to **Request > Forward**, then select **System** (Ctrl + F12):

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FvE9tA58fMwjVMl0ChigS%2Fmass-redirect-from-prd-system.png?alt=media&#x26;token=f2cc2480-a808-4b71-aef1-087e9e0a7449" alt=""><figcaption><p>Figure 4: Mass Redirect from PRD System</p></figcaption></figure>

3. Run manual import for the delta transports.

To avoid the import of preliminary transports, delta import should be done manually in STMS:

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FxbDNcsM4qr2Xwb05FChI%2Fdelta-import-stms.png?alt=media&#x26;token=b7424d8d-ab0c-4022-9116-c8d9fcf5ea58" alt=""><figcaption><p>Figure 5: Manual Import for Delta Transports via STMS</p></figcaption></figure>

After the import double-check that delta transport requests were not added to the next system of the landscape (PRD). If they are added, you can manually delete them from TMS.

The tables `TRDIR` and `TADIR` in SAP are relevant for managing component versions and ensuring compliance in your system. Both tables store information about software components, but they serve slightly different purposes:

`TRDIR` (Transport Directory)

* Stores information about individual transport requests.
* Tracks the changes made to components by each transport request.
* Contains details like the request type, creation date, owner, and status.
* Useful for tracing the history of changes made to specific components.

`TADIR` (Transport Directory: Component Levels)

* Stores information about the current versions of components installed in your system.
* Provides an overview of which components are at which version level.
* Helps ensure that all systems in your landscape are at the same level for critical components.
* Useful for compliance purposes and system stability.

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FprzdsHgOp5NGAqMDUQ43%2Fsap-abap-table-tadir.png?alt=media&#x26;token=af76b68b-2ed5-416a-a2df-6c25c65db601" alt=""><figcaption><p>Figure 6: SAP ABAP Table TADIR</p></figcaption></figure>

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FCkbMmzt4Eb7LdVxjRpla%2Ftable-tadir-select-entries.png?alt=media&#x26;token=f81db264-3514-4759-a745-971bcfd8b16f" alt=""><figcaption><p>Figure 7: Table TADIR Select Entries</p></figcaption></figure>

**Compliance with Component Levels**

SAP systems require components to be at specific versions to comply with regulations, internal policies, or simply for optimal performance and functionality. You can use `TADIR` to:

* Identify components that are not at the required version level.
* Analyze dependencies between components to ensure compatibility when upgrading.
* Schedule and track the rollout of new component versions across your systems.

{% hint style="info" %}
**Important:** To maintain consistency of the `TADIR` table data, it is important to verify the identity of software components and the delta import during system refresh. Occasionally, direct intervention within `TRDIR` or `TADIR` becomes necessary to address intricate upgrade or support package issues. However, caution is advised: refrain from making modifications unless well-versed, as improper adjustments may lead to system instability. In such cases, it's advisable to seek guidance by contacting SAP support.
{% endhint %}

In some cases, inconsistencies between `TRDIR` and `TADIR` might happen (mainly during upgrades). Transaction STDR can be used to check consistency:

<figure><img src="https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FPJxWnmHoidl0ConzGIwF%2Fobject-directory-consistency-check.png?alt=media&#x26;token=30a1234a-75b2-4f23-b4dc-68cda2eedd94" alt=""><figcaption><p>Figure 8: Object Directory Consistency Check</p></figcaption></figure>

{% hint style="info" %}
**Note:** Before using these tasks, you need to ensure that the software components are identical and that the delta is imported after a system refresh.
{% endhint %}

### Related Information <a href="#additional-information" id="additional-information"></a>

* [SAP ABAP Table Field TADIR-OBJECT (Object Type)](https://www.sapdatasheet.org/abap/tabl/tadir-object.html)
* [TRDIR and TADIR: tables behind programs and tables](https://www.saptechnicalguru.com/trdir-and-tadir-tables-behind-programs-and-tables/)
* [Test System Refresh – Focused Build Standalone Extensions Part 4](https://blogs.sap.com/2018/08/29/test-system-refresh-focused-build-standalone-extensions-part-4/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.itconductor.com/user-guide/sid-refresh/troubleshooting/inconsistencies-found-in-the-table-tadir.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
