I_ArticleHierNodeArticle

DDL: I_ARTICLEHIERNODEARTICLE Type: view_entity BASIC

Article Hierarchy Node to Article

I_ArticleHierNodeArticle is a Basic CDS View that provides data about "Article Hierarchy Node to Article" in SAP S/4HANA. It reads from 1 data source (wrf_matgrp_sku) and exposes 9 fields with key fields ArticleHierarchy, Article, ArticleHierarchyNode, ArticleAssignmentValidFromDate. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
wrf_matgrp_sku ArticleHierarchyNodeArticle from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_ArticleHierarchyNode _ArticleHierarchyNode $projection.ArticleHierarchy = _ArticleHierarchyNode.ArticleHierarchy and $projection.ArticleHierarchyNode = _ArticleHierarchyNode.ArticleHierarchyNode
[1..1] I_ArticleHierarchy _ArticleHierarchy $projection.ArticleHierarchy = _ArticleHierarchy.ArticleHierarchy
[0..1] I_Product _Product $projection.Article = _Product.Product

Annotations (11)

NameValueLevelField
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.representativeKey ArticleHierarchyNode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.sapObjectNodeType.name ArticleHierarchyNodeArticle view
EndUserText.label Article Hierarchy Node to Article view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY ArticleHierarchy wrf_matgrp_sku hier_id Hierarchy Old ID
KEY Article
KEY ArticleHierarchyNode wrf_matgrp_sku node Node ID
KEY ArticleAssignmentValidFromDate wrf_matgrp_sku date_from Validity Start Date
ArticleAssignmentValidToDate wrf_matgrp_sku date_to Validity End Date
HierNdeIsMainAssgmtOfArticle wrf_matgrp_sku mainflg Main Assignment
_ArticleHierarchy _ArticleHierarchy
_ArticleHierarchyNode _ArticleHierarchyNode
_Product _Product

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 I_ArticleHierNodeArticle.
-- 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 I_ArticleHierNodeArticle AS
SELECT
  ArticleHierarchyNodeArticle.hier_id AS ArticleHierarchy,
  cast(ArticleHierarchyNodeArticle.matnr as productnumber preserving type ) AS Article,
  ArticleHierarchyNodeArticle.node AS ArticleHierarchyNode,
  ArticleHierarchyNodeArticle.date_from AS ArticleAssignmentValidFromDate,
  ArticleHierarchyNodeArticle.date_to AS ArticleAssignmentValidToDate,
  ArticleHierarchyNodeArticle.mainflg AS HierNdeIsMainAssgmtOfArticle
FROM wrf_matgrp_sku AS ArticleHierarchyNodeArticle
LEFT OUTER JOIN I_ArticleHierarchyNode AS _ArticleHierarchyNode ON ArticleHierarchy = _ArticleHierarchyNode.ArticleHierarchy AND ArticleHierarchyNode = _ArticleHierarchyNode.ArticleHierarchyNode  -- association [0..*]
LEFT OUTER JOIN I_ArticleHierarchy AS _ArticleHierarchy ON ArticleHierarchy = _ArticleHierarchy.ArticleHierarchy  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Article = _Product.Product  -- association [0..1]
;