A_CnsldtnPartnerSegmentHier
Combined Partner Segment - Hier Node
A_CnsldtnPartnerSegmentHier is a Basic CDS View that provides data about "Combined Partner Segment - Hier Node" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnSegmentHierNode) and exposes 15 fields with key fields ConsolidationSegmentHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnSegmentHierNode | I_CnsldtnSegmentHierNode | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | A_CnsldtnPartnerSegment | _CnsldtnPartnerSegment | $projection.Segment = _CnsldtnPartnerSegment.Segment |
| [0..*] | A_CnsldtnPartSegmentHierT | _CnsldtnPartSegmentHierT | $projection.ConsolidationSegmentHierarchy = _CnsldtnPartSegmentHierT.ConsolidationSegmentHierarchy and $projection.HierarchyNode = _CnsldtnPartSegmentHierT.HierarchyNode and $projection.ValidityEndDate = _CnsldtnPartSegmentHierT.ValidityEndDate and $projection.Segment = '' |
| [0..*] | A_CnsldtnPartnerSegmentT | _CnsldtnPartnerSegmentT | $projection.Segment = _CnsldtnPartnerSegmentT.Segment |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACSPARTSEGMENTH | 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 | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| EndUserText.label | Combined Partner Segment - Hier Node | view | |
| OData.entitySet.name | PartnerSegmentHier | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConsolidationSegmentHierarchy | |||
| KEY | HierarchyNode | HierarchyNode | Node | |
| KEY | ValidityEndDate | ValidityEndDate | ValidTo | |
| ParentNode | ParentNode | Parent Node | ||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| Segment | Segment number | |||
| SequenceNumber | ||||
| HierarchyNodeSequence | HierarchyNodeSequence | |||
| HierarchyNodeLevel | HierarchyNodeLevel | Hierarchy Node Level | ||
| NodeType | NodeType | Object Type | ||
| MDHierType | ||||
| HierarchyType | ||||
| _CnsldtnPartnerSegment | _CnsldtnPartnerSegment | |||
| _CnsldtnPartnerSegmentT | _CnsldtnPartnerSegmentT | |||
| _CnsldtnPartSegmentHierT | _CnsldtnPartSegmentHierT |
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_CnsldtnPartnerSegmentHier.
-- 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_CnsldtnPartnerSegmentHier AS
SELECT
cast(left(ConsolidationSegmentHierarchy, 40) as fincs_hryid_segment preserving type ) AS ConsolidationSegmentHierarchy,
HierarchyNode,
ValidityEndDate,
ParentNode,
ValidityStartDate,
cast(Segment as fincs_psegment preserving type ) AS Segment,
cast(HierarchyNodeSequence as abap.char( 56 ) ) AS SequenceNumber,
HierarchyNodeSequence,
HierarchyNodeLevel,
NodeType,
cast('CS01' as fincs_hryid) AS MDHierType,
cast('CS01' as hrytype) AS HierarchyType
FROM I_CnsldtnSegmentHierNode
LEFT OUTER JOIN A_CnsldtnPartnerSegment AS _CnsldtnPartnerSegment ON Segment = _CnsldtnPartnerSegment.Segment -- association [0..1]
LEFT OUTER JOIN A_CnsldtnPartSegmentHierT AS _CnsldtnPartSegmentHierT ON ConsolidationSegmentHierarchy = _CnsldtnPartSegmentHierT.ConsolidationSegmentHierarchy AND HierarchyNode = _CnsldtnPartSegmentHierT.HierarchyNode AND ValidityEndDate = _CnsldtnPartSegmentHierT.ValidityEndDate AND Segment = '' -- association [0..*]
LEFT OUTER JOIN A_CnsldtnPartnerSegmentT AS _CnsldtnPartnerSegmentT ON Segment = _CnsldtnPartnerSegmentT.Segment -- association [0..*]
;
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