Sub topic 13
When transports go wrong
This chapter assumes you can release a request and import it with STMS, and that you know the difference between Customizing and Workbench requests. Here you will learn to read a failed import and find its cause.
Read the return code first
Every import ends with a return code from the tp program. STMS shows it as a colored icon in the import queue.
| Return code | Meaning | Typical action |
|---|---|---|
| 0 | Imported without problems | None |
| 4 | Imported with warnings | Read the log, usually safe |
| 8 | Errors during an import step | Fix the cause, then re-import |
| 12 or higher | `tp` ended the import or hit a system problem | Check the logs and the environment |
A return code of 4 is common and usually harmless. A return code of 8 means some objects or table entries may be missing in the target.
Common causes
- Wrong import order. A request changes entries that depend on an earlier request, such as a company code that needs a new country setting. The dependency is not in the target yet.
- Missing objects. A Customizing request holds only table entries. If the table or view it fills comes from a Workbench request, import that Workbench request first.
- Request not released. Only released requests appear in the import queue.
- Wrong target client. A request imported into the wrong client leaves the intended client unchanged. Check the client in the import dialog.
- No transport route. The request's source system has no route to the target in the landscape.
- Different table structures. If a table is a different version in the target, the import fails with an activation error.
Diagnose in a fixed order
- Open the import queue in STMS (transaction
STMS, then Import Overview). - Select the request and display its logs. Read the first error message, not the last one, because later errors often follow from the first.
- Check whether earlier requests from the same system are still in the queue.
- Compare the object lists of both requests in the Transport Organizer (
SE09orSE10).
You can also check the buffer from the command line:
tp showbuffer PRD pf=/usr/sap/trans/bin/TP_DOMAIN_DEV.PFLThis lists the requests waiting for system PRD in the order tp will import them.
Recovering
Once you have fixed the cause, import the request again. If a request needs an earlier request that was never moved, import the earlier one first, then the later one. If the request itself is wrong, correct the change in the source system and release a new request. Do not edit the target system directly.
Exercise
A Customizing request imports into production with return code 8, and the log says a table entry could not be written because the table does not exist. What is the most likely cause, and what do you do?
Show answer
The table or view is delivered by a Workbench request that has not been imported into production yet. Import that Workbench request first, then import the Customizing request again.