C_EHSSamplingDefinitionDEX

DDL: C_EHSSAMPLINGDEFINITIONDEX Type: view_entity CONSUMPTION Package: EHENV_CNS_EMISSION_INVENTORY

EHS Sampling Definition

C_EHSSamplingDefinitionDEX (Consumption)

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

EHS Sampling Definition · Cross Applications

C_EHSSamplingDefinitionDEX is a Consumption CDS View (Dimension) that provides data about "EHS Sampling Definition" in SAP S/4HANA. It reads from 1 data source (I_SamplingDefinitionRoot) and exposes 12 fields with key field SamplingDefinitionUUID. It has 1 association to related views. Part of development package EHENV_CNS_EMISSION_INVENTORY.

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessCross Applications
Application ComponentEHS-SUS-EM
CapabilitiesData Source for Data Extraction,Association Target for Defining CDS Entities,Analytical Dimension
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageCross Applications for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view retrieves the main details of sampling definitions set up in the system, such as their name, period, subject type, or migration source (if applicable).</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>What's the period and subject type of a particular sampling definition?</p></li> <li><p>What's the migration source of a particular sampling definition?</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
I_SamplingDefinitionRoot I_SamplingDefinitionRoot from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_EHSLocationRevisionBasic _EHSLocationRevisionBasic $projection.EHSLocationUUID = _EHSLocationRevisionBasic.EHSLocationUUID

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label EHS Sampling Definition view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.sapObjectNodeType.name EHSSamplingDefinition view
ObjectModel.representativeKey SamplingDefinitionUUID view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
Metadata.allowExtensions true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY SamplingDefinitionUUID SamplingDefinitionUUID Sampling Definition Key
SamplingDefinitionName SamplingDefinitionName Sampling Definition Name
DataUsagePeriodicity DataUsagePeriodicity Data Period
SamplingDefMigrationSource SamplingDefMigrationSource Migration Source
EHSSubjectType EHSSubjectType Subject Type
EHSSubjectUUID EHSSubjectUUID Reference to Subject Type BO Root Node ID
EHSLocationUUID EHSLocationUUID Location Key
_EHSDataPeriod _EHSDataPeriod
_EHSLocation _EHSLocation
_SamplingHeader _SamplingHeader
_SamplingReference _SamplingReference
_EHSLocationRevisionBasic _EHSLocationRevisionBasic

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 C_EHSSamplingDefinitionDEX.
-- 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 C_EHSSamplingDefinitionDEX AS
SELECT
  SamplingDefinitionUUID,
  SamplingDefinitionName,
  DataUsagePeriodicity,
  SamplingDefMigrationSource,
  EHSSubjectType,
  EHSSubjectUUID,
  EHSLocationUUID
FROM I_SamplingDefinitionRoot
LEFT OUTER JOIN I_EHSLocationRevisionBasic AS _EHSLocationRevisionBasic ON EHSLocationUUID = _EHSLocationRevisionBasic.EHSLocationUUID  -- association [0..*]
;