P_LU_SAFT_SUPPLIERACCTBAL
SAFT LU - Supplier and GL Account Balance
P_LU_SAFT_SUPPLIERACCTBAL is a Composite CDS View that provides data about "SAFT LU - Supplier and GL Account Balance" in SAP S/4HANA. It reads from 1 data source (P_LU_SAFT_SupplierAcctBalEnd) and exposes 9 fields with key fields Ledger, CompanyCode, GLAccount, Supplier, ChartOfAccounts. Part of development package GLO_FIN_IS_SAFT_LU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_LU_SAFT_SupplierAcctBalEnd | P_LU_SAFT_SupplierAcctBalEnd | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_FromPostingDate | dats | |
| P_ToPostingDate | dats | |
| P_FiscalYear | gjahr |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PLUSAFSUPACBAL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (9)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | end_bal | Ledger | Ledger |
| KEY | CompanyCode | end_bal | CompanyCode | Receiver Company Code |
| KEY | GLAccount | end_bal | GLAccount | General Ledger |
| KEY | Supplier | end_bal | Supplier | Supplier |
| KEY | ChartOfAccounts | end_bal | ChartOfAccounts | Node Class |
| KEY | FiscalYear | end_bal | FiscalYear | G/L Fiscal Year |
| CompanyCodeCurrency | end_bal | CompanyCodeCurrency | Local Currency | |
| curr232asStartingBalanceAmtInCoCodeCrcy | ||||
| EndingBalanceAmtInCoCodeCrcy |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_LU_SAFT_SUPPLIERACCTBAL.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PLUSAFSUPACBAL
-- Parameters: P_FromPostingDate : dats, P_ToPostingDate : dats, P_FiscalYear : gjahr
CREATE VIEW P_LU_SAFT_SUPPLIERACCTBAL AS
SELECT
end_bal.Ledger AS Ledger,
end_bal.CompanyCode AS CompanyCode,
end_bal.GLAccount AS GLAccount,
end_bal.Supplier AS Supplier,
end_bal.ChartOfAccounts AS ChartOfAccounts,
end_bal.FiscalYear AS FiscalYear,
end_bal.CompanyCodeCurrency AS CompanyCodeCurrency,
cast(case when bal_mov.DebitAmountInCoCodeCrcy is not null and bal_mov.CreditAmountInCoCodeCrcy is not null then ((end_bal.DebitAmountInCoCodeCrcy + end_bal.CreditAmountInCoCodeCrcy)-(bal_mov.DebitAmountInCoCodeCrcy + bal_mov.CreditAmountInCoCodeCrcy)) else (end_bal.DebitAmountInCoCodeCrcy + end_bal.CreditAmountInCoCodeCrcy) end as abap.curr(23,2) ) as StartingBalanceAmtInCoCodeCrcy AS curr232asStartingBalanceAmtInCoCodeCrcy,
(end_bal.DebitAmountInCoCodeCrcy + end_bal.CreditAmountInCoCodeCrcy) AS EndingBalanceAmtInCoCodeCrcy
FROM P_LU_SAFT_SupplierAcctBalEnd
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA