# CO_MDG_BP_RPLCTCO

**SOAP v1.0.0 — ACTIVE**

## Title / 标题
**Business Partner - Send Confirmation from SAP S/4HANA Cloud to Client / 业务伙伴 - 从 SAP S/4HANA Cloud 向客户端发送确认**

## Operation / 操作
`BusinessPartnerReplicationConfirmationOut`

---

## Description / 描述
Sends Business Partner data replication status from SAP S/4HANA Cloud to an external client system using this asynchronous outbound service.

使用此异步出站服务，将业务伙伴数据复制状态从 SAP S/4HANA Cloud 发送到外部客户端系统。

---

## Endpoint / 端点
| Environment | URL |
|-------------|-----|
| Production | `https://sap.example.com/sap/bc/srt/rfc/sap/CO_MDG_BP_RPLCTCO` |
| Test | `https://sap-test.example.com/sap/bc/srt/rfc/sap/CO_MDG_BP_RPLCTCO` |

## Message Structure / 消息结构

### Request / 请求
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `BusinessPartnerConfirmation` | Table | BP replication confirmations | 业务伙伴复制确认 |
| `?BusinessPartner` | `CHAR(10)` | Business partner number | 业务伙伴编号 |
| `?BPUUID` | `RAW(16)` | Business partner UUID | 业务伙伴全局唯一标识 |
| `?Status` | `CHAR(1)` | Replication status (S/E) | 复制状态（成功/错误） |
| `?StatusMessage` | `CHAR(220)` | Detailed status message | 详细状态消息 |
| `?ProcessedAt` | `TIMESTAMP` | Processing timestamp | 处理时间戳 |
| `?ErrorCategory` | `CHAR(2)` | Error category code | 错误类别代码 |

### Response / 响应
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `Return` | `BAPIRETURN` | Acknowledgement of receipt | 接收确认 |
| `?Type` | `CHAR(1)` | Message type (S/E/W/I) | 消息类型（成功/错误/警告/信息） |
| `?Message` | `CHAR(220)` | Acknowledgement message | 确认消息文本 |

---

## Example Payload / 示例负载

### Request
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BusinessPartnerReplicationConfirmationOut>
      <BusinessPartnerConfirmation>
        <item>
          <BusinessPartner>BP1000</BusinessPartner>
          <BPUUID>A1B2C3D4E5F6A7B8C9D0E1F2A3B4C5D6</BPUUID>
          <Status>S</Status>
          <StatusMessage>BP replicated successfully / 业务伙伴复制成功</StatusMessage>
          <ProcessedAt>2026-07-23T14:30:00+08:00</ProcessedAt>
        </item>
        <item>
          <BusinessPartner>BP1001</BusinessPartner>
          <BPUUID>E7F8A9B0C1D2E3F4A5B6C7D8E9F0A1B2</BPUUID>
          <Status>E</Status>
          <StatusMessage>BP number already exists in target / 目标系统中业务伙伴编号已存在</StatusMessage>
          <ProcessedAt>2026-07-23T14:30:02+08:00</ProcessedAt>
          <ErrorCategory>01</ErrorCategory>
        </item>
      </BusinessPartnerConfirmation>
    </BusinessPartnerReplicationConfirmationOut>
  </soap:Body>
</soap:Envelope>
```

### Response
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BusinessPartnerReplicationConfirmationOutResponse>
      <Return>
        <Type>S</Type>
        <Message>Confirmation received / 确认已接收</Message>
      </Return>
    </BusinessPartnerReplicationConfirmationOutResponse>
  </soap:Body>
</soap:Envelope>
```

---

## Error Codes / 错误代码
| Code | Description (EN) | Description (CN) |
|------|------------------|------------------|
| `BPC_001` | Business partner not found | 未找到业务伙伴 |
| `BPC_002` | Invalid business partner UUID | 无效的业务伙伴UUID |
| `BPC_003` | Replication timeout occurred | 复制超时 |
| `BPC_004` | Target system unavailable | 目标系统不可用 |
| `BPC_005` | Data mapping error | 数据映射错误 |

## Notes / 备注
- This is an asynchronous outbound confirmation service / 这是一个异步出站确认服务
- Confirmations correspond to replication requests from CO_MDG_BP_RPLCTRQ / 确认与 CO_MDG_BP_RPLCTRQ 的复制请求对应
- Failed items (Status=E) include an ErrorCategory for troubleshooting / 失败项（Status=E）包含用于故障排除的错误类别
- Max 5000 confirmation items per message / 每条消息最多 5000 条确认项