Sub topic 12
Deploying configuration to test and production systems
This chapter covers how a configuration you build in Central Business Configuration (CBC) reaches the systems that run it. It assumes you have read the earlier chapters on implementation projects, scope items, enterprise structure, scoping questions and configuration activities. You should also know the SAP Fiori launchpad and the idea of a multi-system landscape (development, test, production).
Menu labels and status names in CBC change between releases. This chapter describes the working model, so check the exact wording in your own tenant.
Why deployment is a separate step
In an on-premise SAP system, you configure a system directly in transaction SPRO and move the changes with transport requests. In CBC, you do not configure the target systems directly. You work in the implementation project, which holds the scope, the enterprise structure, the answers to scoping questions and the configuration values. The project is the single source of truth for the solution.
The target systems receive this definition through deployment. Deployment takes a snapshot of the project and applies it to a connected system. That gives you three properties:
- The same definition can go to the test system first and the production system later.
- Systems cannot drift apart because someone configured one of them by hand.
- You can trace what was deployed, when, and by whom.
What gets deployed
A deployment carries the project content that determines how a system behaves. It does not carry master or transactional data.
| Project content | Included in deployment | Notes |
|---|---|---|
| Selected scope items | Yes | Determines which business processes are activated. |
| Enterprise structure | Yes | Company codes, plants, sales organizations and so on. |
| Scoping question answers | Yes | Drive which configuration activities apply. |
| Configuration activity values | Yes | Includes fine-tuning and expert configuration made in the project. |
| Master data (customers, materials) | No | Migrate it separately, for example with the migration cockpit. |
| Transactional data | No | Open items and balances are migrated, not deployed. |
The landscape and the deployment path
A typical CBC landscape has a test system (also called a quality system) and a production system, both linked to the same project. Larger landscapes can add a starter or development system. The working rule is that configuration moves in one direction, from the project to the test system and then to production.
The loop in the diagram is deliberate. When testing finds a problem, you fix it in the project and deploy again. You do not fix it in the test system and hope to repeat the fix in production.
Running a deployment
The exact screens differ by release, but the sequence is stable.
- Finish the configuration work. Check that no required configuration activity is still open and that every scoping question has an answer.
- Open the deployment area of the implementation project and select the target system. Select the test system first.
- Start the deployment. CBC runs it as a background job and shows its status in the project.
- Wait until the status reports success. Read the log if it reports warnings or errors.
- Log on to the test system and verify the result. Check that the intended apps and processes are available and that configuration values match what you set.
- Repeat the deployment for the production system after testing is complete and the business owners have approved.
Reading deployment status
A deployment goes through states that you can follow in the project. Names vary, but the pattern is:
A failed deployment is not harmful in itself. Read the log to find the failing activity or the inconsistent input. Then correct the project and start again.
Order of deployment and dependencies
Some content has to exist before other content can be applied. Enterprise structure comes first, because configuration values refer to company codes, plants and similar units. CBC handles this ordering internally, so you do not sequence the activities yourself. It does mean that a late change to the enterprise structure can invalidate configuration values you already entered. Review the affected activities before you redeploy.
What happens to changes made outside CBC
Some changes are made directly in a target system. Examples are fine-tuning in the Manage Your Solution app, key user extensibility, and the creation of master data. How they travel depends on their type.
- Project-controlled configuration is owned by CBC. If you change a value in the project and redeploy, CBC overwrites the value in the target system.
- Key user extensibility and other custom objects are created in the extension-capable system and moved through the software logistics tools of the landscape. They are not part of a CBC deployment.
- Master data and business data are not transported. Maintain or migrate them in each system.
The risk is a mismatch. If someone changes a value directly in the test system and the same value is controlled by the project, the next deployment replaces it. A consultant then sees the "fix" disappear and does not know why.
Scope changes and redeployment
Adding a scope item, changing an answer to a scoping question, or extending the enterprise structure all change the project, so they only take effect after a new deployment. A new deployment re-applies the whole project definition, not just the new part. Each deployment is therefore a complete, repeatable statement of the target state, and an incremental patch is not required.
Test every scope change in the test system first, even when it looks small. A new scope item can activate additional configuration activities that need input, and a deployment with missing required input will not give you the behavior you expect.
Planning a deployment
Treat a production deployment as a planned event.
- Schedule it outside business peak hours. A deployment can restrict what users can do in the target system while it runs, depending on the changes.
- Freeze configuration changes in the project between the test deployment and the production deployment. If something changes in between, the version you tested is no longer the version you deploy.
- Keep a record of the project state that was verified. The deployment history in the project provides this, and you should also note the approvals.
- Confirm that the business roles and authorizations for the new scope are in place in production, because configuration alone does not grant users access.
- Prepare a reaction plan for a failed production deployment. Because the project is the source of truth, the usual recovery is to fix the project and redeploy, so know who decides this and who tests it.
Common errors
| Symptom | Likely cause | What to do |
|---|---|---|
| Deployment fails immediately | A required configuration activity or scoping question is incomplete | Complete the open item in the project and start again. |
| Deployment fails on one activity | Invalid value or a dependency on a changed enterprise structure | Read the log, correct the value, redeploy. |
| Change is missing in the test system | The change was made in the project but not deployed | Start a new deployment to the test system. |
| A manual fix in the test system disappears | The value is project-controlled and was overwritten | Make the change in the project instead. |
| Production behaves differently than test | A different project version was deployed, or data and authorizations differ | Compare deployment history, and check roles and master data. |
| New app not visible to users | Roles are not assigned in the target system | Assign business roles; this is not a deployment problem. |
Exercises
Exercise
A consultant finds a wrong tax setting in the test system and corrects it there. The configuration is controlled by the CBC project. What happens at the next deployment, and what should the consultant have done?
Show answer
The next deployment overwrites the manual correction with the value stored in the project, and the correction never reaches production. The consultant should have changed the value in the project and deployed it to the test system again, then verified it.
Exercise
You added a new scope item after the test deployment was approved. The business wants to deploy to production this evening. What is the correct approach, and why?
Show answer
Deploy the changed project to the test system first and verify it, then deploy to production. The new scope item changes the project, and each deployment applies the whole definition. The approved test result no longer matches what production would receive, and the new scope item may need configuration input.
Exercise
Name two kinds of content that a CBC deployment does not transport, and say how each should reach the production system.
Show answer
Master data and transactional data are not part of a deployment. They are migrated or maintained in the target system, for example with the migration cockpit. Custom objects from key user extensibility also travel through the software logistics of the landscape, not through CBC deployment.