---
# API: Maintenance Order (ODATAV4)
# File: CE_API_MAINTENANCEORDER_0002.md
# Version: 2.3.2
# Status: ACTIVE
# Protocol: ODATAV4
# Source URL: https://api.sap.com/api/CE_API_MAINTENANCEORDER_0002/overview
# Generated: 2026-07-23 14:17:02
---

# Maintenance Order / 维修工单 API (ODATAV4)

> **API 版本:** 2.3.2 | **状态:** ACTIVE | **协议:** ODATAV4  
> **技术名称:** `CE_API_MAINTENANCEORDER_0002`  
> **服务根路径:** `/sap/opu/odata4/sap/ce_api_maintenanceorder/srvd_a2x/sap/maintenanceorder/0002/`  
> **SAP 通信场景:** `SAP_COM_0549`

## 概述 / Overview

该服务用于对维修工单及其操作执行创建、读取、更新和删除（CRUD）操作。支持维修工单的创建、修改、状态管理和操作工序管理。

This synchronous inbound ODATAV4 service enables CRUD operations on maintenance orders and their operations. Supports order creation, modification, status management, and operation sequence management.

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

---

## 实体列表 / Entity List

| # | 实体名称 | 描述 (EN) | 描述 (CN) | 主键 |
|---|----------|-----------|-----------|------|
| 1 | `A_MaintenanceOrder` | Maintenance Order | 维修工单 | `MaintenanceOrder` |
| 2 | `A_MaintenanceOrderOperation` | Maintenance Order Operation | 维修工单操作工序 | `MaintenanceOrder`, `MaintenanceOrderOperation` |

---

## 1. A_MaintenanceOrder — 维修工单

**实体集合路径:** `A_MaintenanceOrder`  
**主键 (Key):** `MaintenanceOrder` (CHAR 12)

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `MaintenanceOrder` | String | 12 | Maintenance Order Number | 维修工单编号 (主键) |
| `MaintenanceOrderType` | String | 4 | Order Type | 工单类型 |
| `MaintenancePlanningPlant` | String | 4 | Planning Plant | 计划工厂 |
| `MaintenancePlant` | String | 4 | Maintenance Plant | 维修工厂 |
| `Equipment` | String | 18 | Equipment Number | 设备编号 |
| `FunctionalLocation` | String | 40 | Functional Location | 功能位置 |
| `OrderStatus` | String | 32 | Order Status | 工单状态 |
| `OrderStatusDescription` | String | 60 | Order Status Description | 工单状态描述 |
| `BasicStartDate` | DateTime | - | Basic Start Date | 基本开始日期 |
| `BasicEndDate` | DateTime | - | Basic End Date | 基本结束日期 |
| `BasicStartTime` | Time | - | Basic Start Time | 基本开始时间 |
| `BasicEndTime` | Time | - | Basic End Time | 基本结束时间 |
| `Priority` | String | 1 | Priority | 优先级 |
| `PriorityDescription` | String | 40 | Priority Description | 优先级描述 |
| `MaintenanceActivityType` | String | 4 | Maintenance Activity Type | 维修活动类型 |
| `BreakdownIndicator` | Boolean | - | Breakdown Indicator | 故障标识 |
| `OrderDescription` | String | 40 | Order Description | 工单描述 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `CreationDate` | DateTime | - | Created On | 创建日期 |
| `LastChangedByUser` | String | 12 | Last Changed By | 最后更改人 |
| `LastChangeDate` | DateTime | - | Last Changed On | 最后更改日期 |
| `MaintenanceOrderCategory` | String | 1 | Order Category | 工单类别 |
| `CostCenter` | String | 10 | Cost Center | 成本中心 |
| `PlantSection` | String | 4 | Plant Section | 工厂区域 |
| `WorkCenter` | String | 8 | Work Center | 工作中心 |
| `ABCIndicator` | String | 1 | ABC Indicator | ABC标识 |
| `Location` | String | 10 | Location | 位置 |
| `SortField` | String | 20 | Sort Field | 排序字段 |
| `SystemStatus` | String | 40 | System Status | 系统状态 |
| `UserStatus` | String | 40 | User Status | 用户状态 |

---

## 2. A_MaintenanceOrderOperation — 维修工单操作工序

**实体集合路径:** `A_MaintenanceOrderOperation`  
**主键 (Key):** `MaintenanceOrder`, `MaintenanceOrderOperation`

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `MaintenanceOrder` | String | 12 | Maintenance Order Number | 维修工单编号 (主键) |
| `MaintenanceOrderOperation` | String | 4 | Operation Number | 操作工序编号 (主键) |
| `OperationShortText` | String | 40 | Operation Short Text | 操作工序短文本 |
| `WorkCenter` | String | 8 | Work Center | 工作中心 |
| `Plant` | String | 4 | Plant | 工厂 |
| `ControlKey` | String | 4 | Control Key | 控制码 |
| `ActivityType` | String | 6 | Activity Type | 作业类型 |
| `StandardValue1` | Decimal | 5 | Standard Value 1 | 标准值1 |
| `StandardValue2` | Decimal | 5 | Standard Value 2 | 标准值2 |
| `StandardValue3` | Decimal | 5 | Standard Value 3 | 标准值3 |
| `StandardValue4` | Decimal | 5 | Standard Value 4 | 标准值4 |
| `StandardValue5` | Decimal | 5 | Standard Value 5 | 标准值5 |
| `StandardValue6` | Decimal | 5 | Standard Value 6 | 标准值6 |
| `WorkQuantity` | Decimal | 5 | Work Quantity | 工作量 |
| `UnitOfMeasure` | String | 3 | Unit of Measure | 计量单位 |
| `DurationWork` | Decimal | 5 | Duration of Work | 工作持续时间 |
| `DurationPeriod` | String | 1 | Duration Period Unit | 持续时间单位 |
| `SystemStatus` | String | 40 | System Status | 系统状态 |
| `UserStatus` | String | 40 | User Status | 用户状态 |

---

## 相关链接 / Related Links

- [SAP Help Portal: Maintenance Order](https://help.sap.com/viewer/product/SAP_S4HANA_ON-PREMISE/latest/en-US)
- [API Business Hub](https://api.sap.com/api/CE_API_MAINTENANCEORDER_0002/overview)
