---
# API: Journal Entry - Post
# File: JOURNALENTRYBULKCREATIONREQUES.md
# Version: 1.4.0
# Status: ACTIVE
# Protocol: SOAP (Asynchronous)
# Source URL: https://api.sap.com/api/JOURNALENTRYBULKCREATIONREQUES/overview
# Generated: 2026-07-23 14:17:02
---

# Journal Entry - Post / 日记账分录 - 过账 (异步)

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

## 概述 / Overview

该异步 SOAP 服务用于批量过账日记账分录。支持公司代码、会计年度、会计凭证、金额、货币等关键字段的传输。

This asynchronous SOAP service posts journal entries in bulk. It supports transmission of key fields such as CompanyCode, FiscalYear, AccountingDocument, Amount, Currency, etc.

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

---

## 消息结构 / Message Structure

| # | 结构名称 | 描述 (EN) | 描述 (CN) |
|---|----------|-----------|-----------|
| 1 | `JournalEntryCreateRequest` | Journal Entry Create Request | 日记账分录创建请求 |
| 2 | `JournalEntryCreateResponse` | Journal Entry Create Response | 日记账分录创建响应 |

---

## 1. 请求结构: JournalEntryCreateRequest / 日记账分录创建请求

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

```
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:ns="urn:sap-com:document:sap:soap:functions:mc-style">
  <soap:Header/>
  <soap:Body>
    <ns:JournalEntryBulkCreate>
      <JournalEntries>
        <item>
          <CompanyCode>1000</CompanyCode>
          <FiscalYear>2026</FiscalYear>
          <AccountingDocument>5100000001</AccountingDocument>
          <DocumentDate>2026-01-15</DocumentDate>
          <PostingDate>2026-01-15</PostingDate>
          <Currency>CNY</Currency>
          <Amount>15000.00</Amount>
          <AmountInLocalCurrency>15000.00</AmountInLocalCurrency>
          <DocumentHeaderText>采购发票录入</DocumentHeaderText>
          <Items>
            <item>
              <LineItem>001</LineItem>
              <GLAccount>400000</GLAccount>
              <Amount>15000.00</Amount>
              <DebitCreditCode>S</DebitCreditCode>
              <CostCenter>CC100</CostCenter>
            </item>
          </Items>
        </item>
      </JournalEntries>
    </ns:JournalEntryBulkCreate>
  </soap:Body>
</soap:Envelope>
```

## 2. 响应结构: JournalEntryCreateResponse / 日记账分录创建响应

```
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:ns="urn:sap-com:document:sap:soap:functions:mc-style">
  <soap:Header/>
  <soap:Body>
    <ns:JournalEntryBulkCreateResponse>
      <Success>true</Success>
      <AccountingDocuments>
        <item>
          <CompanyCode>1000</CompanyCode>
          <FiscalYear>2026</FiscalYear>
          <AccountingDocument>5100000001</AccountingDocument>
          <Message>Journal entry posted successfully</Message>
        </item>
      </AccountingDocuments>
    </ns:JournalEntryBulkCreateResponse>
  </soap:Body>
</soap:Envelope>
```

---

## 字段详细说明 / Field Details

### JournalEntry 日记账分录字段

| 字段 | 类型 | 描述 (EN) | 描述 (CN) | 备注 |
|------|------|-----------|-----------|------|
| `CompanyCode` | STRING | Company Code | 公司代码 | 字符长度: 4 |
| `FiscalYear` | STRING | Fiscal Year | 会计年度 | 格式: YYYY |
| `AccountingDocument` | STRING | Accounting Document Number | 会计凭证号 | 字符长度: 10 |
| `DocumentDate` | DATE | Document Date | 凭证日期 | 格式: YYYY-MM-DD |
| `PostingDate` | DATE | Posting Date | 过账日期 | 格式: YYYY-MM-DD |
| `Currency` | STRING | Currency | 货币 | ISO 货币代码 |
| `Amount` | DECIMAL | Amount in Transaction Currency | 交易货币金额 | 小数位: 2 |
| `AmountInLocalCurrency` | DECIMAL | Amount in Local Currency | 本币金额 | 小数位: 2 |
| `DocumentHeaderText` | STRING | Document Header Text | 凭证抬头文本 | 字符长度: 25 |

### LineItem 行项目字段

| 字段 | 类型 | 描述 (EN) | 描述 (CN) | 备注 |
|------|------|-----------|-----------|------|
| `LineItem` | STRING | Line Item Number | 行项目号 | 字符长度: 3 |
| `GLAccount` | STRING | G/L Account | 总账科目 | 字符长度: 10 |
| `Amount` | DECIMAL | Amount | 金额 | 小数位: 2 |
| `DebitCreditCode` | STRING | Debit/Credit Code | 借/贷方标识 | S=借方, H=贷方 |
| `CostCenter` | STRING | Cost Center | 成本中心 | 字符长度: 10 |

---

## 错误处理 / Error Handling

| HTTP状态码 | 错误代码 | 描述 (EN) | 描述 (CN) |
|-----------|----------|-----------|-----------|
| 400 | `INVALID_JOURNAL_ENTRY` | Invalid journal entry data | 无效的日记账分录数据 |
| 500 | `POSTING_FAILED` | Journal entry posting failed | 日记账过账失败 |

---

## 使用示例 / Usage Examples

### PowerShell 调用示例

```powershell
$body = "<soap:Envelope xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:ns=""urn:sap-com:document:sap:soap:functions:mc-style""><soap:Header/><soap:Body><ns:JournalEntryBulkCreate><JournalEntries><item><CompanyCode>1000</CompanyCode><FiscalYear>2026</FiscalYear><AccountingDocument>5100000001</AccountingDocument><DocumentDate>2026-01-15</DocumentDate><PostingDate>2026-01-15</PostingDate><Currency>CNY</Currency><Amount>15000.00</Amount></item></JournalEntries></ns:JournalEntryBulkCreate></soap:Body></soap:Envelope>"

$response = Invoke-WebRequest -Uri "https://your-sap-system.com/sap/bc/srt/rfc/sap/journalentrybulkcreation/100/journalentrybulkcreation/binding" -Method Post -Body $body -ContentType "text/xml; charset=utf-8"
$response.Content
```

---

## 相关资源 / Related Resources

- SAP API Business Hub: [Journal Entry](https://api.sap.com/api/JOURNALENTRYBULKCREATIONREQUES/overview)
- SAP Communication Scenario: SAP_COM_0115
