# CO_LEIDW_SPLIT_OUTBOUND_DELIVE

**SOAP v1.0.0 — ACTIVE**

## Title / 标题
**Split Outbound Delivery Confirmation – Send to Warehouse (B2B) / 拆分出库交货确认 – 发送到仓库（B2B）**

## Operation / 操作
`SplitOutboundDeliveryConfirmation_In`

---

## Description / 描述
This asynchronous outbound service receives split outbound delivery confirmations from a third-party warehouse management system, confirming that an outbound delivery has been split into multiple partial deliveries for processing.

该异步出站服务从第三方仓库管理系统接收拆分出库交货确认，确认出库交货已被拆分为多个部分交货进行处理。

---

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

## Message Structure / 消息结构

### Request / 请求
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `SplitOutboundDeliveryConfirmation` | `LEIDW_SPLIT_CONF` | Split delivery confirmation root | 拆分交货确认根节点 |
| `?MessageHeader` | `MSG_HEADER` | Message header | 消息头 |
| `??MessageID` | `UUID` | Unique message identifier | 唯一消息标识符 |
| `??CreationDateTime` | `DATETIME` | Message creation timestamp | 消息创建时间戳 |
| `Delivery` | `DELIVERY_INFO` | Original delivery details | 原始交货信息 |
| `?DeliveryDocument` | `CHAR(10)` | Outbound delivery document number | 出库交货单据编号 |
| `?DeliveryDocumentItem` | `NUMC(6)` | Delivery item number | 交货行项目编号 |
| `?ShippingPoint` | `CHAR(4)` | Shipping point | 装运点 |
| `?WarehouseNumber` | `CHAR(3)` | Warehouse number | 仓库编号 |
| `SplitDeliveries` | Table | Split delivery details | 拆分交货详情 |
| `?SplitDeliveryDocument` | `CHAR(10)` | Split delivery document number | 拆分交货单据编号 |
| `?SplitDeliveryItem` | `NUMC(6)` | Split delivery item number | 拆分交货行项目编号 |
| `?SplitQuantity` | `QUANTITY` | Split delivery quantity | 拆分交货数量 |
| `?UnitOfMeasure` | `UNIT(3)` | Unit of measure | 计量单位 |
| `?PlannedGoodsIssueDate` | `DATE` | Planned goods issue date | 计划发货日期 |
| `?ConfirmationStatusCode` | `CHAR(2)` | Confirmation status (01=confirmed, 02=rejected) | 确认状态（01=已确认，02=已拒绝） |
| `?ReasonCode` | `CHAR(3)` | Rejection reason code | 拒绝原因代码 |

### Response / 响应
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `Return` | `BAPIRETURN` | Processing result | 处理结果 |
| `?Type` | `CHAR(1)` | Message type (S/E/W/I) | 消息类型（成功/错误/警告/信息） |
| `?Code` | `CHAR(20)` | Message code | 消息代码 |
| `?Message` | `CHAR(220)` | Message text | 消息文本 |

---

## Example Payload / 示例负载

### Request
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SplitOutboundDeliveryConfirmation_In>
      <SplitOutboundDeliveryConfirmation>
        <MessageHeader>
          <MessageID>660e8400-e29b-41d4-a716-446655440001</MessageID>
          <CreationDateTime>2026-07-24T10:15:00Z</CreationDateTime>
        </MessageHeader>
        <Delivery>
          <DeliveryDocument>80000123</DeliveryDocument>
          <DeliveryDocumentItem>10</DeliveryDocumentItem>
          <ShippingPoint>PL01</ShippingPoint>
          <WarehouseNumber>W01</WarehouseNumber>
        </Delivery>
        <SplitDeliveries>
          <item>
            <SplitDeliveryDocument>80000124</SplitDeliveryDocument>
            <SplitDeliveryItem>10</SplitDeliveryItem>
            <SplitQuantity>300</SplitQuantity>
            <UnitOfMeasure>EA</UnitOfMeasure>
            <PlannedGoodsIssueDate>2026-07-25</PlannedGoodsIssueDate>
            <ConfirmationStatusCode>01</ConfirmationStatusCode>
          </item>
          <item>
            <SplitDeliveryDocument>80000125</SplitDeliveryDocument>
            <SplitDeliveryItem>10</SplitDeliveryItem>
            <SplitQuantity>200</SplitQuantity>
            <UnitOfMeasure>EA</UnitOfMeasure>
            <PlannedGoodsIssueDate>2026-07-26</PlannedGoodsIssueDate>
            <ConfirmationStatusCode>01</ConfirmationStatusCode>
          </item>
        </SplitDeliveries>
      </SplitOutboundDeliveryConfirmation>
    </SplitOutboundDeliveryConfirmation_In>
  </soap:Body>
</soap:Envelope>
```

### Response
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SplitOutboundDeliveryConfirmation_InResponse>
      <Return>
        <Type>S</Type>
        <Code>SPLIT_000</Code>
        <Message>Split confirmation processed successfully / 拆分确认已成功处理</Message>
      </Return>
    </SplitOutboundDeliveryConfirmation_InResponse>
  </soap:Body>
</soap:Envelope>
```

---

## Error Codes / 错误代码
| Code | Description (EN) | Description (CN) |
|------|------------------|------------------|
| `SPLIT_001` | Original delivery document not found | 未找到原始交货单据 |
| `SPLIT_002` | Split quantity exceeds original quantity | 拆分数量超过原始数量 |
| `SPLIT_003` | Duplicate split delivery document number | 重复的拆分交货单据编号 |
| `SPLIT_004` | Warehouse number is invalid | 仓库编号无效 |
| `SPLIT_005` | Confirmation status code is invalid | 确认状态代码无效 |

---

## Notes / 备注
- This service is part of the LE-IDW (Decentralized WMS Integration) scope / 该服务是LE-IDW（分散式WMS集成）范围的一部分
- Communication scenario: SAP_COM_0440 / 通信场景：SAP_COM_0440
- Maximum 999 split delivery items per message / 每条消息最多999个拆分交货行项
- The split confirmation updates the delivery document flow in S/4HANA / 拆分确认更新S/4HANA中的交货单据流
