Sub topic 11
Landscapes, transport layers and routes
This chapter explains how SAP systems are arranged into a landscape, and how transport layers and routes decide where a request goes after you release it. It assumes you can navigate SAP GUI, know what a client is, and understand that Customizing and Workbench changes are recorded in transport requests. Releasing and importing requests is covered in the next chapter.
What a landscape is
A system landscape is the set of SAP systems that one organization uses to build, test and run its business processes. Each system has a three-character system ID (SID), such as DEV, QAS or PRD. Configuration and development happen in one system. They then move through other systems before they reach production.
A common landscape has three systems:
- DEV is the development system. Consultants change Customizing and developers change repository objects here.
- QAS is the quality assurance system. Changes are tested here with realistic data.
- PRD is the production system. Real business transactions run here, and nobody changes configuration here directly.
Larger organizations add systems. Examples are a sandbox for experiments, a separate unit-test system, a training system, or a second development system for a project. The principle stays the same: a change is made once, in a source system, and then copied through a controlled path.
Clients inside the landscape
Each system contains one or more clients. A request carries its changes to a target system and to a target client. The tutorial's earlier chapters explained that Customizing is client-dependent, so the client matters here. A Customizing request created in client 100 of DEV can be imported into client 100 of QAS or into another client, depending on how the route and import are set up.
Keep two points in mind:
- Cross-client Customizing and Workbench objects are available to every client in the system after the import.
- Client-dependent Customizing only affects the target client that receives the import.
The transport domain
All systems that share one transport configuration form a transport domain. One system in the domain is the domain controller. It holds the master copy of the configuration, which administrators maintain in transaction STMS. Other systems keep a copy and receive changes from the controller.
The domain also determines how systems exchange files. Systems that share a transport directory (the global directory, usually /usr/sap/trans) read and write the same data and cofiles. Systems in different domains need a domain link, or a file transfer outside STMS, to exchange requests.
| Term | Meaning |
|---|---|
| Transport domain | A group of systems managed with one shared transport configuration |
| Domain controller | The system that stores the master configuration and distributes changes |
| Transport directory | The file location that holds exported request files |
| Transport group | A set of systems that share one transport directory |
Transport layers
A transport layer is a label that you assign to a development class (a package, in current terms). It answers the question: along which route should the objects of this package travel?
Every package has a transport layer. Every system also has a default transport layer. When a developer creates a package, the system proposes its own default layer. Workbench objects inherit the layer through their package, and the layer selects the route.
Customizing requests are different. Customizing tables do not belong to a package that the consultant picks, so they use the default transport layer of the system where the request is created. This is why a Customizing change made in DEV follows the standard route for DEV.
Two layers are worth knowing about:
- A layer you define for your own objects, often
ZDEV. Packages in your own namespace usually use it. - The SAP layer, called
SAP, for objects delivered by SAP. Changes to these objects follow a different route, which is often used to keep SAP modifications on a separate path.
Transport routes
A transport route is a directed link from a source system to a target system. In STMS, administrators define two kinds:
- A consolidation route connects a development system to its first target. It is bound to a transport layer. Releasing a request with this layer creates an import queue entry in the consolidation target.
- A delivery route connects a system to the next system in the chain. When you forward a request from QAS, the delivery route decides that PRD receives it.
The difference matters. A consolidation route needs a transport layer name because the layer selects the route. A delivery route does not use a layer. It simply forwards what has already been imported.
A simple three-system landscape therefore has:
- a consolidation route from DEV to QAS for layer
ZDEV - a delivery route from QAS to PRD
This gives the usual sequence: release in DEV, import into QAS, test, then forward to PRD and import.
Consolidation and delivery with more systems
Real landscapes often contain more branches. Here are common patterns:
- One development system feeds one test system, then production. This is the standard three-system route.
- Two development systems feed one shared QAS. Both use consolidation routes to the same target. This is common when a project and a maintenance stream work in parallel.
- A system with several delivery routes sends changes to several targets, for example production and a training system.
When you have two development systems, take care with ordering. Requests from each source arrive in the same import queue of QAS in release order, not in the order the changes were made. A late request from the project system can overwrite a newer fix that came from the maintenance system. Chapter notes on governance cover sequencing, but you should recognize the risk as soon as you see parallel routes.
Target groups and client-specific routes
Routes in STMS point to systems and, if you wish, to specific clients. A transport target has the form QAS.200, meaning system QAS and client 200. The target client matters for Customizing, because the import writes client-dependent rows into that client.
A target group is a set of target systems that you name once. Routing a layer to a target group sends every request to each member. This is useful when one release must reach several test systems at the same time. Each member gets its own import queue, so import success can differ per system.
Inspecting the configuration
You can check the landscape from several places:
| Where | What you see |
|---|---|
| STMS, Overview, Systems | The systems of the domain and their status |
| STMS, Overview, Transport Routes | A graphical or list view of the routes |
| SE06, System Change Option | Whether repository objects and namespaces are modifiable |
| SE01 or SE09, request attributes | The target system and client of a request |
| Request header, Transport Target field | The consolidation target that was assigned at creation |
The transport target of a request is fixed when it is created, based on the layer. If an administrator changes the route afterwards, existing requests keep their old target until someone changes it in the Transport Organizer. Release a request with the wrong target and it lands in the wrong import queue, or in none at all.
Common problems with routes
- Request has no target. The package has a layer for which no consolidation route exists. The request releases but never appears in an import queue. Define the route in STMS and distribute the configuration, or correct the layer of the package.
- Request goes to the wrong system. The layer of the package points to another route than the team expected. Check the package attributes in SE80 or SE21.
- Route change has no effect. The configuration was saved but not distributed from the domain controller. Distribute it in STMS and verify on the other systems.
- Import queue is empty in the target. The systems do not share the transport directory, or the files were not copied. Check the directory configuration and the file permissions of the
<sid>admuser.
Summary of the model
A request is created in a source system. Its transport layer, taken from the package or from the system default for Customizing, selects a consolidation route. The route yields a target system and client. After release, the request appears in the import queue of the target. Delivery routes then carry it onward system by system, and each system imports it separately.
Exercise
A consultant releases a Customizing request in DEV, but the request never appears in the import queue of QAS. The route DEV to QAS exists for layer ZDEV. Name two things you would check, and say where.
Show answer
First, check the transport target and layer of the request in the Transport Organizer (SE09 or SE01). The default transport layer of DEV may not be ZDEV, so the request may have no target or a different one. Second, in STMS check that the consolidation route for the layer exists and that the configuration has been distributed from the domain controller. You can also check that DEV and QAS share the transport directory and that the exported files exist.
Exercise
What is the difference between a consolidation route and a delivery route, and which one needs a transport layer?
Show answer
A consolidation route links a development system to its first target and is tied to a transport layer, so the layer selects the route. A delivery route forwards requests that have already been imported from one system to the next, for example QAS to PRD, and does not use a layer. Only the consolidation route needs a transport layer.