---
# API: Freight Order - Replicate
# File: CE_SCMTMS_CO_CPX_TOR_GN_RQ_FO_OUT.md
# Version: 1.0.0
# Status: ACTIVE
# Protocol: SOAP (Outbound)
# Source URL: https://api.sap.com/api/CE_SCMTMS_CO_CPX_TOR_GN_RQ_FO_OUT/overview
# Generated: 2026-07-23
---

# Freight Order - Replicate / 货运订单 - 复制 (出站)

> **API 版本:** 1.0.0 | **状态:** ACTIVE | **协议:** SOAP  
> **技术名称:** `CE_SCMTMS_CO_CPX_TOR_GN_RQ_FO_OUT`  
> **操作:** `FreightOrderReplicate`  
> **SAP 通信场景:** `SAP_COM_0276`

## 概述 / Overview

该 SOAP 出站服务用于将货运订单从源系统复制到目标系统，实现货运订单数据的同步和分发。

This outbound SOAP service replicates freight orders from a source system to a target system, enabling freight order data synchronization and distribution.

---

## 消息结构 / Message Structure

| # | 结构名称 | 描述 (EN) | 描述 (CN) |
|---|----------|-----------|-----------|
| 1 | `FreightOrderReplicateRequest` | Freight Order Replicate Request | 货运订单复制请求 |
| 2 | `FreightOrderReplicateResponse` | Freight Order Replicate Response | 货运订单复制响应 |

---

## 1. 请求结构: FreightOrderReplicateRequest / 货运订单复制请求

**命名空间:** `http://sap.com/xi/SAPGlobal20/Global`

### 1.1 抬头数据 / Header Data

**结构名称:** `FreightOrderReplicateRequest.Header`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `FreightOrderID` | String | 20 | Freight Order ID | 货运订单编号 |
| `FreightOrderType` | String | 4 | Freight Order Type | 货运订单类型 |
| `SourceSystem` | String | 10 | Source System | 源系统 |
| `TargetSystem` | String | 10 | Target System | 目标系统 |
| `ReplicationMode` | String | 1 | Replication Mode (C/U/D) | 复制模式 (创建/更新/删除) |
| `CreationDate` | DateTime | - | Creation Date | 创建日期 |
| `CreationTime` | Time | - | Creation Time | 创建时间 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `LastChangeDate` | DateTime | - | Last Change Date | 最后更改日期 |
| `LastChangeTime` | Time | - | Last Change Time | 最后更改时间 |
| `LastChangedByUser` | String | 12 | Last Changed By | 最后更改人 |
| `PlannedDepartureDate` | DateTime | - | Planned Departure Date | 计划出发日期 |
| `PlannedArrivalDate` | DateTime | - | Planned Arrival Date | 计划到达日期 |
| `ActualDepartureDate` | DateTime | - | Actual Departure Date | 实际出发日期 |
| `ActualArrivalDate` | DateTime | - | Actual Arrival Date | 实际到达日期 |
| `TotalGrossWeight` | Decimal | 15 | Total Gross Weight | 总毛重 |
| `TotalNetWeight` | Decimal | 15 | Total Net Weight | 总净重 |
| `WeightUnit` | String | 3 | Weight Unit | 重量单位 |
| `TotalVolume` | Decimal | 15 | Total Volume | 总体积 |
| `VolumeUnit` | String | 3 | Volume Unit | 体积单位 |
| `NumberOfPackages` | Integer | - | Number of Packages | 包装件数 |
| `MeansOfTransport` | String | 20 | Means of Transport | 运输工具 |
| `MeansOfTransportID` | String | 20 | Means of Transport ID | 运输工具标识 |
| `TransportationMode` | String | 3 | Transportation Mode | 运输模式 |
| `Carrier` | String | 10 | Carrier | 承运方 |
| `CarrierName` | String | 80 | Carrier Name | 承运方名称 |
| `ForwardingAgent` | String | 10 | Forwarding Agent | 货运代理 |
| `ForwardingAgentName` | String | 80 | Forwarding Agent Name | 货运代理名称 |
| `LoadingPoint` | String | 10 | Loading Point | 装货点 |
| `UnloadingPoint` | String | 10 | Unloading Point | 卸货点 |
| `LoadingPointName` | String | 40 | Loading Point Name | 装货点名称 |
| `UnloadingPointName` | String | 40 | Unloading Point Name | 卸货点名称 |
| `ShippingCondition` | String | 2 | Shipping Condition | 装运条件 |
| `IncotermsClassification` | String | 3 | Incoterms | 国际贸易条款 |
| `IncotermsTransferLocation` | String | 28 | Incoterms Location | 国际贸易条款地点 |
| `Route` | String | 6 | Route | 路线 |
| `RouteDescription` | String | 40 | Route Description | 路线描述 |
| `DepartureCountry` | String | 3 | Departure Country | 出发国家 |
| `DestinationCountry` | String | 3 | Destination Country | 目的国家 |
| `DepartureLocation` | String | 20 | Departure Location | 出发地点 |
| `DestinationLocation` | String | 20 | Destination Location | 目的地点 |

### 1.2 行项目数据 / Item Data

**结构名称:** `FreightOrderReplicateRequest.Item`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `ItemNumber` | String | 6 | Item Number | 行项目编号 |
| `Material` | String | 40 | Material Number | 物料编号 |
| `MaterialDescription` | String | 40 | Material Description | 物料描述 |
| `MaterialGroup` | String | 9 | Material Group | 物料组 |
| `Batch` | String | 10 | Batch Number | 批次号 |
| `SerialNumber` | String | 18 | Serial Number | 序列号 |
| `Quantity` | Decimal | 15 | Quantity | 数量 |
| `QuantityUnit` | String | 3 | Quantity Unit | 数量单位 |
| `GrossWeight` | Decimal | 15 | Gross Weight | 毛重 |
| `NetWeight` | Decimal | 15 | Net Weight | 净重 |
| `WeightUnit` | String | 3 | Weight Unit | 重量单位 |
| `Volume` | Decimal | 15 | Volume | 体积 |
| `VolumeUnit` | String | 3 | Volume Unit | 体积单位 |
| `PackageQuantity` | Integer | - | Package Quantity | 包装数量 |
| `PackageType` | String | 4 | Package Type | 包装类型 |
| `CountryOfOrigin` | String | 3 | Country of Origin | 原产国 |
| `Manufacturer` | String | 10 | Manufacturer | 制造商 |
| `ManufacturerPartNumber` | String | 40 | Manufacturer Part Number | 制造商零件号 |
| `CustomerMaterial` | String | 35 | Customer Material Number | 客户物料编号 |
| `BatchByCustomer` | String | 10 | Customer Batch Number | 客户批次号 |
| `StorageLocation` | String | 4 | Storage Location | 库存地点 |
| `Plant` | String | 4 | Plant | 工厂 |
| `SalesOrder` | String | 10 | Sales Order | 销售订单 |
| `SalesOrderItem` | String | 6 | Sales Order Item | 销售订单行项目 |
| `DeliveryDocument` | String | 10 | Delivery Document | 交货单 |
| `DeliveryDocumentItem` | String | 6 | Delivery Document Item | 交货单行项目 |
| `ReferenceDocument` | String | 10 | Reference Document | 参考单据 |
| `ReferenceDocumentItem` | String | 6 | Reference Document Item | 参考单据行项目 |
| `CustomsTariffNumber` | String | 16 | Customs Tariff Number | 海关关税编号 |
| `HazardousMaterialNumber` | String | 40 | Hazardous Material Number | 危险物料编号 |

### 1.3 合作伙伴数据 / Partner Data

**结构名称:** `FreightOrderReplicateRequest.Partner`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `PartnerFunction` | String | 2 | Partner Function | 合作伙伴功能 |
| `PartnerNumber` | String | 10 | Partner Number | 合作伙伴编号 |
| `PartnerName` | String | 80 | Partner Name | 合作伙伴名称 |
| `AddressLine1` | String | 40 | Address Line 1 | 地址行1 |
| `AddressLine2` | String | 40 | Address Line 2 | 地址行2 |
| `City` | String | 40 | City | 城市 |
| `PostalCode` | String | 10 | Postal Code | 邮政编码 |
| `Region` | String | 3 | Region | 地区 |
| `Country` | String | 3 | Country/Region | 国家/地区 |
| `PhoneNumber` | String | 30 | Phone Number | 电话号码 |
| `EmailAddress` | String | 80 | Email Address | 电子邮件地址 |
| `ContactPerson` | String | 80 | Contact Person | 联系人 |
| `Language` | String | 2 | Language Key | 语言代码 |

---

## 2. 响应结构: FreightOrderReplicateResponse / 货运订单复制响应

**命名空间:** `http://sap.com/xi/SAPGlobal20/Global`

### 2.1 响应数据 / Response Data

**结构名称:** `FreightOrderReplicateResponse`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `FreightOrderID` | String | 20 | Freight Order ID | 货运订单编号 |
| `ReplicationStatus` | String | 1 | Replication Status | 复制状态 |
| `MessageType` | String | 1 | Message Type (E/W/I/S) | 消息类型 |
| `MessageText` | String | 220 | Message Text | 消息文本 |
| `LogItemNumber` | Integer | - | Log Item Number | 日志项目编号 |
| `LogMessage` | String | 220 | Log Message | 日志消息 |
| `LogMessageType` | String | 1 | Log Message Type | 日志消息类型 |
| `LogMessageNumber` | String | 20 | Log Message Number | 日志消息编号 |

---

## SOAP XML 示例 / SOAP XML Example

### 请求示例 / Request Example

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
    <soap:Header/>
    <soap:Body>
        <glob:FreightOrderReplicateRequest>
            <Header>
                <FreightOrderID>FO00000001</FreightOrderID>
                <FreightOrderType>F0001</FreightOrderType>
                <SourceSystem>SAP_ERP</SourceSystem>
                <TargetSystem>SAP_TMS</TargetSystem>
                <ReplicationMode>C</ReplicationMode>
                <CreationDate>2026-07-23</CreationDate>
                <PlannedDepartureDate>2026-07-23</PlannedDepartureDate>
                <PlannedArrivalDate>2026-07-25</PlannedArrivalDate>
                <TotalGrossWeight>2500.000</TotalGrossWeight>
                <WeightUnit>KG</WeightUnit>
                <NumberOfPackages>20</NumberOfPackages>
                <Carrier>CARRIER01</Carrier>
                <TransportationMode>03</TransportationMode>
            </Header>
            <Item>
                <ItemNumber>000010</ItemNumber>
                <Material>MAT-20001</Material>
                <Quantity>200.000</Quantity>
                <QuantityUnit>PC</QuantityUnit>
                <GrossWeight>250.000</GrossWeight>
                <WeightUnit>KG</WeightUnit>
                <Plant>PL01</Plant>
            </Item>
        </glob:FreightOrderReplicateRequest>
    </soap:Body>
</soap:Envelope>
```

### 响应示例 / Response Example

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
    <soap:Body>
        <glob:FreightOrderReplicateResponse>
            <FreightOrderID>FO00000001</FreightOrderID>
            <ReplicationStatus>S</ReplicationStatus>
            <MessageType>S</MessageType>
            <MessageText>Freight order replicated successfully</MessageText>
        </glob:FreightOrderReplicateResponse>
    </soap:Body>
</soap:Envelope>
```