P_FinStmtLeafWithFuncArea
P_FinStmtLeafWithFuncArea is a Basic CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 17 fields with key fields HierarchyUniqueNodeID, UniqueParentID, versn, ktopl, ergsl.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| P_Distinct_Coa_Fagl_Zc | dis_zc | inner |
| fagl_011fc | fc_leaf | from |
| fagl_011fc | fc_range | union_all |
| I_FinancialStatementItem | fsitem | left_outer |
| I_FinancialStatementItem | fsitem | left_outer |
| I_ChartOfAccounts | I_ChartOfAccounts | inner |
| I_FunctionalArea | I_FunctionalArea | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | PFSLEAFFUNAREA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyUniqueNodeID | |||
| KEY | UniqueParentID | |||
| KEY | versn | fagl_011fc | versn | |
| KEY | ktopl | P_Distinct_Coa_Fagl_Zc | ktopl | |
| KEY | ergsl | fagl_011fc | ergsl | |
| KEY | fkber | I_FunctionalArea | FunctionalArea | |
| type | ||||
| Description | ||||
| char50asHierarchyUniqueNodeID | ||||
| KEY | UniqueParentID | |||
| KEY | versn | fagl_011fc | versn | |
| KEY | ktopl | I_ChartOfAccounts | ChartOfAccounts | |
| KEY | ergsl | fagl_011fc | ergsl | |
| KEY | fkber | |||
| type | ||||
| Description | ||||
| id | I_FinancialStatementItem | HierarchyNode |
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@VDM.private:true
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'PFSLEAFFUNAREA'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
define view P_FinStmtLeafWithFuncArea
as select from fagl_011fc as fc_leaf
inner join P_Distinct_Coa_Fagl_Zc as dis_zc on fc_leaf.versn = dis_zc.versn
inner join I_FunctionalArea on fc_leaf.vonfb <= I_FunctionalArea.FunctionalArea
and fc_leaf.bisfb >= I_FunctionalArea.FunctionalArea
left outer join I_FinancialStatementItem as fsitem on fsitem.FinancialStatementVariant = fc_leaf.versn
and fsitem.FinancialStatementItem = fc_leaf.ergsl
and fsitem.NodeType = 'P'
{
key cast (concat(concat( fsitem.HierarchyNode,I_FunctionalArea.FunctionalArea ),'=') as abap.char(50) ) as HierarchyUniqueNodeID,
key cast (concat( concat(concat( fsitem.HierarchyNode,fc_leaf.vonfb ),'-'),fc_leaf.bisfb ) as abap.char(50) ) as UniqueParentID,
key fc_leaf.versn,
key dis_zc.ktopl,
key fc_leaf.ergsl,
key I_FunctionalArea.FunctionalArea as fkber,
cast ('L' as seu_type) as type,
cast ( '' as abap.char( 50 )) as Description,
fsitem.HierarchyNode as id
}
union all
select from fagl_011fc as fc_range
inner join I_ChartOfAccounts on I_ChartOfAccounts.ChartOfAccounts is not null
left outer join I_FinancialStatementItem as fsitem on fsitem.FinancialStatementVariant = fc_range.versn
and fsitem.FinancialStatementItem = fc_range.ergsl
and fsitem.NodeType = 'P'
{
key cast (concat( concat(concat( fsitem.HierarchyNode,fc_range.vonfb ),'-'),fc_range.bisfb ) as abap.char(50) )as HierarchyUniqueNodeID,
key cast ( fsitem.HierarchyNode as abap.char(50) ) as UniqueParentID,
key fc_range.versn,
key I_ChartOfAccounts.ChartOfAccounts as ktopl,
key fc_range.ergsl,
key '' as fkber,
cast ('B' as seu_type) as type,
cast (concat (concat (fc_range.vonfb,'-'),fc_range.bisfb) as abap.char(50) ) as Description,
fsitem.HierarchyNode as id
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHARTOFACCOUNTS",
"I_FINANCIALSTATEMENTITEM",
"I_FUNCTIONALAREA",
"P_DISTINCT_COA_FAGL_ZC",
"FAGL_011FC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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