Sub topic 12
Releasing a request and importing it with STMS
This chapter assumes you can navigate SAP GUI, know what a Customizing request is (a transport request that holds configuration entries), and understand that a transport landscape is a chain of systems such as DEV, QAS and PRD. You should also know that a request holds one or more tasks, one per user.
The two steps: release, then import
A change only leaves the development system in two separate steps.
- Release exports the request from the source system. The data is written to files in the transport directory.
- Import reads those files and writes the contents into a target system.
Release does not change the target system. Nothing arrives in QAS or PRD until someone imports.
Releasing
Open the Transport Organizer (SE09 or SE10). Release each task first. A task holds one user's changes, and the request cannot be released while it has unreleased tasks. Then release the request itself. The export log shows a return code. Code 0 means success. Code 4 means a warning. Anything higher means the export failed, so read the log before going further.
After a successful release, the request is no longer changeable. If you must change the configuration again, record it in a new request.
Importing with STMS
The Transport Management System (STMS) is the central tool for moving requests. Use these steps.
- Run transaction STMS in the target system's domain.
- Choose Import Overview and double-click the target system.
- Find your request in the import queue. The queue lists released requests in the order they were exported.
- Select the request and choose Import Request.
- Enter the target client, for example 100, and choose the import options.
- Confirm, then check the import log.
Behind the scenes, STMS runs the program tp. You can do the same from the command line, which helps when you debug:
tp import DEVK900123 PRD client100 pf=/usr/sap/trans/bin/TP_DOMAIN_DEV.PFLThe request is DEVK900123, the target system is PRD, and client100 names the client. The pf= option points to the transport profile of the domain.
Reading the result
The import ends with a return code.
| Return code | Meaning | What to do |
|---|---|---|
| 0 | Imported without problems | Verify the change |
| 4 | Imported with warnings | Read the log. It is often harmless |
| 8 | Imported with errors | Fix the cause and import again |
| 12 or higher | Import was cancelled or failed | Check the log, the profile and the connection |
Verifying the result
Do not trust the return code alone. Check the setting in the target client. You can also read the table directly. This report lists company codes, which you might have changed in the IMG:
REPORT zdemo_company_codes.
SELECT bukrs, butxt, ort01, waers
FROM t001
ORDER BY bukrs
INTO TABLE @DATA(company_codes).
LOOP AT company_codes INTO DATA(cc).
WRITE: / cc-bukrs, cc-butxt, cc-ort01, cc-waers.
ENDLOOP.Exercise
A consultant releases a Customizing request in DEV, but the change does not appear in QAS. What do you check first?
Show answer
Whether the request is in the QAS import queue and whether it has been imported into the right client. Release only exports the request. Someone must still import it in STMS and select the target client.