---
# API: Service Entry Sheet - Approve, Reject
# File: CE_SERVICEENTRYSHEETS4APPROVALDEC.md
# Version: 1.0.1
# Status: ACTIVE
# Protocol: SOAP (Inbound)
# Source URL: https://api.sap.com/api/CE_SERVICEENTRYSHEETS4APPROVALDEC/overview
# Generated: 2026-07-23
---

# Service Entry Sheet - Approve, Reject / 服务条目表 - 批准, 拒绝

> **API 版本:** 1.0.1 | **状态:** ACTIVE | **协议:** SOAP  
> **技术名称:** `CE_SERVICEENTRYSHEETS4APPROVALDEC`  
> **操作:** `ServiceEntrySheetApproveReject`  
> **SAP 通信场景:** `SAP_COM_0642`

## 概述 / Overview

该 SOAP 入站服务用于批准或拒绝服务条目表（SES），控制服务采购的验收流程。

This inbound SOAP service approves or rejects service entry sheets (SES), controlling the acceptance process for service procurement.

---

## 消息结构 / Message Structure

| # | 结构名称 | 描述 (EN) | 描述 (CN) |
|---|----------|-----------|-----------|
| 1 | `ServiceEntrySheetApproveRejectRequest` | Service Entry Sheet Approve/Reject Request | 服务条目表批准/拒绝请求 |
| 2 | `ServiceEntrySheetApproveRejectResponse` | Service Entry Sheet Approve/Reject Response | 服务条目表批准/拒绝响应 |

---

## 1. 请求结构: ServiceEntrySheetApproveRejectRequest / 服务条目表批准/拒绝请求

**命名空间:** `http://sap.com/xi/SAPGlobal20/Global`

### 1.1 抬头数据 / Header Data

**结构名称:** `ServiceEntrySheetApproveRejectRequest.Header`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `ServiceEntrySheetID` | String | 20 | Service Entry Sheet ID | 服务条目表编号 |
| `Decision` | String | 1 | Decision (A=Approve/R=Reject) | 决策 (A=批准/R=拒绝) |
| `RejectionReason` | String | 4 | Rejection Reason | 拒绝原因 |
| `RejectionReasonText` | String | 40 | Rejection Reason Text | 拒绝原因文本 |
| `DecisionDate` | DateTime | - | Decision Date | 决策日期 |
| `DecisionTime` | Time | - | Decision Time | 决策时间 |
| `DecisionByUser` | String | 12 | Decision Made By | 决策人 |
| `DecisionByUserName` | String | 80 | Decision Maker Name | 决策人姓名 |
| `Comment` | String | 255 | Comment | 备注 |
| `ApprovalCode` | String | 4 | Approval Code | 批准代码 |
| `ApprovalCodeText` | String | 40 | Approval Code Text | 批准代码文本 |
| `DocumentType` | String | 4 | Document Type | 凭证类型 |
| `CompanyCode` | String | 4 | Company Code | 公司代码 |
| `PurchasingOrganization` | String | 4 | Purchasing Organization | 采购组织 |
| `PurchasingGroup` | String | 3 | Purchasing Group | 采购组 |
| `Supplier` | String | 10 | Supplier | 供应商 |
| `SupplierName` | String | 80 | Supplier Name | 供应商名称 |
| `Plant` | String | 4 | Plant | 工厂 |
| `Department` | String | 4 | Department | 部门 |
| `TotalNetAmount` | Decimal | 15 | Total Net Amount | 总净额 |
| `TotalTaxAmount` | Decimal | 15 | Total Tax Amount | 总税额 |
| `TotalGrossAmount` | Decimal | 15 | Total Gross Amount | 总金额 |
| `Currency` | String | 5 | Currency | 货币 |
| `ExchangeRate` | Decimal | 9 | Exchange Rate | 汇率 |
| `TaxCalculationProcedure` | String | 6 | Tax Calculation Procedure | 税收计算规则 |
| `PaymentTerms` | String | 4 | Payment Terms | 付款条件 |
| `PaymentMethod` | String | 1 | Payment Method | 支付方式 |
| `InvoiceDocumentNumber` | String | 10 | Invoice Document Number | 发票凭证编号 |
| `InvoiceFiscalYear` | String | 4 | Invoice Fiscal Year | 发票会计年度 |
| `ServiceDate` | DateTime | - | Service Date | 服务日期 |
| `ServicePeriodStart` | DateTime | - | Service Period Start | 服务期间开始 |
| `ServicePeriodEnd` | DateTime | - | Service Period End | 服务期间结束 |
| `PostingDate` | DateTime | - | Posting Date | 过账日期 |
| `AccountingPostingDate` | DateTime | - | Accounting Posting Date | 会计过账日期 |
| `DocumentDate` | DateTime | - | Document Date | 凭证日期 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `CreationDate` | DateTime | - | Creation Date | 创建日期 |
| `CreationTime` | Time | - | Creation Time | 创建时间 |
| `LastChangedByUser` | String | 12 | Last Changed By | 最后更改人 |
| `LastChangeDate` | DateTime | - | Last Change Date | 最后更改日期 |
| `LastChangeTime` | Time | - | Last Change Time | 最后更改时间 |
| `ApprovalStatus` | String | 2 | Approval Status | 批准状态 |
| `RejectionStatus` | String | 2 | Rejection Status | 拒绝状态 |
| `BlockingReason` | String | 4 | Blocking Reason | 冻结原因 |
| `ReleaseCode` | String | 4 | Release Code | 释放代码 |
| `ReleaseDate` | DateTime | - | Release Date | 释放日期 |
| `ReleasedByUser` | String | 12 | Released By | 释放人 |

### 1.1 行项目数据 / Item Data

**结构名称:** `ServiceEntrySheetApproveRejectRequest.Item`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `ItemNumber` | String | 6 | Item Number | 行项目编号 |
| `ServiceNumber` | String | 18 | Service Number | 服务编号 |
| `ServiceDescription` | String | 40 | Service Description | 服务描述 |
| `ServiceType` | String | 3 | Service Type | 服务类型 |
| `Quantity` | Decimal | 15 | Quantity | 数量 |
| `QuantityUnit` | String | 3 | Quantity Unit | 数量单位 |
| `NetPrice` | Decimal | 15 | Net Price | 净价 |
| `NetAmount` | Decimal | 15 | Net Amount | 净额 |
| `TaxAmount` | Decimal | 15 | Tax Amount | 税额 |
| `GrossAmount` | Decimal | 15 | Gross Amount | 总金额 |
| `Currency` | String | 5 | Currency | 货币 |
| `Plant` | String | 4 | Plant | 工厂 |
| `CostCenter` | String | 10 | Cost Center | 成本中心 |
| `ProfitCenter` | String | 10 | Profit Center | 利润中心 |
| `WBS_Element` | String | 24 | WBS Element | WBS 元素 |
| `InternalOrder` | String | 10 | Internal Order | 内部订单 |
| `GLAccount` | String | 10 | G/L Account | 总账科目 |
| `MaterialGroup` | String | 9 | Material Group | 物料组 |
| `PurchasingDocument` | String | 10 | Purchasing Document | 采购凭证 |
| `PurchasingDocumentItem` | String | 6 | Purchasing Document Item | 采购凭证行项目 |
| `ServiceDate` | DateTime | - | Service Date | 服务日期 |
| `EntrySheetNumber` | String | 20 | Entry Sheet Number | 条目表编号 |
| `EntrySheetItem` | String | 6 | Entry Sheet Item | 条目表行项目 |
| `AcceptanceQuantity` | Decimal | 15 | Acceptance Quantity | 验收数量 |
| `RejectionQuantity` | Decimal | 15 | Rejection Quantity | 拒绝数量 |
| `AcceptanceReason` | String | 4 | Acceptance Reason | 验收原因 |
| `RejectionReason` | String | 4 | Rejection Reason | 拒绝原因 |
| `ShortText` | String | 40 | Short Text | 短文本 |
| `LongText` | String | 255 | Long Text | 长文本 |
| `LineNumber` | String | 6 | Line Number | 行号 |
| `ExternalLineNumber` | String | 10 | External Line Number | 外部行号 |
| `Material` | String | 40 | Material Number | 物料编号 |
| `SerialNumber` | String | 18 | Serial Number | 序列号 |
| `Batch` | String | 10 | Batch Number | 批次号 |
| `StorageLocation` | String | 4 | Storage Location | 库存地点 |
| `QuantityUnit` | String | 3 | Quantity Unit | 数量单位 |

---

## 2. 响应结构: ServiceEntrySheetApproveRejectResponse / 服务条目表批准/拒绝响应

**命名空间:** `http://sap.com/xi/SAPGlobal20/Global`

### 2.1 响应数据 / Response Data

**结构名称:** `ServiceEntrySheetApproveRejectResponse`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `ServiceEntrySheetID` | String | 20 | Service Entry Sheet ID | 服务条目表编号 |
| `Decision` | String | 1 | Decision (A=Approve/R=Reject) | 决策 (A=批准/R=拒绝) |
| `Status` | String | 1 | Processing Status | 处理状态 |
| `MessageType` | String | 1 | Message Type (E/W/I/S) | 消息类型 |
| `MessageText` | String | 220 | Message Text | 消息文本 |
| `LogItemNumber` | Integer | - | Log Item Number | 日志项目编号 |
| `LogMessage` | String | 220 | Log Message | 日志消息 |
| `LogMessageType` | String | 1 | Log Message Type | 日志消息类型 |
| `LogMessageNumber` | String | 20 | Log Message Number | 日志消息编号 |

---

## SOAP XML 示例 / SOAP XML Example

### 请求示例 / Request Example

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
    <soap:Header/>
    <soap:Body>
        <glob:ServiceEntrySheetApproveRejectRequest>
            <Header>
                <ServiceEntrySheetID>SES00000001</ServiceEntrySheetID>
                <Decision>A</Decision>
                <DecisionDate>2026-07-23</DecisionDate>
                <DecisionByUser>USER01</DecisionByUser>
                <Comment>Approved per contract terms</Comment>
                <CompanyCode>1000</CompanyCode>
                <Supplier>SUPPLIER01</Supplier>
                <Currency>CNY</Currency>
                <TotalNetAmount>50000.00</TotalNetAmount>
                <TotalTaxAmount>6500.00</TotalTaxAmount>
                <TotalGrossAmount>56500.00</TotalGrossAmount>
            </Header>
            <Item>
                <ItemNumber>000010</ItemNumber>
                <ServiceNumber>SRV-10001</ServiceNumber>
                <Quantity>10.000</Quantity>
                <QuantityUnit>H</QuantityUnit>
                <NetPrice>5000.00</NetPrice>
                <NetAmount>50000.00</NetAmount>
                <Plant>PL01</Plant>
                <CostCenter>CC1000</CostCenter>
                <ServiceDate>2026-07-15</ServiceDate>
                <AcceptanceQuantity>10.000</AcceptanceQuantity>
            </Item>
        </glob:ServiceEntrySheetApproveRejectRequest>
    </soap:Body>
</soap:Envelope>
```

### 响应示例 / Response Example

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
    <soap:Body>
        <glob:ServiceEntrySheetApproveRejectResponse>
            <ServiceEntrySheetID>SES00000001</ServiceEntrySheetID>
            <Decision>A</Decision>
            <Status>S</Status>
            <MessageType>S</MessageType>
            <MessageText>Service entry sheet approved successfully</MessageText>
        </glob:ServiceEntrySheetApproveRejectResponse>
    </soap:Body>
</soap:Envelope>
```