P_RU_DataSelFinSTMNT
P_RU_DataSelFinSTMNT is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_FinStmntExpandedHierNode, I_FinStmntExpandedHierNode, P_RU_GLAcctBalWithComprnPeriod, P_RU_GLAcctBalWithComprnPeriod) and exposes 45 fields.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_FinStmntExpandedHierNode | Hierarchy | from |
| I_FinStmntExpandedHierNode | Hierarchy | union_all |
| P_RU_GLAcctBalWithComprnPeriod | P_RU_GLAcctBalWithComprnPeriod | left_outer |
| P_RU_GLAcctBalWithComprnPeriod | P_RU_GLAcctBalWithComprnPeriod | left_outer |
Parameters (15)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_FinancialStatementHierarchy | hryid | |
| P_FinancialStatementHierarchy3 | hryid | |
| P_Ledger | fis_rldnr | |
| P_FromPostingDate | fis_budat | |
| P_ToPostingDate | fis_budat | |
| P_ComprnFromPostingDate | fis_budat | |
| P_ComprnToPostingDate | fis_budat | |
| P_ComparisonFromPostingDate2 | fis_budat | |
| P_ComparisonToPostingDate2 | fis_budat | |
| P_CurrencyRole | fis_curtp | |
| P_AlternativeGLAccountIsUsed | char1 | |
| P_Language | sylangu |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRUDTSELFINSTMNT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | GLbalance | CompanyCode | Receiver Company Code | |
| FiscalYear | GLbalance | FiscalYear | G/L Fiscal Year | |
| AccountingDocument | GLbalance | AccountingDocument | Journal Entry | |
| LedgerGLLineItem | GLbalance | LedgerGLLineItem | Journal Entry Item | |
| PeriodBalAmt | ||||
| YearOpeningBalAmt | ||||
| OpeningPeriodBalAmt | ||||
| EndingPeriodBalAmt | ||||
| CreditPeriodBalAmt | ||||
| DebitPeriodBalAmt | ||||
| Currency | GLbalance | Currency | Valuation Crcy | |
| FormCode | ||||
| StatryRptgEntity | ||||
| StatryRptCategory | ||||
| StatryRptRunID | ||||
| FinancialStatementHierarchy | I_FinStmntExpandedHierNode | FinancialStatementHierarchy | Hierarchy ID | |
| GLAccountInfo | I_FinStmntExpandedHierNode | GLAccountInfo | ||
| FinancialStatementLeafItem | I_FinStmntExpandedHierNode | FinancialStatementLeafItem | Node | |
| InvoiceNumber | ||||
| InvoiceYear | ||||
| InvoiceItem | ||||
| P_StartPostingDateP_FromPostingDate | ||||
| P_EndPostingDateP_ToPostingDate | ||||
| CompanyCode | Receiver Company Code | |||
| FiscalYear | GLbalance | FiscalYear | G/L Fiscal Year | |
| AccountingDocument | GLbalance | AccountingDocument | Journal Entry | |
| LedgerGLLineItem | GLbalance | LedgerGLLineItem | Journal Entry Item | |
| PeriodBalAmt | ||||
| YearOpeningBalAmt | ||||
| OpeningPeriodBalAmt | ||||
| EndingPeriodBalAmt | ||||
| CreditPeriodBalAmt | ||||
| DebitPeriodBalAmt | ||||
| Currency | GLbalance | Currency | Valuation Crcy | |
| FormCode | ||||
| StatryRptgEntity | ||||
| StatryRptCategory | ||||
| StatryRptRunID | ||||
| FinancialStatementHierarchy | I_FinStmntExpandedHierNode | FinancialStatementHierarchy | Hierarchy ID | |
| GLAccountInfo | I_FinStmntExpandedHierNode | GLAccountInfo | ||
| FinancialStatementLeafItem | I_FinStmntExpandedHierNode | FinancialStatementLeafItem | Node | |
| InvoiceNumber | ||||
| InvoiceYear | ||||
| InvoiceItem | ||||
| OffsettingItem |
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_RU_DataSelFinSTMNT.
-- 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: PRUDTSELFINSTMNT
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_FinancialStatementHierarchy : hryid, P_FinancialStatementHierarchy3 : hryid, P_Ledger : fis_rldnr, P_FromPostingDate : fis_budat, P_ToPostingDate : fis_budat, P_ComprnFromPostingDate : fis_budat, P_ComprnToPostingDate : fis_budat, P_ComparisonFromPostingDate2 : fis_budat, P_ComparisonToPostingDate2 : fis_budat, P_CurrencyRole : fis_curtp, P_AlternativeGLAccountIsUsed : char1, P_Language : sylangu
CREATE VIEW P_RU_DataSelFinSTMNT AS
SELECT
GLbalance.CompanyCode AS CompanyCode,
GLbalance.FiscalYear AS FiscalYear,
GLbalance.AccountingDocument AS AccountingDocument,
GLbalance.LedgerGLLineItem AS LedgerGLLineItem,
cast( GLbalance.PeriodBalAmtInDspCrcy as fis_cr_gsl ) AS PeriodBalAmt,
cast( GLbalance.YearOpeningBalAmtInDspCrcy as fis_cr_gsl ) AS YearOpeningBalAmt,
cast( GLbalance.OpeningPeriodBalAmtInDspCrcy as fis_cr_gsl ) AS OpeningPeriodBalAmt,
cast( GLbalance.EndingPeriodBalAmtInDspCrcy as fis_cr_gsl ) AS EndingPeriodBalAmt,
cast( GLbalance.CreditPeriodBalAmtInDspCrcy as fis_cr_gsl ) AS CreditPeriodBalAmt,
cast( GLbalance.DebitPeriodBalAmtInDspCrcy as fis_cr_gsl ) AS DebitPeriodBalAmt,
GLbalance.Currency AS Currency,
left(Hierarchy.FinancialStatementHierarchy,4) AS FormCode,
$parameters.P_StatryRptgEntity AS StatryRptgEntity,
$parameters.P_StatryRptCategory AS StatryRptCategory,
$parameters.P_StatryRptRunID AS StatryRptRunID,
Hierarchy.FinancialStatementHierarchy AS FinancialStatementHierarchy,
Hierarchy.GLAccountInfo AS GLAccountInfo,
Hierarchy.FinancialStatementLeafItem AS FinancialStatementLeafItem,
cast( '' as belnr_d ) AS InvoiceNumber,
cast( '0000' as gjahr ) AS InvoiceYear,
cast( '' as docln ) AS InvoiceItem,
P_StartPostingDate: :P_FromPostingDate AS P_StartPostingDateP_FromPostingDate,
P_EndPostingDate: :P_ToPostingDate AS P_EndPostingDateP_ToPostingDate,
cast( '' as docln ) AS OffsettingItem
FROM I_FinStmntExpandedHierNode AS Hierarchy
LEFT OUTER JOIN P_RU_GLAcctBalWithComprnPeriod ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_FinStmntExpandedHierNode
;
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