# ECC_CASHPOINTCLOSINGDOCCNCNO

**SOAP v1.0.0 — ACTIVE**

## Title / 标题
**External Cash Point - Inbound Closing Reversal Notification / 外部收银点 - 入库结算冲销通知**

## Operation / 操作
`CashPointClosingReversalNotification`

---

## Description / 描述
Transfer cash desk closing cancellation data to Contract Accounting (FI-CA) using this inbound asynchronous service.

使用此入站异步服务将收银台结算取消数据传输到合同会计（FI-CA）。

---

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

## Message Structure / 消息结构

### Request / 请求
| Element | Type | Description (EN) | Description (CN) |
|---------|------|------------------|------------------|
| `CashPointClosing` | `CASHPOINT_CLOSE` | Cash point closing header | 收银点结算抬头 |
| `?CashPointID` | `CHAR(10)` | Cash point ID | 收银点编号 |
| `?ClosingDate` | `DATE` | Original closing date | 原始结算日期 |
| `?ClosingTime` | `TIME` | Original closing time | 原始结算时间 |
| `?CompanyCode` | `CHAR(4)` | Company code | 公司代码 |
| `ReversalReason` | `CHAR(2)` | Reason for reversal | 冲销原因 |
| `ReferenceDocument` | `CHAR(20)` | Original closing document | 原始结算凭证 |
| `Items` | Table | Reversal items | 冲销项目 |
| `?PaymentMethod` | `CHAR(1)` | Payment method | 付款方式 |
| `?Amount` | `DECIMAL` | Reversed amount | 冲销金额 |
| `?Currency` | `CUKY(5)` | Currency | 货币 |

### 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 | 消息文本 |
| `ReversalDocument` | `CHAR(20)` | Reversal document number | 冲销凭证编号 |

---

## Example Payload / 示例负载

### Request
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CashPointClosingReversalNotification>
      <CashPointClosing>
        <CashPointID>CP-001</CashPointID>
        <ClosingDate>2026-07-23</ClosingDate>
        <ClosingTime>18:30:00</ClosingTime>
        <CompanyCode>1000</CompanyCode>
      </CashPointClosing>
      <ReversalReason>01</ReversalReason>
      <ReferenceDocument>CLOSE-20260723-001</ReferenceDocument>
      <Items>
        <item>
          <PaymentMethod>C</PaymentMethod>
          <Amount>15000.00</Amount>
          <Currency>CNY</Currency>
        </item>
        <item>
          <PaymentMethod>K</PaymentMethod>
          <Amount>5000.00</Amount>
          <Currency>CNY</Currency>
        </item>
      </Items>
    </CashPointClosingReversalNotification>
  </soap:Body>
</soap:Envelope>
```

### Response
```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CashPointClosingReversalNotificationResponse>
      <Return>
        <Type>S</Type>
        <Message>Closing reversal processed successfully / 结算冲销处理成功</Message>
      </Return>
      <ReversalDocument>REV-20260724-001</ReversalDocument>
    </CashPointClosingReversalNotificationResponse>
  </soap:Body>
</soap:Envelope>
```

---

## Error Codes / 错误代码
| Code | Description (EN) | Description (CN) |
|------|------------------|------------------|
| `CPC_001` | Cash point not found | 未找到收银点 |
| `CPC_002` | Original closing document not found | 未找到原始结算凭证 |
| `CPC_003` | Closing document already reversed | 结算凭证已冲销 |
| `CPC_004` | Reversal amount exceeds original | 冲销金额超出原始金额 |

---

## Notes / 备注
- The original closing document must exist before reversal / 冲销前原始结算凭证必须存在
- Reversal reason must be a valid code in the system / 冲销原因必须是系统中的有效代码
- This is an asynchronous service; monitor the response for confirmation / 此为异步服务，请监控响应的确认信息