# 50. CO_FKK_CA_FACTORINGCLEARING_O.md

## SOAP v1.0.0 — ACTIVE

| Field | Value |
|-------|-------|
| Title | Factoring - Clearing Data / 保理 - 清算数据 |
| Operation | FactoringClearingData |
| Direction | OUT |
| Version | 1.0.0 |
| Status | ACTIVE |

### Namespace

```
urn:sap-com:document:sap:rfc:functions
```

### Structure

| # | Field | Type | Description (EN) | Description (ZH) |
|---|-------|------|-------------------|------------------|
| 1 | CLEARING_ID | CHAR10 | Clearing transaction identifier | 清算交易标识 |
| 2 | FACTORING_CONTRACT | CHAR10 | Factoring contract number | 保理合同编号 |
| 3 | PARTNER | CHAR10 | Business partner number | 业务伙伴编号 |
| 4 | CONTRACT_ACCOUNT | CHAR12 | Contract account number | 合同账户编号 |
| 5 | CLEARING_DATE | DATS | Clearing posting date | 清算过账日期 |
| 6 | CLEARING_AMOUNT | CURR | Amount to be cleared | 清算金额 |
| 7 | CURRENCY | CHAR5 | Transaction currency | 交易货币 |
| 8 | CLEARING_TYPE | CHAR2 | Type of clearing (partial / final) | 清算类型（部分/最终） |
| 9 | CLEARING_REASON | CHAR2 | Reason code for clearing | 清算原因代码 |
| 10 | CLEARING_REASON_TEXT | CHAR40 | Description of clearing reason | 清算原因描述 |
| 11 | OFFER_ID | CHAR10 | Reference to associated factoring offer | 关联保理要约参考 |
| 12 | DOCUMENT_NUMBER | CHAR12 | Clearing document number | 清算凭证编号 |
| 13 | FISCAL_YEAR | CHAR4 | Clearing document fiscal year | 清算凭证会计年度 |
| 14 | CLEARED_AMOUNT | CURR | Amount successfully cleared | 成功清算金额 |
| 15 | REMAINING_AMOUNT | CURR | Remaining open amount | 剩余未清金额 |
| 16 | PAYMENT_METHOD | CHAR1 | Settlement payment method | 结算支付方式 |
| 17 | PAYMENT_REFERENCE | CHAR16 | Payment reference for clearing | 清算支付参考 |
| 18 | POSTING_STATUS | CHAR1 | Posting status indicator | 过账状态标识 |
| 19 | POSTING_MESSAGE | CHAR220 | Posting result message | 过账结果消息 |
| 20 | VALUE_DATE | DATS | Value date for clearing | 清算起息日期 |
| 21 | BANK_ACCOUNT | CHAR18 | Bank account used for settlement | 结算银行账户 |
| 22 | RECONCILIATION_KEY | CHAR3 | Reconciliation key for accounting | 会计对账关键字 |

### XML Example (Response)

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <FactoringClearingData.Response xmlns="urn:sap-com:document:sap:rfc:functions">
      <CLEARING_ID>CLR0000001</CLEARING_ID>
      <FACTORING_CONTRACT>FACTR00001</FACTORING_CONTRACT>
      <PARTNER>0000000001</PARTNER>
      <CONTRACT_ACCOUNT>000000000001</CONTRACT_ACCOUNT>
      <CLEARING_DATE>2026-07-23</CLEARING_DATE>
      <CLEARING_AMOUNT>50000.00</CLEARING_AMOUNT>
      <CURRENCY>CNY</CURRENCY>
      <CLEARING_TYPE>02</CLEARING_TYPE>
      <CLEARING_REASON>01</CLEARING_REASON>
      <CLEARING_REASON_TEXT>Partial clearing after invoice maturity</CLEARING_REASON_TEXT>
      <OFFER_ID>OFF0000001</OFFER_ID>
      <DOCUMENT_NUMBER>000000010123</DOCUMENT_NUMBER>
      <FISCAL_YEAR>2026</FISCAL_YEAR>
      <CLEARED_AMOUNT>50000.00</CLEARED_AMOUNT>
      <REMAINING_AMOUNT>50000.00</REMAINING_AMOUNT>
      <PAYMENT_METHOD>B</PAYMENT_METHOD>
      <PAYMENT_REFERENCE>CLR-REF-001</PAYMENT_REFERENCE>
      <POSTING_STATUS>C</POSTING_STATUS>
      <POSTING_MESSAGE>Clearing posted successfully</POSTING_MESSAGE>
      <VALUE_DATE>2026-07-23</VALUE_DATE>
      <BANK_ACCOUNT>BANKACCT00001</BANK_ACCOUNT>
      <RECONCILIATION_KEY>CLR</RECONCILIATION_KEY>
    </FactoringClearingData.Response>
  </soap:Body>
</soap:Envelope>
```