P_MX_FinancialStmntStructure2
P_MX_FinancialStmntStructure2 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_MX_FinancialStmntStructure) and exposes 19 fields with key fields FinancialStatementHierarchy, CompanyCode, HierarchyNode, ChartOfAccounts, HierarchyVersion.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MX_FinancialStmntStructure | FSV | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_AlternativeGLAccount | figlmx_prim |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMXFINSTMNTSTRU2 | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | FinancialStatementHierarchy | P_MX_FinancialStmntStructure | FinancialStatementHierarchy | Hierarchy ID |
| KEY | CompanyCode | P_MX_FinancialStmntStructure | CompanyCode | Receiver Company Code |
| KEY | HierarchyNode | P_MX_FinancialStmntStructure | HierarchyNode | Node |
| KEY | ChartOfAccounts | P_MX_FinancialStmntStructure | ChartOfAccounts | Node Class |
| KEY | HierarchyVersion | P_MX_FinancialStmntStructure | HierarchyVersion | Version |
| KEY | ValidityEndDate | P_MX_FinancialStmntStructure | ValidityEndDate | ValidTo |
| ValidityStartDate | P_MX_FinancialStmntStructure | ValidityStartDate | Validity Start Date | |
| FinancialStatementNodeType | P_MX_FinancialStmntStructure | FinancialStatementNodeType | Object Type | |
| FinancialStatementItem | ||||
| OperationalGLAccount | P_MX_FinancialStmntStructure | OperationalGLAccount | Operational G/L Acct | |
| GLAccount | P_MX_FinancialStmntStructure | GLAccount | General Ledger | |
| GLAccountInfo | ||||
| CountryChartOfAccounts | P_MX_FinancialStmntStructure | CountryChartOfAccounts | Chart of Accts | |
| MaintenanceLanguage | P_MX_FinancialStmntStructure | MaintenanceLanguage | Maint. Language | |
| GLAccountGroup | ||||
| VATRegistration | P_MX_FinancialStmntStructure | VATRegistration | VAT Registration No. | |
| GLAccountType | ||||
| OperationalChartOfAccounts | P_MX_FinancialStmntStructure | OperationalChartOfAccounts | Node Class | |
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts |
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_MX_FinancialStmntStructure2.
-- 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: PMXFINSTMNTSTRU2
-- Parameters: P_AlternativeGLAccount : figlmx_prim
CREATE VIEW P_MX_FinancialStmntStructure2 AS
SELECT
FSV.FinancialStatementHierarchy AS FinancialStatementHierarchy,
FSV.CompanyCode AS CompanyCode,
FSV.HierarchyNode AS HierarchyNode,
FSV.ChartOfAccounts AS ChartOfAccounts,
FSV.HierarchyVersion AS HierarchyVersion,
FSV.ValidityEndDate AS ValidityEndDate,
FSV.ValidityStartDate AS ValidityStartDate,
FSV.FinancialStatementNodeType AS FinancialStatementNodeType,
ltrim(ParentNode, '0') AS FinancialStatementItem,
FSV.OperationalGLAccount AS OperationalGLAccount,
FSV.GLAccount AS GLAccount,
FSV._GLAccountText.GLAccountLongName AS GLAccountInfo,
FSV.CountryChartOfAccounts AS CountryChartOfAccounts,
FSV.MaintenanceLanguage AS MaintenanceLanguage,
FSV._GLAccountInChartOfAccounts.GLAccountGroup AS GLAccountGroup,
FSV.VATRegistration AS VATRegistration,
substring(_ParentNodeText.HierarchyNodeText, 1, 1) AS GLAccountType,
FSV.OperationalChartOfAccounts AS OperationalChartOfAccounts
FROM P_MX_FinancialStmntStructure AS FSV
;
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