---
# API: Statistical Key Figure - Post
# File: STATISTICALKEYFIGPOSTINGREQUES.md
# Version: 1.0.0
# Status: ACTIVE
# Protocol: SOAP (Synchronous/Asynchronous)
# Source URL: https://api.sap.com/api/STATISTICALKEYFIGPOSTINGREQUES/overview
# Generated: 2026-07-23 14:17:02
---

# Statistical Key Figure - Post / 统计指标 - 过账

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

## 概述 / Overview

该服务用于过账统计指标数据，支持期间、会计年度、金额、货币等关键字段的传输。

This service posts statistical key figure data, supporting transmission of key fields such as Period, FiscalYear, Amount, Currency, etc.

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

---

## 消息结构 / Message Structure

| # | 结构名称 | 描述 (EN) | 描述 (CN) |
|---|----------|-----------|-----------|
| 1 | `StatisticalKeyFigurePostRequest` | Statistical Key Figure Post Request | 统计指标过账请求 |
| 2 | `StatisticalKeyFigurePostResponse` | Statistical Key Figure Post Response | 统计指标过账响应 |

---

## 1. 请求结构: StatisticalKeyFigurePostRequest / 统计指标过账请求

**命名空间:** `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:StatisticalKeyFigurePost>
      <StatisticalKeyFigures>
        <item>
          <StatisticalKeyFigure>SKF_001</StatisticalKeyFigure>
          <Period>01</Period>
          <FiscalYear>2026</FiscalYear>
          <Amount>500000.00</Amount>
          <Currency>CNY</Currency>
          <CompanyCode>1000</CompanyCode>
          <CostCenter>CC100</CostCenter>
          <Unit>PC</Unit>
          <Quantity>1000</Quantity>
        </item>
      </StatisticalKeyFigures>
    </ns:StatisticalKeyFigurePost>
  </soap:Body>
</soap:Envelope>
```

## 2. 响应结构: StatisticalKeyFigurePostResponse / 统计指标过账响应

```
<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:StatisticalKeyFigurePostResponse>
      <Success>true</Success>
      <StatisticalKeyFigures>
        <item>
          <StatisticalKeyFigure>SKF_001</StatisticalKeyFigure>
          <Period>01</Period>
          <FiscalYear>2026</FiscalYear>
          <Message>Statistical key figure posted successfully</Message>
        </item>
      </StatisticalKeyFigures>
    </ns:StatisticalKeyFigurePostResponse>
  </soap:Body>
</soap:Envelope>
```

---

## 字段详细说明 / Field Details

### StatisticalKeyFigure 统计指标字段

| 字段 | 类型 | 描述 (EN) | 描述 (CN) | 备注 |
|------|------|-----------|-----------|------|
| `StatisticalKeyFigure` | STRING | Statistical Key Figure | 统计指标 | 字符长度: 10 |
| `Period` | STRING | Posting Period | 过账期间 | 格式: 01-16 |
| `FiscalYear` | STRING | Fiscal Year | 会计年度 | 格式: YYYY |
| `Amount` | DECIMAL | Amount | 金额 | 小数位: 2 |
| `Currency` | STRING | Currency | 货币 | ISO 货币代码 |
| `CompanyCode` | STRING | Company Code | 公司代码 | 字符长度: 4 |
| `CostCenter` | STRING | Cost Center | 成本中心 | 字符长度: 10 |
| `Unit` | STRING | Unit of Measure | 计量单位 | 例如: PC, KG |
| `Quantity` | DECIMAL | Quantity | 数量 | 小数位: 3 |

---

## 错误处理 / Error Handling

| HTTP状态码 | 错误代码 | 描述 (EN) | 描述 (CN) |
|-----------|----------|-----------|-----------|
| 400 | `INVALID_KEY_FIGURE` | Invalid key figure data | 无效的统计指标数据 |
| 500 | `POSTING_FAILED` | Key figure 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:StatisticalKeyFigurePost><StatisticalKeyFigures><item><StatisticalKeyFigure>SKF_001</StatisticalKeyFigure><Period>01</Period><FiscalYear>2026</FiscalYear><Amount>500000.00</Amount><Currency>CNY</Currency><CompanyCode>1000</CompanyCode><CostCenter>CC100</CostCenter></item></StatisticalKeyFigures></ns:StatisticalKeyFigurePost></soap:Body></soap:Envelope>"

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

---

## 相关资源 / Related Resources

- SAP API Business Hub: [Statistical Key Figure](https://api.sap.com/api/STATISTICALKEYFIGPOSTINGREQUES/overview)
- SAP Communication Scenario: SAP_COM_0112
