P_MX_FinancialStmntStructure2

DDL: P_MX_FINANCIALSTMNTSTRUCTURE2 SQL: PMXFINSTMNTSTRU2 Type: view COMPOSITE Package: GLO_FIN_IS_GL_MX_AUX_ACCT

Mexico Financial Statement Structure

P_MX_FinancialStmntStructure2 is a Composite CDS View that provides data about "Mexico Financial Statement Structure" 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. Part of development package GLO_FIN_IS_GL_MX_AUX_ACCT.

Data Sources (1)

SourceAliasJoin Type
P_MX_FinancialStmntStructure FSV from

Parameters (1)

NameTypeDefault
P_AlternativeGLAccount figlmx_prim

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;