---
# API: Journal Entry - Send Discount Info
# File: CO_EDI_PAYABLE_PAYMENT_TERMS.md
# Version: 1.0.0
# Status: ACTIVE
# Protocol: SOAP (Outbound)
# Source URL: https://api.sap.com/api/CO_EDI_PAYABLE_PAYMENT_TERMS/overview
# Generated: 2026-07-23 14:17:02
---

# Journal Entry - Send Discount Info / 日记账分录 - 发送折扣信息 API

> **API 版本:** 1.0.0 | **状态:** ACTIVE | **协议:** SOAP  
> **技术名称:** `CO_EDI_PAYABLE_PAYMENT_TERMS`  
> **WSDL 绑定:** `/sap/bc/srt/wsdl/flv_10002A111AD1/bndr_url/sap/bc/srt/rfc/sap/co_edi_payable_payment_terms/100/co_edi_payable_payment_terms/binding`  
> **SAP 通信场景:** `SAP_COM_0112`

## 概述 / Overview

该 SOAP 出站服务用于将应付账款折扣信息从 SAP S/4HANA 发送到外部系统。支持付款条款、现金折扣率和折扣到期日等信息的传输。

This SOAP outbound service sends payable discount information from SAP S/4HANA to external systems. It supports transmission of payment terms, cash discount rates, and discount due dates.

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

---

## 消息结构 / Message Structure

| # | 结构名称 | 描述 (EN) | 描述 (CN) |
|---|----------|-----------|-----------|
| 1 | `JournalEntryDiscountRequest` | Journal Entry Discount Request | 日记账分录折扣请求 |
| 2 | `JournalEntryDiscountResponse` | Journal Entry Discount Response | 日记账分录折扣响应 |

---

## 1. 请求结构: JournalEntryDiscountRequest / 日记账分录折扣请求

**命名空间:** `urn:sap-com:document:sap:soap:functions:mc-style`

| # | 字段名称 | 类型 | 描述 (EN) | 描述 (CN) | 必填 |
|---|----------|------|-----------|-----------|------|
| 1 | `CompanyCode` | CHAR(4) | Company Code | 公司代码 | 是 |
| 2 | `FiscalYear` | NUMC(4) | Fiscal Year | 会计年度 | 是 |
| 3 | `JournalEntryNumber` | CHAR(10) | Journal Entry Number | 日记账分录编号 | 是 |
| 4 | `DocumentType` | CHAR(2) | Document Type | 凭证类型 | 是 |
| 5 | `PostingDate` | DATE | Posting Date | 过账日期 | 是 |
| 6 | `EntryDate` | DATE | Entry Date | 录入日期 | 否 |
| 7 | `PaymentTerms` | CHAR(4) | Payment Terms Key | 付款条款码 | 是 |
| 8 | `CashDiscount1Percent` | DECIMAL(5,3) | Cash Discount 1 (%) | 现金折扣率 1 (%) | 否 |
| 9 | `CashDiscount1Days` | NUMC(3) | Cash Discount 1 Days | 现金折扣 1 天数 | 否 |
| 10 | `CashDiscount2Percent` | DECIMAL(5,3) | Cash Discount 2 (%) | 现金折扣率 2 (%) | 否 |
| 11 | `CashDiscount2Days` | NUMC(3) | Cash Discount 2 Days | 现金折扣 2 天数 | 否 |
| 12 | `NetDueDays` | NUMC(3) | Net Due Days | 净到期天数 | 否 |
| 13 | `BaselineDate` | DATE | Baseline Date for Payment | 付款基准日期 | 是 |
| 14 | `DiscountBaseAmount` | CURRENCY(13,2) | Discount Base Amount | 折扣基准金额 | 否 |
| 15 | `Currency` | CHAR(5) | Currency | 货币码 | 是 |
| 16 | `VendorID` | CHAR(10) | Vendor ID | 供应商编号 | 是 |
| 17 | `InvoiceReference` | CHAR(16) | Invoice Reference | 发票参考 | 否 |

---

## 2. 响应结构: JournalEntryDiscountResponse / 日记账分录折扣响应

**命名空间:** `urn:sap-com:document:sap:soap:functions:mc-style`

| # | 字段名称 | 类型 | 描述 (EN) | 描述 (CN) | 必填 |
|---|----------|------|-----------|-----------|------|
| 1 | `JournalEntryNumber` | CHAR(10) | Journal Entry Number | 日记账分录编号 | 是 |
| 2 | `Status` | CHAR(1) | Status (S-success/E-error) | 状态 (S-成功/E-错误) | 是 |
| 3 | `Message` | CHAR(200) | Message | 消息 | 否 |

---

## SOAP XML 示例 / SOAP XML Example

### 请求 / Request

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
  <soap:Header/>
  <soap:Body>
    <urn:JournalEntryDiscountRequest>
      <CompanyCode>1000</CompanyCode>
      <FiscalYear>2026</FiscalYear>
      <JournalEntryNumber>JE-100001</JournalEntryNumber>
      <DocumentType>KR</DocumentType>
      <PostingDate>2026-07-23</PostingDate>
      <EntryDate>2026-07-23</EntryDate>
      <PaymentTerms>0001</PaymentTerms>
      <CashDiscount1Percent>2.000</CashDiscount1Percent>
      <CashDiscount1Days>14</CashDiscount1Days>
      <CashDiscount2Percent>1.000</CashDiscount2Percent>
      <CashDiscount2Days>30</CashDiscount2Days>
      <NetDueDays>60</NetDueDays>
      <BaselineDate>2026-07-23</BaselineDate>
      <DiscountBaseAmount>10000.00</DiscountBaseAmount>
      <Currency>CNY</Currency>
      <VendorID>V-10001</VendorID>
      <InvoiceReference>INV-2026-0001</InvoiceReference>
    </urn:JournalEntryDiscountRequest>
  </soap:Body>
</soap:Envelope>
```

### 响应 / Response

```xml
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
  <soap:Header/>
  <soap:Body>
    <urn:JournalEntryDiscountResponse>
      <JournalEntryNumber>JE-100001</JournalEntryNumber>
      <Status>S</Status>
      <Message>Discount information sent successfully</Message>
    </urn:JournalEntryDiscountResponse>
  </soap:Body>
</soap:Envelope>
```

---

## 变更记录 / Change Log

| 版本 | 日期 | 描述 |
|------|------|------|
| 1.0.0 | 2026-07-23 | 初始版本 / Initial version |