---
# API: Profit Center - Create, Delete
# File: PROFITCENTREREPLICATIONBULKREQ.md
# Version: 1.0.0
# Status: ACTIVE
# Protocol: SOAP (Synchronous/Asynchronous)
# Source URL: https://api.sap.com/api/PROFITCENTREREPLICATIONBULKREQ/overview
# Generated: 2026-07-23 14:17:02
---

# Profit Center - Create, Delete / 利润中心 - 创建, 删除

> **API 版本:** 1.0.0 | **状态:** ACTIVE | **协议:** SOAP
> **技术名称:** `PROFITCENTREREPLICATIONBULKREQ`
> **WSDL 绑定:** `/sap/bc/srt/wsdl/flv_10002A111AD1/bndr_url/sap/bc/srt/rfc/sap/profitcenterreplicate/100/profitcenterreplicate/binding`
> **SAP 通信场景:** `SAP_COM_0110`

## 概述 / Overview

该服务用于批量复制利润中心数据，支持利润中心的新建与删除操作。包含利润中心编号、控制范围、名称等关键字段。

This service replicates profit center data in bulk, supporting creation and deletion of profit centers. It includes key fields such as ProfitCenter, ControllingArea, ProfitCenterName, etc.

**API 业务加速器中心:** [https://api.sap.com/api/PROFITCENTREREPLICATIONBULKREQ/overview](https://api.sap.com/api/PROFITCENTREREPLICATIONBULKREQ/overview)

---

## 消息结构 / Message Structure

| # | 结构名称 | 描述 (EN) | 描述 (CN) |
|---|----------|-----------|-----------|
| 1 | `ProfitCenterReplicateRequest` | Profit Center Replicate Request | 利润中心复制请求 |
| 2 | `ProfitCenterReplicateResponse` | Profit Center Replicate Response | 利润中心复制响应 |

---

## 1. 请求结构: ProfitCenterReplicateRequest / 利润中心复制请求

**命名空间:** `urn:sap-com:document:sap:soap:functions:mc-style`

```
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:ns="urn:sap-com:document:sap:soap:functions:mc-style">
  <soap:Header/>
  <soap:Body>
    <ns:ProfitCenterReplicate>
      <ProfitCenters>
        <item>
          <ProfitCenter>PC1000</ProfitCenter>
          <ControllingArea>CA01</ControllingArea>
          <ProfitCenterName>华东区域利润中心</ProfitCenterName>
          <Language>ZH</Language>
          <Currency>CNY</Currency>
          <ValidFrom>2026-01-01</ValidFrom>
          <ValidTo>9999-12-31</ValidTo>
          <IsActive>true</IsActive>
          <Operation>CREATE</Operation>
        </item>
      </ProfitCenters>
    </ns:ProfitCenterReplicate>
  </soap:Body>
</soap:Envelope>
```

## 2. 响应结构: ProfitCenterReplicateResponse / 利润中心复制响应

```
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:ns="urn:sap-com:document:sap:soap:functions:mc-style">
  <soap:Header/>
  <soap:Body>
    <ns:ProfitCenterReplicateResponse>
      <Success>true</Success>
      <ProfitCenters>
        <item>
          <ProfitCenter>PC1000</ProfitCenter>
          <ControllingArea>CA01</ControllingArea>
          <Message>Profit center created successfully</Message>
        </item>
      </ProfitCenters>
    </ns:ProfitCenterReplicateResponse>
  </soap:Body>
</soap:Envelope>
```

---

## 字段详细说明 / Field Details

### ProfitCenter 利润中心字段

| 字段 | 类型 | 描述 (EN) | 描述 (CN) | 备注 |
|------|------|-----------|-----------|------|
| `ProfitCenter` | STRING | Profit Center | 利润中心 | 字符长度: 10 |
| `ControllingArea` | STRING | Controlling Area | 控制范围 | 字符长度: 4 |
| `ProfitCenterName` | STRING | Profit Center Name | 利润中心名称 | 字符长度: 40 |
| `Language` | STRING | Language | 语言 | ISO 语言代码 |
| `Currency` | STRING | Currency | 货币 | ISO 货币代码 |
| `ValidFrom` | DATE | Valid From Date | 有效起始日期 | 格式: YYYY-MM-DD |
| `ValidTo` | DATE | Valid To Date | 有效截止日期 | 格式: YYYY-MM-DD |
| `IsActive` | BOOLEAN | Active Status | 激活状态 | true/false |
| `Operation` | STRING | Operation Type | 操作类型 | CREATE / DELETE |

---

## 错误处理 / Error Handling

| HTTP状态码 | 错误代码 | 描述 (EN) | 描述 (CN) |
|-----------|----------|-----------|-----------|
| 400 | `INVALID_PROFIT_CENTER` | Invalid profit center data | 无效的利润中心数据 |
| 500 | `REPLICATION_FAILED` | Profit center replication failed | 利润中心复制失败 |

---

## 使用示例 / Usage Examples

### PowerShell 调用示例

```powershell
$body = "<soap:Envelope xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ns=""urn:sap-com:document:sap:soap:functions:mc-style""><soap:Header/><soap:Body><ns:ProfitCenterReplicate><ProfitCenters><item><ProfitCenter>PC1000</ProfitCenter><ControllingArea>CA01</ControllingArea><ProfitCenterName>华东区域利润中心</ProfitCenterName><Language>ZH</Language><Currency>CNY</Currency><Operation>CREATE</Operation></item></ProfitCenters></ns:ProfitCenterReplicate></soap:Body></soap:Envelope>"

$response = Invoke-WebRequest -Uri "https://your-sap-system.com/sap/bc/srt/rfc/sap/profitcenterreplicate/100/profitcenterreplicate/binding" -Method Post -Body $body -ContentType "text/xml; charset=utf-8"
$response.Content
```

---

## 相关资源 / Related Resources

- SAP API Business Hub: [Profit Center](https://api.sap.com/api/PROFITCENTREREPLICATIONBULKREQ/overview)
- SAP Communication Scenario: SAP_COM_0110
