A_CnsldtnGLAccountHier

DDL: A_CNSLDTNGLACCOUNTHIER Type: view COMPOSITE Package: FIN_CS_MD_API

Combined G/L Account - Hier Node

A_CnsldtnGLAccountHier is a Composite CDS View that provides data about "Combined G/L Account - Hier Node" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnGLAccountHierNode_2) and exposes 18 fields with key fields AdditionalMasterDataHierarchy, HierarchyNode, ValidityEndDate. It has 4 associations to related views. It is exposed through 5 OData services (ASQL_F7093, ASQL_F7094, ASQL_F7095, ...). Part of development package FIN_CS_MD_API.

Data Sources (1)

SourceAliasJoin Type
I_CnsldtnGLAccountHierNode_2 _Source from

Associations (4)

CardinalityTargetAliasCondition
[0..1] A_CnsldtnGLAccount _CnsldtnGLAccount $projection.ChartOfAccounts = _CnsldtnGLAccount.ChartOfAccounts and $projection.GLAccount = _CnsldtnGLAccount.GLAccount
[0..*] A_CnsldtnGLAccountHierT _CnsldtnGLAccountHierT $projection.AdditionalMasterDataHierarchy = _CnsldtnGLAccountHierT.AdditionalMasterDataHierarchy and $projection.HierarchyNode = _CnsldtnGLAccountHierT.HierarchyNode and $projection.ValidityEndDate = _CnsldtnGLAccountHierT.ValidityEndDate and $projection.GLAccount = ''
[0..1] A_CnsldtnGLChartOfAccounts _CnsldtnGLChartOfAccounts $projection.ChartOfAccounts = _CnsldtnGLChartOfAccounts.ChartOfAccounts
[0..*] A_CnsldtnGLAccountT _CnsldtnGLAccountT $projection.GLAccount = _CnsldtnGLAccountT.GLAccount and $projection.ChartOfAccounts = _CnsldtnGLAccountT.ChartOfAccounts

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ACSGLACCOUNTHIER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Combined G/L Account - Hier Node view
OData.entitySet.name GLAccountHier view

OData Services (5)

ServiceBindingVersionContractRelease
ASQL_F7093 ASQL_F7093 C2 NOT_RELEASED
ASQL_F7094 ASQL_F7094 C2 NOT_RELEASED
ASQL_F7095 ASQL_F7095 C2 NOT_RELEASED
ASQL_F7096 ASQL_F7096 C2 NOT_RELEASED
ASQL_F7867 ASQL_F7867 C2 NOT_RELEASED

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY AdditionalMasterDataHierarchy I_CnsldtnGLAccountHierNode_2 CnsldtnGLAccountHierarchy
KEY HierarchyNode I_CnsldtnGLAccountHierNode_2 HierarchyNode Node
KEY ValidityEndDate I_CnsldtnGLAccountHierNode_2 ValidityEndDate ValidTo
ParentNode I_CnsldtnGLAccountHierNode_2 ParentNode Parent Node
HierarchyVersion I_CnsldtnGLAccountHierNode_2 HierarchyVersion Version
ValidityStartDate I_CnsldtnGLAccountHierNode_2 ValidityStartDate Validity Start Date
ChartOfAccounts I_CnsldtnGLAccountHierNode_2 ChartOfAccounts Node Class
GLAccount I_CnsldtnGLAccountHierNode_2 GLAccount General Ledger
SequenceNumber
HierarchyNodeSequence I_CnsldtnGLAccountHierNode_2 HierarchyNodeSequence
HierarchyNodeLevel I_CnsldtnGLAccountHierNode_2 HierarchyNodeLevel Hierarchy Node Level
NodeType I_CnsldtnGLAccountHierNode_2 NodeType Object Type
MDHierType
HierarchyType
_CnsldtnGLAccount _CnsldtnGLAccount
_CnsldtnGLChartOfAccounts _CnsldtnGLChartOfAccounts
_CnsldtnGLAccountHierT _CnsldtnGLAccountHierT
_CnsldtnGLAccountT _CnsldtnGLAccountT

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 A_CnsldtnGLAccountHier.
-- 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.

CREATE VIEW A_CnsldtnGLAccountHier AS
SELECT
  _Source.CnsldtnGLAccountHierarchy AS AdditionalMasterDataHierarchy,
  _Source.HierarchyNode AS HierarchyNode,
  _Source.ValidityEndDate AS ValidityEndDate,
  _Source.ParentNode AS ParentNode,
  _Source.HierarchyVersion AS HierarchyVersion,
  _Source.ValidityStartDate AS ValidityStartDate,
  _Source.ChartOfAccounts AS ChartOfAccounts,
  _Source.GLAccount AS GLAccount,
  cast(_Source.HierarchyNodeSequence as abap.char( 56 ) ) AS SequenceNumber,
  _Source.HierarchyNodeSequence AS HierarchyNodeSequence,
  _Source.HierarchyNodeLevel AS HierarchyNodeLevel,
  _Source.NodeType AS NodeType,
  cast('CS02' as hrytype preserving type ) AS MDHierType,
  cast('CS02' as hrytype preserving type ) AS HierarchyType
FROM I_CnsldtnGLAccountHierNode_2 AS _Source
LEFT OUTER JOIN A_CnsldtnGLAccount AS _CnsldtnGLAccount ON ChartOfAccounts = _CnsldtnGLAccount.ChartOfAccounts AND GLAccount = _CnsldtnGLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN A_CnsldtnGLAccountHierT AS _CnsldtnGLAccountHierT ON AdditionalMasterDataHierarchy = _CnsldtnGLAccountHierT.AdditionalMasterDataHierarchy AND HierarchyNode = _CnsldtnGLAccountHierT.HierarchyNode AND ValidityEndDate = _CnsldtnGLAccountHierT.ValidityEndDate AND GLAccount = ''  -- association [0..*]
LEFT OUTER JOIN A_CnsldtnGLChartOfAccounts AS _CnsldtnGLChartOfAccounts ON ChartOfAccounts = _CnsldtnGLChartOfAccounts.ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN A_CnsldtnGLAccountT AS _CnsldtnGLAccountT ON GLAccount = _CnsldtnGLAccountT.GLAccount AND ChartOfAccounts = _CnsldtnGLAccountT.ChartOfAccounts  -- association [0..*]
;