# DELIVERYREQUEST_IN

**SOAP v1.1.0 — ACTIVE**

## Title / 标题
**Inbound Delivery - Create (B2B) / 入库交货 - 创建（B2B）**

## Operation / 操作
`InboundDeliveryCreate`

---

## Description / 描述
Create an inbound delivery based on incoming notification announcing the arrival of ordered material with this asynchronous inbound service.

使用此异步入站服务根据通知创建入库交货，通知宣布订购物料的到达。

---

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

## Message Structure / 消息结构

### Request / 请求
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `InboundDelivery` | `DELIVERY_IN` | Inbound delivery header | 入库交货抬头 |
| `?Supplier` | `CHAR(10)` | Supplier number | 供应商编号 |
| `?Plant` | `CHAR(4)` | Receiving plant | 收货工厂 |
| `?DeliveryDate` | `DATE` | Expected delivery date | 预计交货日期 |
| `?UnloadingPoint` | `CHAR(25)` | Unloading point name | 卸货点名称 |
| `Items` | Table | Inbound delivery items | 入库交货项目 |
| `?Material` | `CHAR(40)` | Material number | 物料编号 |
| `?Quantity` | `QUAN(13)` | Delivery quantity | 交货数量 |
| `?UoM` | `UNIT(3)` | Unit of measure | 计量单位 |
| `?Batch` | `CHAR(10)` | Batch number | 批次号 |

### Response / 响应
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `Return` | `BAPIRETURN` | Application log message | 应用程序日志消息 |
| `?Type` | `CHAR(1)` | Message type (S/E/W/I) | 消息类型（成功/错误/警告/信息） |
| `?Message` | `CHAR(220)` | Message text | 消息文本 |
| `DeliveryNumber` | `CHAR(10)` | Created inbound delivery number | 已创建的入库交货编号 |

---

## Example Payload / 示例负载

### Request
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <InboundDeliveryCreate>
      <InboundDelivery>
        <Supplier>100100</Supplier>
        <Plant>PL01</Plant>
        <DeliveryDate>2026-07-24</DeliveryDate>
        <UnloadingPoint>BAY-01</UnloadingPoint>
      </InboundDelivery>
      <Items>
        <item>
          <Material>MAT-001</Material>
          <Quantity>500.00</Quantity>
          <UoM>EA</UoM>
          <Batch>B20260701</Batch>
        </item>
        <item>
          <Material>MAT-002</Material>
          <Quantity>200.00</Quantity>
          <UoM>KG</UoM>
        </item>
      </Items>
    </InboundDeliveryCreate>
  </soap:Body>
</soap:Envelope>
```

### Response
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <InboundDeliveryCreateResponse>
      <Return>
        <Type>S</Type>
        <Message>Inbound delivery created successfully / 入库交货创建成功</Message>
      </Return>
      <DeliveryNumber>0080000001</DeliveryNumber>
    </InboundDeliveryCreateResponse>
  </soap:Body>
</soap:Envelope>
```

---

## Error Codes / 错误代码
| Code | Description (EN) | Description (CN) |
|------|------------------|------------------|
| `DEL_001` | Supplier not found | 未找到供应商 |
| `DEL_002` | Material not found in plant | 工厂中未找到物料 |
| `DEL_003` | Delivery date in the past | 交货日期为过去日期 |
| `DEL_004` | Duplicate delivery reference | 重复的交货参考 |

---

## Notes / 备注
- This service is asynchronous; check the delivery number in response for confirmation / 此服务为异步方式，请检查响应中的交货编号以确认
- Maximum 999 items per delivery / 每次交货最多999个项目
- Supplier and material must exist in SAP S/4HANA before calling / 调用前供应商和物料必须存在于SAP S/4HANA中