P_MX_FinancialStmntStructure3

DDL: P_MX_FINANCIALSTMNTSTRUCTURE3 SQL: PMXFINSTMNTSTRU3 Type: view COMPOSITE Package: GLO_FIN_IS_GL_MX_AUX_ACCT

Financial Statement Structure for MX

P_MX_FinancialStmntStructure3 is a Composite CDS View that provides data about "Financial Statement Structure for MX" in SAP S/4HANA. It reads from 1 data source (P_MX_FinancialStmntStructure2) and exposes 20 fields with key fields HierarchyNodeUniqueID, FinancialStatementVariant, ChartOfAccounts, CompanyCode, GLAccount. It has 1 association to related views. Part of development package GLO_FIN_IS_GL_MX_AUX_ACCT.

Data Sources (1)

SourceAliasJoin Type
P_MX_FinancialStmntStructure2 P_MX_FinancialStmntStructure2 from

Parameters (1)

NameTypeDefault
P_AlternativeGLAccount figlmx_prim

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_StRpGLAccountLog _ReportedGLAcctLog _ReportedGLAcctLog.CompanyCode = FSV.CompanyCode and _ReportedGLAcctLog.GLAccount = FSV.GLAccount

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PMXFINSTMNTSTRU3 view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY HierarchyNodeUniqueID FSV HierarchyNode Node
KEY FinancialStatementVariant FSV FinancialStatementHierarchy Hierarchy ID
KEY ChartOfAccounts FSV ChartOfAccounts Node Class
KEY CompanyCode FSV CompanyCode Receiver Company Code
KEY GLAccount FSV GLAccount General Ledger
KEY StatryRptCategory _ReportedGLAcctLog StatryRptCategory Report ID
KEY StatryRptgEntity _ReportedGLAcctLog StatryRptgEntity Reporting Entity
KEY StatryRptRunID _ReportedGLAcctLog StatryRptRunID Report Run ID
KEY ValidityEndDate FSV ValidityEndDate ValidTo
ValidityStartDate FSV ValidityStartDate Validity Start Date
FinancialStatementItem FSV FinancialStatementItem FS Item
VATRegistration FSV VATRegistration VAT Registration No.
GLAccountType FSV GLAccountType G/L Account Type
GLAccountInfo FSV GLAccountInfo
MX_SATGLAccountGrouping FSV FinancialStatementItem FS Item
GLAccountGroup FSV GLAccountGroup Account Group
OperationalGLAccount FSV OperationalGLAccount Operational G/L Acct
OperationalChartOfAccounts FSV OperationalChartOfAccounts
_GLAccountInChartOfAccounts FSV _GLAccountInChartOfAccounts
_ReportedGLAcctLog _ReportedGLAcctLog

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_FinancialStmntStructure3.
-- 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: PMXFINSTMNTSTRU3
-- Parameters: P_AlternativeGLAccount : figlmx_prim

CREATE VIEW P_MX_FinancialStmntStructure3 AS
SELECT
  FSV.HierarchyNode AS HierarchyNodeUniqueID,
  FSV.FinancialStatementHierarchy AS FinancialStatementVariant,
  FSV.ChartOfAccounts AS ChartOfAccounts,
  FSV.CompanyCode AS CompanyCode,
  FSV.GLAccount AS GLAccount,
  _ReportedGLAcctLog.StatryRptCategory AS StatryRptCategory,
  _ReportedGLAcctLog.StatryRptgEntity AS StatryRptgEntity,
  _ReportedGLAcctLog.StatryRptRunID AS StatryRptRunID,
  FSV.ValidityEndDate AS ValidityEndDate,
  FSV.ValidityStartDate AS ValidityStartDate,
  FSV.FinancialStatementItem AS FinancialStatementItem,
  FSV.VATRegistration AS VATRegistration,
  FSV.GLAccountType AS GLAccountType,
  FSV.GLAccountInfo AS GLAccountInfo,
  FSV.FinancialStatementItem AS MX_SATGLAccountGrouping,
  FSV.GLAccountGroup AS GLAccountGroup,
  FSV.OperationalGLAccount AS OperationalGLAccount,
  FSV.OperationalChartOfAccounts AS OperationalChartOfAccounts,
  FSV._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts
FROM P_MX_FinancialStmntStructure2
LEFT OUTER JOIN I_StRpGLAccountLog AS _ReportedGLAcctLog ON _ReportedGLAcctLog.CompanyCode = FSV.CompanyCode AND _ReportedGLAcctLog.GLAccount = FSV.GLAccount  -- association [0..*]
;