---
# API: Process Order (A2X)
# File: API_PROCESS_ORDER_2_SRV.md
# Version: 1.2.0
# Status: ACTIVE
# Protocol: OData V2
# Source URL: https://api.sap.com/api/API_PROCESS_ORDER_2_SRV/overview
# Generated: 2026-07-23 14:17:02
---

# Process Order / 生产订单 API

> **API 版本:** 1.2.0 | **状态:** ACTIVE | **协议:** OData V2  
> **技术名称:** `API_PROCESS_ORDER_2_SRV`  
> **服务根路径:** `/sap/opu/odata/sap/API_PROCESS_ORDER_2_SRV`  
> **SAP 通信场景:** `SAP_COM_0110`

## 概述 / Overview

该服务支持对生产订单主数据进行创建、读取、更新和删除（CRUD）操作。

This synchronous inbound OData V2 service enables CRUD operations on Process Order (Manufacturing Order) master data.

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

---

## 实体列表 / Entity List

| # | 实体名称 | 描述 (EN) | 描述 (CN) | 主键 |
|---|----------|-----------|-----------|------|
| 1 | `A_ProcessOrder` | Process Order | 生产订单 | `ManufacturingOrder` |

---

## 1. A_ProcessOrder — 生产订单

**实体集合路径:** `A_ProcessOrder`  
**主键 (Key):** `ManufacturingOrder` (CHAR 12)  
**ETag:** 支持

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `ManufacturingOrder` | String | 12 | Manufacturing Order | 生产订单 (主键) |
| `ManufacturingOrderType` | String | 4 | Manufacturing Order Type | 生产订单类型 |
| `Material` | String | 40 | Material | 物料 |
| `Plant` | String | 4 | Plant | 工厂 |
| `Quantity` | Decimal | 15 | Total Quantity | 总数量 |
| `Unit` | String | 3 | Base Unit of Measure | 基本计量单位 |
| `OrderStatus` | String | 2 | Order Status | 订单状态 |
| `PlannedStartDate` | DateTime | - | Planned Start Date | 计划开始日期 |
| `PlannedEndDate` | DateTime | - | Planned End Date | 计划结束日期 |
| `ActualStartDate` | DateTime | - | Actual Start Date | 实际开始日期 |
| `ActualEndDate` | DateTime | - | Actual End Date | 实际结束日期 |
| `ConfirmedYieldQuantity` | Decimal | 15 | Confirmed Yield Quantity | 确认合格数量 |
| `ScrapQuantity` | Decimal | 15 | Scrap Quantity | 废品数量 |
| `GoodsMovementStatus` | String | 1 | Goods Movement Status | 货物移动状态 |
| `OrderStatus` | String | 2 | Order Status | 订单状态 |
| `Material` | String | 40 | Material | 物料 |
| `Plant` | String | 4 | Plant | 工厂 |
| `Unit` | String | 3 | Base Unit of Measure | 基本计量单位 |
| `ProductionSupervisor` | String | 4 | Production Supervisor | 生产主管 |
| `PlannedTotalQuantity` | Decimal | 15 | Planned Total Quantity | 计划总数量 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `CreationDate` | DateTime | - | Created On | 创建日期 |
| `LastChangedByUser` | String | 12 | Last Changed By | 最后更改人 |
| `LastChangeDate` | DateTime | - | Last Changed On | 最后更改日期 |

### 导航属性 / Navigation Properties

| 属性名 | 目标实体 | 基数 | 描述 |
|--------|----------|------|------|
| `to_ProcessOrderConfirmation` | A_ProcOrderConfirmation | 0..* | 生产订单确认 |
| `to_Material` | A_Material | 0..1 | 物料 |

---

## 示例 / Sample

### 读取生产订单列表 (GET)

```http
GET /sap/opu/odata/sap/API_PROCESS_ORDER_2_SRV/A_ProcessOrder
Accept: application/json
```

### 读取单个生产订单 (GET by Key)

```http
GET /sap/opu/odata/sap/API_PROCESS_ORDER_2_SRV/A_ProcessOrder(ManufacturingOrder='MO00001')
Accept: application/json
```

### 响应示例 / Response Sample

```json
{
  "d": {
    "results": [
      {
        "ManufacturingOrder": "MO00001",
        "ManufacturingOrderType": "PP01",
        "Material": "MAT001",
        "Plant": "PL01",
        "Quantity": "1000.000",
        "Unit": "PC",
        "OrderStatus": "01",
        "PlannedStartDate": "/Date(1768003200000)/",
        "PlannedEndDate": "/Date(1770595200000)/"
      }
    ]
  }
}
```
