sap-btp-cloud-transport-management

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

SAP Cloud Transport Management Skill

SAP Cloud Transport Management 指南

Table of Contents

目录

Overview

概述

SAP Cloud Transport Management is a service on SAP BTP that manages software deliverables between accounts of different environments by transporting them across various runtimes. It provides transparency to the audit trail of changes and enables separation of concerns between developers and operations teams.
Supported Environments: Cloud Foundry, Kyma, Neo (deprecated)
Supported Content Types:
  • MTA (Multitarget Applications):
    .mtar
    files for Cloud Foundry deployments
  • BTP ABAP: References to ABAP objects in Git repositories
  • Application Content: Application-specific formats (
    .zip
    ,
    .rar
    )
  • XSC DU: SAP HANA XS classic delivery units
SAP Cloud Transport Management是SAP BTP上的一项服务,通过在不同运行时之间传输软件交付物,来管理不同环境账户间的软件交付。它为变更的审计追踪提供了透明度,并实现了开发团队与运维团队的职责分离。
支持的环境:Cloud Foundry、Kyma、Neo(已弃用)
支持的内容类型:
  • MTA(多目标应用):用于Cloud Foundry部署的
    .mtar
    文件
  • BTP ABAP:Git仓库中ABAP对象的引用
  • 应用内容:特定应用格式(
    .zip
    .rar
  • XSC DU:SAP HANA XS经典交付单元

Quick Start: Initial Setup

快速开始:初始设置

Prerequisites

前提条件

  • Global account administrator access
  • At least one SAP BTP subaccount
  • Cloud Foundry environment enabled
  • 全局账户管理员权限
  • 至少一个SAP BTP子账户
  • 已启用Cloud Foundry环境

Setup Workflow

设置流程

1. Configure Entitlements → 2. Subscribe to Service → 3. Set Up Roles → 4. Create Service Instance
1. 配置权限 → 2. 订阅服务 → 3. 设置角色 → 4. 创建服务实例

Step 1: Configure Entitlements

步骤1:配置权限

Navigate to: Global Account > Entitlements > Entity Assignments > Add Service Plans
Select "Cloud Transport Management" and choose plans:
Plan TypePlans AvailablePurpose
Application
standard
,
free
,
build-runtime
UI access
Instance
standard
,
export
,
transport_operator
API/programmatic access
Instance plans require an active application plan. The
export
plan is for CI/CD pipelines.
导航至:全局账户 > 权限 > 实体分配 > 添加服务计划
选择"Cloud Transport Management"并选择对应的计划:
计划类型可用计划用途
应用
standard
,
free
,
build-runtime
UI访问
实例
standard
,
export
,
transport_operator
API/程序化访问
实例计划需要已激活的应用计划。
export
计划适用于CI/CD流水线。

Step 2: Subscribe to the Service

步骤2:订阅服务

  1. Navigate to Services > Service Marketplace
  2. Search for "Cloud Transport Management"
  3. Select Create from the Actions menu
  4. Choose a subscription plan (
    standard
    ,
    free
    , or
    build-runtime
    )
  5. Verify status shows "Subscribed"
  1. 导航至 服务 > 服务市场
  2. 搜索"Cloud Transport Management"
  3. 从操作菜单中选择 创建
  4. 选择订阅计划(
    standard
    free
    build-runtime
  5. 验证状态显示为"已订阅"

Step 3: Set Up Role Collections

步骤3:设置角色集合

Pre-delivered Role Collections:
  • TMS_LandscapeOperator_RC
  • TMS_Viewer_RC
Available Roles:
RoleCapabilities
AdministratorFull administration for all TMS tasks
LandscapeOperatorCreate/edit/delete nodes and routes
TransportOperatorManage import queues, forward, reset, schedule
ImportOperatorImport all transport requests
ImportSelectedOperatorImport selected transport requests
ExportOperatorAdd files, create modifiable requests
ViewerRead-only access
Assign roles: Security > Role Collections > [Collection] > Edit > Users
预定义角色集合:
  • TMS_LandscapeOperator_RC
  • TMS_Viewer_RC
可用角色:
角色权限
Administrator所有TMS任务的完整管理权限
LandscapeOperator创建/编辑/删除节点与路由
TransportOperator管理导入队列、转发、重置、调度
ImportOperator导入所有传输请求
ImportSelectedOperator导入特定传输请求
ExportOperator添加文件、创建可修改请求
Viewer只读访问权限
分配角色:安全 > 角色集合 > [对应集合] > 编辑 > 用户

Step 4: Create Service Instance and Key

步骤4:创建服务实例与密钥

  1. Create a Cloud Foundry space in your subaccount
  2. Navigate to Services > Instances and Subscriptions > Create
  3. Select:
    • Service:
      Cloud Transport Management
    • Plan:
      standard
      (instance type)
    • Runtime:
      Cloud Foundry
  4. Create a service key - credentials structure:
json
{
  "uaa": {
    "clientid": "sb-xxxxxx",
    "clientsecret": "xxxxxx",
    "url": "[https://<domain>.authentication.sap.hana.ondemand.com"](https://<domain>.authentication.sap.hana.ondemand.com")
  },
  "uri": "[https://transport-service-app-backend.ts.cfapps.sap.hana.ondemand.com"](https://transport-service-app-backend.ts.cfapps.sap.hana.ondemand.com")
}
  1. 在子账户中创建Cloud Foundry空间
  2. 导航至 服务 > 实例与订阅 > 创建
  3. 选择:
    • 服务:
      Cloud Transport Management
    • 计划:
      standard
      (实例类型)
    • 运行时:
      Cloud Foundry
  4. 创建服务密钥 - 凭证结构:
json
{
  "uaa": {
    "clientid": "sb-xxxxxx",
    "clientsecret": "xxxxxx",
    "url": "[https://<domain>.authentication.sap.hana.ondemand.com"](https://<domain>.authentication.sap.hana.ondemand.com")
  },
  "uri": "[https://transport-service-app-backend.ts.cfapps.sap.hana.ondemand.com"](https://transport-service-app-backend.ts.cfapps.sap.hana.ondemand.com")
}

Landscape Configuration

传输环境配置

Transport Nodes

传输节点

Transport nodes represent source or target endpoints of deployment processes.
Node Types:
  • Physical Nodes: Actual deployment endpoints (e.g., Cloud Foundry spaces)
  • Virtual Nodes: Placeholders for aggregation/distribution without physical deployment
Key Configuration Fields:
FieldDescription
NameCase-sensitive identifier (must match
sourceSystemId
for Content Agent)
Allow Upload to NodeEnable file uploads for local archives
Forward Mode
Pre-Import
(default),
Post-Import
,
On Success
,
Manual
Content Type
MTA
,
BTP ABAP
,
Application Content
,
XSC DU
DestinationTarget deployment endpoint
Deployment Strategy
default
or
blue-green
(MTA on CF only)
传输节点代表部署流程的源或目标端点。
节点类型:
  • 物理节点:实际的部署端点(例如Cloud Foundry空间)
  • 虚拟节点:用于聚合/分发的占位符,无实际部署
关键配置字段:
字段描述
名称区分大小写的标识符(必须与Content Agent的
sourceSystemId
匹配)
允许上传至节点启用本地归档文件的上传
转发模式
Pre-Import
(默认)、
Post-Import
On Success
Manual
内容类型
MTA
BTP ABAP
Application Content
XSC DU
目标目标部署端点
部署策略
default
blue-green
(仅适用于CF上的MTA)

Transport Routes

传输路由

Routes connect transport nodes. Constraint: A node can be a target for only one route but can be a source for multiple routes.
路由连接传输节点。约束:一个节点只能作为一条路由的目标,但可以作为多条路由的源。

Transport Landscape Wizard

传输环境向导

Use for simple 2-3 node landscapes:
  1. Select template (number of nodes)
  2. Configure each node
  3. Customize route names
  4. Review and finish
适用于简单的2-3节点环境:
  1. 选择模板(节点数量)
  2. 配置每个节点
  3. 自定义路由名称
  4. 审核并完成

Destination Configuration

目标配置

All destinations require HTTPS. Configure in: SAP BTP Cockpit > Connectivity > Destinations
所有目标均要求使用HTTPS。在以下路径配置:SAP BTP控制台 > 连接性 > 目标

Destination to TMS Service (Source Environment)

指向TMS服务的目标(源环境)

Required for applications exporting content directly to TMS.
FieldValue
Name
TransportManagementService
(or app-specific name)
TypeHTTP
URLService key
uri
value
AuthenticationOAuth2ClientCredentials
Client IDService key
uaa.clientid
Client SecretService key
uaa.clientsecret
Token Service URLService key
uaa.url
+
/oauth/token
Additional Property
sourceSystemId
= source node name
应用直接向TMS导出内容时需要配置此目标。
字段
名称
TransportManagementService
(或应用特定名称)
类型HTTP
URL服务密钥中的
uri
认证OAuth2ClientCredentials
Client ID服务密钥中的
uaa.clientid
Client Secret服务密钥中的
uaa.clientsecret
Token Service URL服务密钥中的
uaa.url
+
/oauth/token
附加属性
sourceSystemId
= 源节点名称

MTA Deployment Destinations (Cloud Foundry)

MTA部署目标(Cloud Foundry)

Option 1: Basic Authentication (SAP ID users only)
FieldValue
URL (org/space)
[https://deploy-service.cf.<domain>/slprot/<org>/<space>/slp
](https://deploy-service.cf.<domain>/slprot/<org>/<space>/slp`)
URL (space GUID)
[https://deploy-service.cf.<domain>/slprot/<guid>/slp
](https://deploy-service.cf.<domain>/slprot/<guid>/slp`)
AuthenticationBasicAuthentication
UserPlatform user email with
SpaceDeveloper
role
Get space GUID:
cf space <space-name> --guid
URL-encode special characters in org/space names
Option 2: OAuth2Password (Custom IdP support)
FieldValue
URLSame as Basic Auth
AuthenticationOAuth2Password
Client ID
cf
Client Secret(leave empty)
Token Service URL
[https://login.cf.<domain>
](https://login.cf.<domain>`)
选项1:基础认证(仅SAP ID用户)
字段
URL(org/space)
[https://deploy-service.cf.<domain>/slprot/<org>/<space>/slp
](https://deploy-service.cf.<domain>/slprot/<org>/<space>/slp`)
URL(space GUID)
[https://deploy-service.cf.<domain>/slprot/<guid>/slp
](https://deploy-service.cf.<domain>/slprot/<guid>/slp`)
认证BasicAuthentication
用户拥有
SpaceDeveloper
角色的平台用户邮箱
获取space GUID:
cf space <space-name> --guid
对org/space名称中的特殊字符进行URL编码
选项2:OAuth2Password(支持自定义IdP)
字段
URL与基础认证相同
认证OAuth2Password
Client ID
cf
Client Secret(留空)
Token Service URL
[https://login.cf.<domain>
](https://login.cf.<domain>`)

BTP ABAP Environment Destinations

BTP ABAP环境目标

FieldValue
URL
[https://<instance>.abap.<region>.hana.ondemand.com/sap/opu/odata4/sap/a4c_mswc_api/srvd_a2x/sap/manage_software_components/0001/
](https://<instance>.abap.<region>.hana.ondemand.com/sap/opu/odata4/sap/a4c_mswc_api/srvd_a2x/sap/manage_software_components/0001/`)
AuthenticationBasicAuthentication
UserCommunication user from
SAP_COM_0948
字段
URL
[https://<instance>.abap.<region>.hana.ondemand.com/sap/opu/odata4/sap/a4c_mswc_api/srvd_a2x/sap/manage_software_components/0001/
](https://<instance>.abap.<region>.hana.ondemand.com/sap/opu/odata4/sap/a4c_mswc_api/srvd_a2x/sap/manage_software_components/0001/`)
认证BasicAuthentication
用户
SAP_COM_0948
中的通信用户

Import Queue Operations

导入队列操作

Import Methods

导入方式

MethodDescriptionAvailability
Import AllSequential import of all requests in queueAll content types
Import SelectedImport specific requests (may cause inconsistencies)Not BTP ABAP
Import UptoImport all requests up to selected oneBTP ABAP only
Importable Statuses:
Initial
,
Fatal
,
Repeatable
方式描述适用范围
全部导入按顺序导入队列中的所有请求所有内容类型
选择导入导入特定请求(可能导致不一致)不适用于BTP ABAP
导入至指定请求导入所有直至选中请求的内容仅适用于BTP ABAP
可导入状态
Initial
Fatal
Repeatable

File Upload

文件上传

  • Max file size: 1 GB (500 MB on free plan)
  • Storage quota: 50 GB standard, 500 MB free
  • Retention: 30 days (7 days free) after final status
  • Formats:
    .mtar
    (MTA),
    .tgz
    (XSC DU),
    .zip
    (Application Content)
  • 最大文件大小:1 GB(免费计划为500 MB)
  • 存储配额:标准计划50 GB,免费计划500 MB
  • 保留期限:进入最终状态后30天(免费计划7天)
  • 支持格式
    .mtar
    (MTA)、
    .tgz
    (XSC DU)、
    .zip
    (应用内容)

Scheduling

调度设置

  • Patterns: Daily (hourly, 4x/day) or Weekly (specific days/times)
  • Auto-deactivation: After 3 consecutive fatal failures over 3+ weeks
  • 模式:每日(每小时、每日4次)或每周(特定日期/时间)
  • 自动停用:连续3次致命失败且超过3周后自动停用

Automatic Import

自动导入

Enable per node - immediately processes all importable requests and triggers on new arrivals.
按节点启用 - 立即处理所有可导入请求,并在新请求到达时触发导入。

Transport Request Statuses

传输请求状态

Import Statuses

导入状态

StatusDescription
InitialAdded but not imported
RunningImport in progress
SucceededImport successful
WarningCompleted with warnings
ErrorImport failed (retryable)
FatalImport failed (fatal error)
SkippedIntentionally skipped (virtual nodes)
RepeatableReset for re-import
DeletedRemoved from queue
TransientTested and released (modifiable requests)
状态描述
Initial已添加但未导入
Running导入进行中
Succeeded导入成功
Warning完成但存在警告
Error导入失败(可重试)
Fatal导入失败(致命错误)
Skipped有意跳过(虚拟节点)
Repeatable已重置可重新导入
Deleted已从队列移除
Transient已测试并发布(可修改请求)

Lifecycle Statuses

生命周期状态

  • Modifiable: Request can be edited
  • Released: In at least one queue with non-archived status
  • Deleted: Deleted from all queues
  • Archived: Cleaned up by retention policy
  • Modifiable:请求可编辑
  • Released:已在至少一个非归档状态的队列中
  • Deleted:已从所有队列删除
  • Archived:已按保留策略清理

Troubleshooting

故障排查

Quick Reference: Common Errors

快速参考:常见错误

ErrorLikely CauseQuick Fix
Not Found
Wrong CF domainMatch domain to
cf api
output
Not Found
Unencoded special charsUse space GUID:
cf space <name> --guid
Forbidden
Missing SpaceDeveloperAdd role in BTP Cockpit or CF CLI
Forbidden
Wrong IdPUse OAuth2Password with
origin
property
Connection refused (ABAP)Wrong URL patternVerify
SAP_COM_0948
communication arrangement URL
Import stuckNon-final statusCheck Transport Action Logs for root cause
错误可能原因快速修复
Not Found
错误的CF域名匹配
cf api
输出的域名
Not Found
特殊字符未编码使用space GUID:
cf space <name> --guid
Forbidden
缺少SpaceDeveloper角色在BTP控制台或CF CLI中添加角色
Forbidden
错误的IdP使用带有
origin
属性的OAuth2Password认证
Connection refused(ABAP)URL格式错误验证
SAP_COM_0948
通信配置的URL
导入卡住非最终状态查看传输操作日志排查根本原因

MTA Deployment Errors

MTA部署错误

Error:
Not Found
during deployment
Causes:
  1. Wrong Cloud Foundry domain in URL
  2. Special characters in org/space names not URL-encoded
Solutions:
  • Verify domain matches CF API endpoint:
    cf api
  • Use space GUID instead of names
  • URL-encode special characters (
    +
    %2B
    , space →
    %20
    )
Error:
Forbidden
during deployment
Causes:
  1. User lacks
    SpaceDeveloper
    role
  2. User from wrong identity provider
Solutions:
  • Verify user roles:
    cf space-users <org> <space>
  • Use OAuth2Password auth for custom IdP users
错误:部署时出现
Not Found
原因:
  1. URL中的Cloud Foundry域名错误
  2. org/space名称中的特殊字符未进行URL编码
解决方案:
  • 验证域名与CF API端点匹配:
    cf api
  • 使用space GUID替代名称
  • 对特殊字符进行URL编码(
    +
    %2B
    ,空格 →
    %20
错误:部署时出现
Forbidden
原因:
  1. 用户缺少
    SpaceDeveloper
    角色
  2. 用户来自错误的身份提供商
解决方案:
  • 验证用户角色:
    cf space-users <org> <space>
  • 对自定义IdP用户使用OAuth2Password认证

SAP Support

SAP支持

Component:
BC-CP-LCM-TMS
(Transport Management for application content)
Required for incidents: Region, subaccount ID, reproduction steps, transport action logs, screenshots
For detailed troubleshooting steps, error catalogs by content type, and support procedures, see
references/troubleshooting.md
.
组件
BC-CP-LCM-TMS
(应用内容的传输管理)
工单所需信息:区域、子账户ID、重现步骤、传输操作日志、截图
详细故障排查步骤、按内容类型划分的错误目录以及支持流程,请参阅
references/troubleshooting.md

Security

安全

Service Plans for API Access

API访问的服务计划

PlanAccess Level
standard
Full API access
export
Export actions only (CI/CD)
transport_operator
Import, reset, forward, delete only
计划访问级别
standard
完整API访问权限
export
仅导出操作(CI/CD)
transport_operator
仅导入、重置、转发、删除操作

Node-Specific Restrictions

节点特定限制

Use attributes to restrict roles to specific nodes:
  • TmsNodesTransportOperator
  • TmsNodesImport
  • TmsNodesExport
使用属性将角色限制到特定节点:
  • TmsNodesTransportOperator
  • TmsNodesImport
  • TmsNodesExport

Malware Scanning

恶意软件扫描

TMS does not perform malware scans - target applications are responsible. Exception: MTA deployment descriptors are verified.
TMS不执行恶意软件扫描 - 由目标应用负责。例外:MTA部署描述符会被验证。

Integrations

集成

CI/CD Integration

CI/CD集成

Use SAP Continuous Integration and Delivery or Project Piper with the
export
service plan.
结合SAP Continuous Integration and Delivery或Project Piper,使用
export
服务计划。

Alert Notifications

告警通知

Configure
ALERT_NOTIFICATION_SERVICE
destination for:
  • TmsImportFinished
    /
    TmsImportStarted
  • TmsTransportRequestAdded
  • TmsNodeImportJobDeactivated
  • TmsStorageQuotaUsage
    (85% threshold)
配置
ALERT_NOTIFICATION_SERVICE
目标以接收以下事件:
  • TmsImportFinished
    /
    TmsImportStarted
  • TmsTransportRequestAdded
  • TmsNodeImportJobDeactivated
  • TmsStorageQuotaUsage
    (阈值85%)

API Operations

API操作

  1. File Upload: Upload content archive
  2. Node Export: Attach file to new request, forward to target nodes
  3. Node Upload: Upload to specific node (CI/CD scenarios)
  4. Import operations: Async - monitor with Get transport action
  1. 文件上传:上传内容归档
  2. 节点导出:将文件附加到新请求并转发至目标节点
  3. 节点上传:上传至特定节点(CI/CD场景)
  4. 导入操作:异步执行 - 通过Get transport action监控

Reference Documentation

参考文档

For detailed configuration procedures, see the reference files:

详细配置流程,请参阅参考文件:

Bundled Resources

捆绑资源

Reference Documentation

参考文档

  • references/initial-setup.md
    - Complete setup procedures
  • references/landscape-configuration.md
    - Nodes, routes, visualization, and wizard
  • references/destinations.md
    - All 8 destination types with configurations
  • references/import-operations.md
    - Import queue, MTA descriptors, modifiable requests
  • references/administration.md
    - Service plans, backup, storage, data export
  • references/troubleshooting.md
    - Error resolution guide
  • references/integrations.md
    - Integration scenarios and API operations
  • references/security-roles.md
    - Role and permission details
  • references/initial-setup.md
    - 完整设置流程
  • references/landscape-configuration.md
    - 节点、路由、可视化与向导
  • references/destinations.md
    - 所有8种目标类型的配置
  • references/import-operations.md
    - 导入队列、MTA描述符、可修改请求
  • references/administration.md
    - 服务计划、备份、存储、数据导出
  • references/troubleshooting.md
    - 错误解决指南
  • references/integrations.md
    - 集成场景与API操作
  • references/security-roles.md
    - 角色与权限详情

Documentation Links

文档链接


Last Updated: 2025-11-22 Source: SAP-docs/sap-btp-cloud-transport-management

最后更新:2025-11-22 来源:SAP-docs/sap-btp-cloud-transport-management