I_SalesProductHierarchyPurpose

DDL: I_SALESPRODUCTHIERARCHYPURPOSE Type: view BASIC Package: SD_PRODUCT_HIER

Product Hierarchy Purpose in Sales

I_SalesProductHierarchyPurpose (Basic)

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

Sales

I_SalesProductHierarchyPurpose is a Basic CDS View (Dimension) that provides data about "Product Hierarchy Purpose in Sales" in SAP S/4HANA. It reads from 1 data source (dd07l) and exposes 3 fields with key field SalesProductHierarchyPurpose. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F4240). Part of development package SD_PRODUCT_HIER.

SAP Help Documentation

CategoryProduct Hierarchy
Purpose
This CDS view provides the data to answer the following business questions: For which purpose is a product hierarchy used in business documents? 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 don't need any special authorization.

Structure
Important Fields Important fields in this view include the following: Field Name Description SalesProductHierarchyPurpose A product hierarchy can be used for one of the following purposes: 01 : Sales 02 : Batch Determination

View on SAP Help Portal →

SAP API Hub

CategoryBasic
StateC1
Line of BusinessSales
Application ComponentSD-SLS-PH-2CL
CapabilitiesData Source in SQL Select,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Data Source for Search,Analytical Dimension
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageSales for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>For which purpose is a product hierarchy used in business documents?</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 (1)

SourceAliasJoin Type
dd07l dd07l from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_SalesProductHierarchyPrpsTxt _Text $projection.SalesProductHierarchyPurpose = _Text.SalesProductHierarchyPurpose

Annotations (14)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey SalesProductHierarchyPurpose view
ObjectModel.usageType.dataClass #META view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
AbapCatalog.sqlViewName ISDPHP view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Product Hierarchy Purpose in Sales view
Metadata.ignorePropagatedAnnotations true view
Search.searchable true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F4240 ASQL_F4240 C2 NOT_RELEASED

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY SalesProductHierarchyPurpose Purpose
DomainValue domvalue_l Values for Domains: Single Value/Lower Limit
_Text _Text

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_SalesProductHierarchyPurpose.
-- 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_SalesProductHierarchyPurpose AS
SELECT
  substring(dd07l.domvalue_l, 1, 2) AS SalesProductHierarchyPurpose,
  domvalue_l AS DomainValue
FROM dd07l
LEFT OUTER JOIN I_SalesProductHierarchyPrpsTxt AS _Text ON SalesProductHierarchyPurpose = _Text.SalesProductHierarchyPurpose  -- association [0..*]
;