---
# API: Billing Document - Create With Reference
# File: BDWREFERENCEREQUEST_IN.md
# Version: 1.0.0
# Status: ACTIVE
# Protocol: SOAP (Asynchronous)
# Source URL: https://api.sap.com/api/BDWREFERENCEREQUEST_IN/overview
# Generated: 2026-07-23 14:17:02
---

# Billing Document - Create With Reference / 参照开票凭证创建 API

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

## 概述 / Overview

该异步 SOAP 入站服务用于参照销售与分销（SD）单据（如销售订单、交货单）创建开票凭证。支持复制抬头和行项目数据。

This asynchronous inbound SOAP service creates billing documents by referencing SD documents such as sales orders and deliveries. It supports copying header and item data.

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

---

## 操作 / Operations

| 操作 | 方向 | 消息类型 | 描述 (EN) | 描述 (CN) |
|------|------|----------|-----------|-----------|
| `BillingDocumentCreateWithRef` | IN | `BillingDocumentCreateWithRefRequest` | Create billing documents with SD doc reference | 参照SD单据创建开票凭证 |
| `BillingDocumentCreateWithRef` | OUT | `BillingDocumentCreateWithRefResponse` | Created billing document result | 创建结果 |

---

## 1. 请求结构: BillingDocumentCreateWithRefRequest / 参照创建请求

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

### 1.1 抬头数据 / Header Data

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

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `BillingDocType` | String | 4 | Billing Document Type | 开票凭证类型 |
| `SalesOrganization` | String | 4 | Sales Organization | 销售组织 |
| `DistributionChannel` | String | 2 | Distribution Channel | 分销渠道 |
| `Division` | String | 2 | Division | 产品组 |
| `SoldToParty` | String | 10 | Sold-To Party | 售达方 |
| `BillToParty` | String | 10 | Bill-To Party | 收票方 |
| `PayerParty` | String | 10 | Payer | 付款方 |
| `ShipToParty` | String | 10 | Ship-To Party | 收货方 |
| `BillingDocumentDate` | DateTime | - | Billing Document Date | 开票凭证日期 |
| `PostingDate` | DateTime | - | Posting Date | 过账日期 |
| `DocumentReferenceID` | String | 35 | Document Reference ID | 凭证参考ID |
| `TransactionCurrency` | String | 5 | Transaction Currency | 事务货币 |
| `ExchangeRate` | Decimal | 9 | Exchange Rate | 汇率 |
| `PaymentTerms` | String | 4 | Payment Terms | 付款条件 |
| `PaymentMethod` | String | 1 | Payment Method | 支付方式 |
| `IncotermsClassification` | String | 3 | Incoterms | 国际贸易条款 |
| `IncotermsTransferLocation` | String | 28 | Incoterms Location | 国际贸易条款地点 |
| `CustomerGroup` | String | 2 | Customer Group | 客户组 |
| `PriceListType` | String | 2 | Price List Type | 价格清单类型 |
| `SalesDistrict` | String | 6 | Sales District | 销售地区 |
| `SalesOffice` | String | 4 | Sales Office | 销售办公室 |
| `SalesGroup` | String | 3 | Sales Group | 销售组 |
| `ShippingCondition` | String | 2 | Shipping Conditions | 装运条件 |
| `DeliveryDate` | DateTime | - | Delivery Date | 交货日期 |
| `DeliveryPlant` | String | 4 | Delivery Plant | 交货工厂 |
| `CompleteDeliveryIsDefined` | Boolean | - | Complete Delivery Defined | 完整交货标识 |
| `ReferenceDocument` | String | 10 | Reference Document | 参考单据 |
| `ReferenceDocumentType` | String | 2 | Reference Document Type | 参考单据类型 |
| `BillOfLading` | String | 35 | Bill of Lading | 提单 |
| `AccountingPostingDate` | DateTime | - | Accounting Posting Date | 会计过账日期 |
| `TaxReportingDate` | DateTime | - | Tax Reporting Date | 税务报告日期 |
| `CustomerReference` | String | 35 | Customer Reference | 客户参考 |
| `Language` | String | 2 | Language Key | 语言代码 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `CreationDate` | DateTime | - | Created On | 创建日期 |
| `CreationTime` | Time | - | Created At | 创建时间 |

### 1.2 SD 参考数据 / SD Reference Data

**结构名称:** `BillingDocumentCreateWithRefRequest.SDReference`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `SDDocumentCategory` | String | 4 | SD Document Category (Sales Order / Delivery) | SD单据类别（销售订单/交货单） |
| `SDDocument` | String | 10 | SD Document Number | SD单据编号 |
| `SDDocumentItem` | String | 6 | SD Document Item | SD单据行项目 |
| `SDDocumentItemCategory` | String | 4 | SD Document Item Category | SD单据行项目类别 |
| `SDDocumentItemText` | String | 40 | SD Document Item Description | SD单据行项目描述 |
| `ReferenceQuantity` | Decimal | 15 | Reference Quantity for Billing | 参考开票数量 |
| `ReferenceQuantityUnit` | String | 3 | Reference Quantity Unit | 参考数量单位 |
| `ReferenceNetValue` | Decimal | 15 | Reference Net Value | 参考净价值 |
| `ReferenceTaxAmount` | Decimal | 15 | Reference Tax Amount | 参考税额 |
| `ReferenceGrossValue` | Decimal | 15 | Reference Gross Value | 参考总价值 |
| `PartialBillingIndicator` | String | 1 | Partial Billing Indicator | 部分开票标识 |
| `FinalBillingIndicator` | String | 1 | Final Billing Indicator | 最终开票标识 |
| `BillingBlockReason` | String | 2 | Billing Block Reason | 开票冻结原因 |
| `BillingBlockDate` | DateTime | - | Billing Block Date | 开票冻结日期 |

### 1.3 合作伙伴数据 / Partner Data

**结构名称:** `BillingDocumentCreateWithRefRequest.Partner`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `PartnerFunction` | String | 2 | Partner Function | 合作伙伴功能 |
| `Customer` | String | 10 | Customer Number | 客户编号 |
| `Supplier` | String | 10 | Supplier Number | 供应商编号 |
| `ContactPerson` | String | 10 | Contact Person | 联系人 |
| `AddressID` | String | 10 | Address Number | 地址编号 |
| `VATRegistration` | String | 20 | VAT Registration No. | 增值税注册号 |
| `EmailAddress` | String | 241 | Email Address | 电子邮件地址 |
| `TelephoneNumber` | String | 30 | Telephone Number | 电话号码 |

### 1.4 文本数据 / Text Data

**结构名称:** `BillingDocumentCreateWithRefRequest.Text`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `ItemNumber` | String | 6 | Item Number (000000 = Header) | 行项目编号（000000 = 抬头） |
| `Language` | String | 2 | Language Key | 语言代码 |
| `LongTextID` | String | 4 | Long Text ID | 长文本ID |
| `LongText` | String | 255 | Long Text | 长文本内容 |
| `TextType` | String | 1 | Text Type | 文本类型 |

---

## 2. 响应结构: BillingDocumentCreateWithRefResponse / 参照创建响应

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

### 2.1 响应数据 / Response Data

**结构名称:** `BillingDocumentCreateWithRefResponse`

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `BillingDocument` | String | 10 | Billing Document Number | 开票凭证编号 |
| `BillingDocumentItem` | String | 6 | Billing Document Item | 开票凭证行项目 |
| `SalesOrganization` | String | 4 | Sales Organization | 销售组织 |
| `DistributionChannel` | String | 2 | Distribution Channel | 分销渠道 |
| `Division` | String | 2 | Division | 产品组 |
| `BillingDocumentType` | String | 4 | Billing Document Type | 开票凭证类型 |
| `BillingDocumentDate` | DateTime | - | Billing Document Date | 开票凭证日期 |
| `PostingDate` | DateTime | - | Posting Date | 过账日期 |
| `NetValue` | Decimal | 15 | Net Value | 净价值 |
| `TaxAmount` | Decimal | 15 | Tax Amount | 税额 |
| `GrossValue` | Decimal | 15 | Gross Value | 总价值 |
| `TransactionCurrency` | String | 5 | Transaction Currency | 事务货币 |
| `SoldToParty` | String | 10 | Sold-To Party | 售达方 |
| `BillToParty` | String | 10 | Bill-To Party | 收票方 |
| `PayerParty` | String | 10 | Payer | 付款方 |
| `ShipToParty` | String | 10 | Ship-To Party | 收货方 |
| `DocumentReferenceID` | String | 35 | Document Reference ID | 凭证参考ID |
| `CreationDate` | DateTime | - | Created On | 创建日期 |
| `CreationTime` | Time | - | Created At | 创建时间 |
| `CreatedByUser` | String | 12 | Created By | 创建人 |
| `Status` | String | 1 | Processing Status | 处理状态 |
| `MessageType` | String | 1 | Message Type (E/W/I/S) | 消息类型 |
| `MessageText` | String | 220 | Message Text | 消息文本 |