---
# API: G/L Account Line Items - Read (A2X)
# File: API_GLACCOUNTLINEITEM.md
# Version: 1.0.3
# Status: ACTIVE
# Protocol: OData V2
# Source URL: https://api.sap.com/api/API_GLACCOUNTLINEITEM/overview
# Generated: 2026-07-23 14:17:02
---

# G/L Account Line Items - Read (A2X) / 总账科目行项目读取 API

> **API 版本:** 1.0.3 | **状态:** ACTIVE (READ-ONLY) | **协议:** OData V2  
> **技术名称:** `API_GLACCOUNTLINEITEM_SRV`  
> **服务根路径:** `/sap/opu/odata/sap/API_GLACCOUNTLINEITEM_SRV`  
> **SAP 通信场景:** `SAP_COM_0002`

## 概述 / Overview

该只读服务用于按公司代码、会计年度和总账科目读取 G/L 科目行项目数据。查询时必须提供 CompanyCode、FiscalYear 和 GLAccount 的筛选条件。

This read-only inbound OData V2 service provides G/L account line item data filtered by company code, fiscal year, and G/L account. A $filter on CompanyCode, FiscalYear, and GLAccount is mandatory.

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

---

## 实体列表 / Entity List

| # | 实体名称 | 描述 (EN) | 描述 (CN) | 主键 |
|---|----------|-----------|-----------|------|
| 1 | `A_GlAccountLineItem` | G/L Account Line Item | 总账科目行项目 | `CompanyCode`, `FiscalYear`, `AccountingDocument`, `LedgerGLLineItem` |

---

## 1. A_GlAccountLineItem — 总账科目行项目

**实体集合路径:** `A_GlAccountLineItem`  
**主键 (Key):** `CompanyCode` (CHAR 4), `FiscalYear` (CHAR 4), `AccountingDocument` (CHAR 10), `LedgerGLLineItem` (CHAR 10)  
**ETag:** 不支持  
**查询要求:** 必须使用 `$filter` 指定 `CompanyCode`、`FiscalYear` 和 `GLAccount`

### 字段列表 / Field List

| 字段名 | 类型 | 长度 | 描述 (EN) | 描述 (CN) |
|--------|------|------|-----------|-----------|
| `CompanyCode` | String | 4 | Company Code | 公司代码 (主键) |
| `FiscalYear` | String | 4 | Fiscal Year | 会计年度 (主键) |
| `AccountingDocument` | String | 10 | Accounting Document Number | 会计凭证编号 (主键) |
| `LedgerGLLineItem` | String | 10 | Ledger G/L Line Item | 分类账行项目 (主键) |
| `GLAccount` | String | 10 | G/L Account Number | 总账科目编号 |
| `GLAccountLongName` | String | 60 | G/L Account Long Name | 总账科目长名称 |
| `ProfitCenter` | String | 10 | Profit Center | 利润中心 |
| `CostCenter` | String | 10 | Cost Center | 成本中心 |
| `FunctionalArea` | String | 16 | Functional Area | 功能范围 |
| `Segment` | String | 10 | Segment | 段 |
| `Division` | String | 2 | Division | 产品组 |
| `BusinessArea` | String | 4 | Business Area | 业务范围 |
| `Plant` | String | 4 | Plant | 工厂 |
| `AmountInCompanyCodeCurrency` | Decimal | 23 | Amount in Company Code Currency | 公司代码货币金额 |
| `AmountInTransactionCurrency` | Decimal | 23 | Amount in Transaction Currency | 事务货币金额 |
| `AmountInGroupCurrency` | Decimal | 23 | Amount in Group Currency | 集团货币金额 |
| `CompanyCodeCurrency` | String | 5 | Company Code Currency | 公司代码货币 |
| `TransactionCurrency` | String | 5 | Transaction Currency | 事务货币 |
| `GroupCurrency` | String | 5 | Group Currency | 集团货币 |
| `DebitCreditCode` | String | 1 | Debit/Credit Ind. (S/H) | 借/贷标识 |
| `DocumentHeaderText` | String | 25 | Document Header Text | 凭证抬头文本 |
| `ReferenceDocument` | String | 10 | Reference Document | 参考凭证 |
| `ReferenceDocumentFiscalYear` | String | 4 | Reference Document Fiscal Year | 参考凭证会计年度 |
| `PostingDate` | DateTime | - | Posting Date | 过账日期 |
| `EntryDate` | DateTime | - | Entry Date | 录入日期 |
| `DocumentDate` | DateTime | - | Document Date | 凭证日期 |
| `UserName` | String | 12 | User Name | 用户名 |
| `ClearingDate` | DateTime | - | Clearing Date | 清账日期 |
| `ClearingDocument` | String | 10 | Clearing Document | 清账凭证 |
| `AssignmentReference` | String | 18 | Assignment Reference | 分配参考 |
| `TradingPartner` | String | 6 | Trading Partner | 贸易伙伴 |
| `BudgetPeriod` | String | 10 | Budget Period | 预算期间 |
| `FiscalYearPeriod` | String | 3 | Fiscal Year Period | 会计期间 |
| `PartnerCompany` | String | 6 | Partner Company | 合作伙伴公司 |
| `PartnerProfitCenter` | String | 10 | Partner Profit Center | 合作伙伴利润中心 |
| `PartnerCostCenter` | String | 10 | Partner Cost Center | 合作伙伴成本中心 |
| `PartnerFunctionalArea` | String | 16 | Partner Functional Area | 合作伙伴功能范围 |
| `PartnerBusinessArea` | String | 4 | Partner Business Area | 合作伙伴业务范围 |
| `PartnerSegment` | String | 10 | Partner Segment | 合作伙伴段 |
| `AccountingDocType` | String | 2 | Accounting Document Type | 会计凭证类型 |
| `AccountingDocCategory` | String | 1 | Accounting Document Category | 会计凭证类别 |
| `DocumentType` | String | 2 | Document Type | 凭证类型 |
| `TaxCode` | String | 2 | Tax Code | 税码 |
| `TaxAmount` | Decimal | 23 | Tax Amount in CC Crcy | 税额 (公司代码货币) |
| `WithholdingTaxAmount` | Decimal | 23 | Withholding Tax Amount | 预扣税额 |
| `SpecialGLLedgerInd` | String | 1 | Special G/L Indicator | 特殊总账标识 |
| `FinancialAccountType` | String | 5 | Financial Account Type | 财务科目类型 |
| `OriginalLineItem` | String | 10 | Original Line Item | 原始行项目 |
| `PurchasingDocument` | String | 10 | Purchasing Document | 采购凭证 |
| `PurchasingDocumentItem` | String | 5 | Purchasing Document Item | 采购凭证行项目 |
| `Material` | String | 40 | Material Number | 物料编号 |
| `MaterialGroup` | String | 9 | Material Group | 物料组 |
| `Quantity` | Decimal | 15 | Quantity | 数量 |
| `QuantityUnit` | String | 3 | Quantity Unit | 数量单位 |
| `BaseUnit` | String | 3 | Base Unit of Measure | 基本计量单位 |
| `FiscalYearVariant` | String | 4 | Fiscal Year Variant | 会计年度变式 |
| `Ledger` | String | 2 | Ledger | 分类账 |
| `LedgerGroup` | String | 5 | Ledger Group | 分类账组 |
| `PaymentMethod` | String | 1 | Payment Method | 支付方式 |
| `PaymentTerms` | String | 4 | Payment Terms | 付款条件 |
| `CashDiscountAmount` | Decimal | 23 | Cash Discount Amount | 现金折扣金额 |
| `CashDiscountPercentage` | Decimal | 5 | Cash Discount Percentage | 现金折扣百分比 |
| `PaymentBlockReason` | String | 1 | Payment Block Key | 付款冻结原因 |
| `HouseBank` | String | 5 | House Bank | 开户银行 |
| `HouseBankAccount` | String | 5 | House Bank Account | 银行账户 |
| `ClearingAccountingDocument` | String | 10 | Clearing Accounting Document | 清账会计凭证 |
| `ClearingFiscalYear` | String | 4 | Clearing Fiscal Year | 清账会计年度 |
| `ValidityDate` | DateTime | - | Validity Date | 有效日期 |
| `InvoiceReference` | String | 10 | Invoice Reference | 发票参考 |
| `InvoiceReferenceFiscalYear` | String | 4 | Invoice Reference Fiscal Year | 发票参考会计年度 |
| `SAPMemo` | String | 60 | SAP Memo Note | SAP 备忘说明 |
| `PaymentReference` | String | 30 | Payment Reference | 支付参考 |
| `AlternatePayer` | String | 10 | Alternate Payer | 替代付款方 |
| `AlternatePayee` | String | 10 | Alternate Payee | 替代收款方 |
| `Customer` | String | 10 | Customer Number | 客户编号 |
| `Supplier` | String | 10 | Supplier Account Number | 供应商编号 |
| `ContractNumber` | String | 25 | Contract Number | 合同编号 |
| `RebateAgreement` | String | 10 | Rebate Agreement | 返利协议 |
| `SalesDocument` | String | 10 | Sales Document | 销售单据 |
| `SalesDocumentItem` | String | 6 | Sales Document Item | 销售单据行项目 |
| `OrderID` | String | 10 | Order | 订单编号 |
| `OrderItem` | String | 6 | Order Item | 订单行项目 |
| `CostObject` | String | 12 | Cost Object | 成本对象 |
| `Network` | String | 12 | Network | 网络 |
| `NetworkActivity` | String | 4 | Network Activity | 网络活动 |
| `WBSElement` | String | 24 | WBS Element | WBS 元素 |
| `AssetNumber` | String | 12 | Asset Number | 资产编号 |
| `AssetSubNumber` | String | 4 | Asset Subnumber | 资产子编号 |
| `RealEstateObject` | String | 20 | Real Estate Object | 房地产对象 |
| `Fund` | String | 10 | Fund | 基金 |
| `FundsCenter` | String | 16 | Funds Center | 基金中心 |
| `GrantID` | String | 20 | Grant | 拨款编号 |
| `FunctionalAreaLongName` | String | 50 | Functional Area Long Name | 功能范围长名称 |
| `CostCenterLongName` | String | 50 | Cost Center Long Name | 成本中心长名称 |
| `ProfitCenterLongName` | String | 50 | Profit Center Long Name | 利润中心长名称 |
| `SegmentLongName` | String | 50 | Segment Long Name | 段长名称 |