A_CnsldtnCountryHier

DDL: A_CNSLDTNCOUNTRYHIER Type: view COMPOSITE Package: FIN_CS_MD_API

Combined Country/Region Hierarchy

A_CnsldtnCountryHier is a Composite CDS View that provides data about "Combined Country/Region Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnCountryHierNode) and exposes 16 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_CnsldtnCountryHierNode _CnsldtnCountryHierNode from

Associations (4)

CardinalityTargetAliasCondition
[0..1] A_CnsldtnCountry _CnsldtnCountry $projection.Country = _CnsldtnCountry.Country
[0..*] A_CnsldtnCountryHierT _CnsldtnCountryHierT $projection.AdditionalMasterDataHierarchy = _CnsldtnCountryHierT.AdditionalMasterDataHierarchy and $projection.HierarchyNode = _CnsldtnCountryHierT.HierarchyNode and $projection.ValidityEndDate = _CnsldtnCountryHierT.ValidityEndDate and $projection.Country = ''
[0..*] A_CnsldtnCountryT _CnsldtnCountryT $projection.Country = _CnsldtnCountryT.Country
[0..1] A_CnsldtnCountryHierDir _CnsldtnCountryHierDir $projection.AdditionalMasterDataHierarchy = _CnsldtnCountryHierDir.AdditionalMasterDataHierarchy and $projection.ValidityEndDate = _CnsldtnCountryHierDir.ValidityEndDate

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ACSCOUNTRYHIER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
EndUserText.label Combined Country/Region Hierarchy view
OData.entitySet.name CustomerSupplierCountryHier 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 (16)

KeyFieldSource TableSource FieldDescription
KEY AdditionalMasterDataHierarchy I_CnsldtnCountryHierNode ConsolidationCountryHierarchy
KEY HierarchyNode HierarchyNode Node
KEY ValidityEndDate I_CnsldtnCountryHierNode ValidityEndDate ValidTo
ParentNode I_CnsldtnCountryHierNode ParentNode Parent Node
ValidityStartDate I_CnsldtnCountryHierNode ValidityStartDate Validity Start Date
Country I_CnsldtnCountryHierNode Country Customer/Supplier Country/Region
SequenceNumber
HierarchyNodeSequence I_CnsldtnCountryHierNode HierarchyNodeSequence
HierarchyNodeLevel I_CnsldtnCountryHierNode HierarchyNodeLevel Hierarchy Node Level
NodeType I_CnsldtnCountryHierNode NodeType Object Type
MDHierType
HierarchyType
_CnsldtnCountryHierDir _CnsldtnCountryHierDir
_CnsldtnCountry _CnsldtnCountry
_CnsldtnCountryHierT _CnsldtnCountryHierT
_CnsldtnCountryT _CnsldtnCountryT

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_CnsldtnCountryHier.
-- 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_CnsldtnCountryHier AS
SELECT
  _CnsldtnCountryHierNode.ConsolidationCountryHierarchy AS AdditionalMasterDataHierarchy,
  HierarchyNode,
  _CnsldtnCountryHierNode.ValidityEndDate AS ValidityEndDate,
  _CnsldtnCountryHierNode.ParentNode AS ParentNode,
  _CnsldtnCountryHierNode.ValidityStartDate AS ValidityStartDate,
  _CnsldtnCountryHierNode.Country AS Country,
  cast(_CnsldtnCountryHierNode.HierarchyNodeSequence as abap.char( 56 ) ) AS SequenceNumber,
  _CnsldtnCountryHierNode.HierarchyNodeSequence AS HierarchyNodeSequence,
  _CnsldtnCountryHierNode.HierarchyNodeLevel AS HierarchyNodeLevel,
  _CnsldtnCountryHierNode.NodeType AS NodeType,
  cast('CS14' as hrytype preserving type ) AS MDHierType,
  cast('CS14' as hrytype preserving type ) AS HierarchyType
FROM I_CnsldtnCountryHierNode AS _CnsldtnCountryHierNode
LEFT OUTER JOIN A_CnsldtnCountry AS _CnsldtnCountry ON Country = _CnsldtnCountry.Country  -- association [0..1]
LEFT OUTER JOIN A_CnsldtnCountryHierT AS _CnsldtnCountryHierT ON AdditionalMasterDataHierarchy = _CnsldtnCountryHierT.AdditionalMasterDataHierarchy AND HierarchyNode = _CnsldtnCountryHierT.HierarchyNode AND ValidityEndDate = _CnsldtnCountryHierT.ValidityEndDate AND Country = ''  -- association [0..*]
LEFT OUTER JOIN A_CnsldtnCountryT AS _CnsldtnCountryT ON Country = _CnsldtnCountryT.Country  -- association [0..*]
LEFT OUTER JOIN A_CnsldtnCountryHierDir AS _CnsldtnCountryHierDir ON AdditionalMasterDataHierarchy = _CnsldtnCountryHierDir.AdditionalMasterDataHierarchy AND ValidityEndDate = _CnsldtnCountryHierDir.ValidityEndDate  -- association [0..1]
;