# CO_LEIDW_WHSE_INTERM_UPD_CONF

**SOAP v1.0.0 — ACTIVE**

## Title / 标题
**Warehouse Intermediate Update Confirmation - Send to Warehouse (B2B) / 仓库中间更新确认 – 发送到仓库（B2B）**

## Operation / 操作
`WarehouseIntermediateUpdateConfirmation_In`

---

## Description / 描述
This asynchronous outbound service receives an intermediate update outbound delivery confirmation from a third-party warehouse management system. It provides interim process status updates for outbound deliveries, such as picking progress, packing status, or loading milestones.

该异步出站服务从第三方仓库管理系统接收中间更新出库交货确认。它提供出库交货的中间流程状态更新，例如拣货进度、包装状态或装运里程碑。

---

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

## Message Structure / 消息结构

### Request / 请求
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `WarehouseIntermediateUpdateConfirmation` | `LEIDW_INTERM_UPD` | Intermediate update root | 中间更新根节点 |
| `?MessageHeader` | `MSG_HEADER` | Message header | 消息头 |
| `??MessageID` | `UUID` | Unique message identifier | 唯一消息标识符 |
| `??CreationDateTime` | `DATETIME` | Message creation timestamp | 消息创建时间戳 |
| `Delivery` | `DELIVERY_KEY` | Delivery reference | 交货参考 |
| `?DeliveryDocument` | `CHAR(10)` | Outbound delivery number | 出库交货编号 |
| `?WarehouseNumber` | `CHAR(3)` | Warehouse number | 仓库编号 |
| `UpdateItems` | Table | Intermediate update items | 中间更新项 |
| `?DeliveryDocumentItem` | `NUMC(6)` | Delivery item number | 交货行项目编号 |
| `?Material` | `CHAR(40)` | Material number | 物料编号 |
| `?ProcessStageCode` | `CHAR(3)` | Process stage code | 流程阶段代码 |
| `?ProcessStageName` | `CHAR(40)` | Process stage name | 流程阶段名称 |
| `?ConfirmedQuantity` | `QUANTITY` | Quantity confirmed at this stage | 此阶段确认的数量 |
| `?UnitOfMeasure` | `UNIT(3)` | Unit of measure | 计量单位 |
| `?StageCompletionDate` | `DATETIME` | Stage completion timestamp | 阶段完成时间戳 |
| `?Status` | `CHAR(1)` | Status (I=in progress, C=completed) | 状态（I=进行中，C=已完成） |
| `?Remarks` | `CHAR(100)` | Remarks or notes | 备注或注释 |

### 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>
    <WarehouseIntermediateUpdateConfirmation_In>
      <WarehouseIntermediateUpdateConfirmation>
        <MessageHeader>
          <MessageID>880e8400-e29b-41d4-a716-446655440003</MessageID>
          <CreationDateTime>2026-07-24T14:30:00Z</CreationDateTime>
        </MessageHeader>
        <Delivery>
          <DeliveryDocument>80000200</DeliveryDocument>
          <WarehouseNumber>W01</WarehouseNumber>
        </Delivery>
        <UpdateItems>
          <item>
            <DeliveryDocumentItem>10</DeliveryDocumentItem>
            <Material>M-10001</Material>
            <ProcessStageCode>PIC</ProcessStageCode>
            <ProcessStageName>Picking</ProcessStageName>
            <ConfirmedQuantity>300</ConfirmedQuantity>
            <UnitOfMeasure>EA</UnitOfMeasure>
            <StageCompletionDate>2026-07-24T12:00:00Z</StageCompletionDate>
            <Status>C</Status>
          </item>
          <item>
            <DeliveryDocumentItem>20</DeliveryDocumentItem>
            <Material>M-10002</Material>
            <ProcessStageCode>PAC</ProcessStageCode>
            <ProcessStageName>Packaging</ProcessStageName>
            <ConfirmedQuantity>500</ConfirmedQuantity>
            <UnitOfMeasure>EA</UnitOfMeasure>
            <StageCompletionDate>2026-07-24T14:00:00Z</StageCompletionDate>
            <Status>C</Status>
          </item>
          <item>
            <DeliveryDocumentItem>10</DeliveryDocumentItem>
            <Material>M-10001</Material>
            <ProcessStageCode>PAC</ProcessStageCode>
            <ProcessStageName>Packaging</ProcessStageName>
            <ConfirmedQuantity>200</ConfirmedQuantity>
            <UnitOfMeasure>EA</UnitOfMeasure>
            <Status>I</Status>
            <Remarks>Remaining 200 EA pending packaging</Remarks>
          </item>
        </UpdateItems>
      </WarehouseIntermediateUpdateConfirmation>
    </WarehouseIntermediateUpdateConfirmation_In>
  </soap:Body>
</soap:Envelope>
```

### Response
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <WarehouseIntermediateUpdateConfirmation_InResponse>
      <Return>
        <Type>S</Type>
        <Code>IUPD_000</Code>
        <Message>Intermediate update processed successfully / 中间更新已成功处理</Message>
      </Return>
    </WarehouseIntermediateUpdateConfirmation_InResponse>
  </soap:Body>
</soap:Envelope>
```

---

## Error Codes / 错误代码
| Code | Description (EN) | Description (CN) |
|------|------------------|------------------|
| `IUPD_001` | Delivery document not found | 未找到交货单据 |
| `IUPD_002` | Invalid process stage code | 无效的流程阶段代码 |
| `IUPD_003` | Quantity exceeds delivery quantity | 数量超过交货数量 |
| `IUPD_004` | Warehouse number mismatch | 仓库编号不匹配 |
| `IUPD_005` | Item not found in delivery document | 交货单据中未找到行项目 |

---

## Notes / 备注
- This service provides real-time visibility into warehouse operations / 该服务提供仓库操作的实时可见性
- Common process stages: PIC (Picking), PAC (Packaging), LOD (Loading), STG (Staging) / 常见流程阶段：PIC（拣货）、PAC（包装）、LOD（装运）、STG（暂存）
- Communication scenario: SAP_COM_0440 / 通信场景：SAP_COM_0440
- Multiple updates per delivery are supported throughout the fulfillment process / 履行过程中支持每个交货的多次更新
