I_MrchdsCatToHierarchyNode

DDL: I_MRCHDSCATTOHIERARCHYNODE Type: view_entity BASIC

Merchandise Category HierNode Assignment

I_MrchdsCatToHierarchyNode (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

MerchandiseCategory · Cross Applications

I_MrchdsCatToHierarchyNode is a Basic CDS View (Dimension) that provides data about "Merchandise Category HierNode Assignment" in SAP S/4HANA. It reads from 3 data sources (kssk, klah, klah) and exposes 3 fields with key field MerchandiseCategory. It has 1 association to related views.

SAP Help Documentation

CategoryProduct Taxonomies
Purpose
This CDS view provides the list of merchandise categories along with its assigned merchandise category hierarchy node. This CDS view provides the data to answer the following business questions: Which is the merchandise category hierarchy node with which a particular merchandise category is assigned? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: C_TCLA_BKA (Controls user access to class types) C_KLAH_BKP (Authorization for class maintenance)

Structure
Further Important Fields Important fields in this view include the following: Field Name Description MerchandiseCategory Merchandise Category Note This is a key field. MrchdsCategoryHierarchyNode Merchandise Category Hierarchy Node

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessCross Applications
Application ComponentLO-RFM-MD-MC
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities, Analytical Dimension, Data Source for Data Extraction
PackageCross Applications for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides the list of merchandise categories along with its assigned merchandise category hierarchy node.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>Which is the merchandise category hierarchy node with which a particular merchandise category is assigned?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (3)

SourceAliasJoin Type
kssk MrchdsCatAssignment inner
klah MrchdsCategory from
klah MrchdsCatHiernode inner

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_MerchandiseCategory _MerchandiseCategory $projection.MerchandiseCategory = _MerchandiseCategory.MerchandiseCategory

Annotations (15)

NameValueLevelField
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey MerchandiseCategory view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions true view
ObjectModel.sapObjectNodeType.name MerchandiseCategory view
EndUserText.label Merchandise Category HierNode Assignment view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY MerchandiseCategory Merchandise Category
MrchdsCategoryHierarchyNode Merchandise Category Hierarchy Node
_MerchandiseCategory _MerchandiseCategory

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_MrchdsCatToHierarchyNode.
-- 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_MrchdsCatToHierarchyNode AS
SELECT
  cast (MrchdsCategory.class as rfm_mrchdscategory ) AS MerchandiseCategory,
  cast (MrchdsCatHiernode.class as rfm_mrchdcathiernode preserving type ) AS MrchdsCategoryHierarchyNode
FROM klah AS MrchdsCategory
INNER JOIN kssk AS MrchdsCatAssignment ON /* join condition not captured in parsed metadata */
INNER JOIN klah AS MrchdsCatHiernode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MerchandiseCategory AS _MerchandiseCategory ON MerchandiseCategory = _MerchandiseCategory.MerchandiseCategory  -- association [1..1]
;