I_SamplingDefinitionRoot

DDL: I_SAMPLINGDEFINITIONROOT SQL: ISDEFROOT Type: view BASIC

Sampling Definition Root

I_SamplingDefinitionRoot is a Basic CDS View that provides data about "Sampling Definition Root" in SAP S/4HANA. It reads from 1 data source (ehenvd_sdef_root) and exposes 17 fields with key field SamplingDefinitionUUID. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehenvd_sdef_root ehenvd_sdef_root from

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[1..*] I_SamplingReference _SamplingReference $projection.SamplingDefinitionUUID = _SamplingReference.SamplingDefinitionUUID
[1..*] I_SamplingHeader _SamplingHeader $projection.SamplingDefinitionUUID = _SamplingHeader.SamplingDefinitionUUID
[1..1] I_EHSLocationRevision _EHSLocation $projection.EHSLocationUUID = _EHSLocation.EHSLocationUUID and( _EHSLocation.RevisionStartDate <= $session.system_date and _EHSLocation.RevisionEndDate >= $session.system_date )
[0..1] I_EHSDataPeriod _EHSDataPeriod $projection.DataUsagePeriodicity = _EHSDataPeriod.EHSDataPeriod

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISDEFROOT view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
EndUserText.label Sampling Definition Root view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY SamplingDefinitionUUID db_key UUID
CreationDateTime datetime_cr Created On/At
CreatedByUser user_id_cr Created By
_CreatedByUser _CreatedByUser
LastChangeDateTime datetime_ch Changed On/At
LastChangedByUser user_id_ch Changed By
_LastChangedByUser _LastChangedByUser
SamplingDefinitionName name Zone name
DataUsagePeriodicity
SamplingDefMigrationSource migration_src Migration Source
EHSSubjectType subject_type_code Subject Type
EHSSubjectUUID subject_root_key_ref Subject Ref Key
EHSLocationUUID NodeID
_EHSLocation _EHSLocation
_SamplingHeader _SamplingHeader
_SamplingReference _SamplingReference
_EHSDataPeriod _EHSDataPeriod

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_SamplingDefinitionRoot.
-- 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.
-- SQL view name: ISDEFROOT

CREATE VIEW I_SamplingDefinitionRoot AS
SELECT
  db_key AS SamplingDefinitionUUID,
  datetime_cr AS CreationDateTime,
  user_id_cr AS CreatedByUser,
  datetime_ch AS LastChangeDateTime,
  user_id_ch AS LastChangedByUser,
  name AS SamplingDefinitionName,
  cast( '' as abap.char(3) ) AS DataUsagePeriodicity,
  migration_src AS SamplingDefMigrationSource,
  subject_type_code AS EHSSubjectType,
  subject_root_key_ref AS EHSSubjectUUID,
  cast( loc_root_key_ref as ehfnd_location_uuid_ref preserving type ) AS EHSLocationUUID
FROM ehenvd_sdef_root
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON LastChangedByUser = _LastChangedByUser.UserID  -- association [0..1]
LEFT OUTER JOIN I_SamplingReference AS _SamplingReference ON SamplingDefinitionUUID = _SamplingReference.SamplingDefinitionUUID  -- association [1..*]
LEFT OUTER JOIN I_SamplingHeader AS _SamplingHeader ON SamplingDefinitionUUID = _SamplingHeader.SamplingDefinitionUUID  -- association [1..*]
LEFT OUTER JOIN I_EHSLocationRevision AS _EHSLocation ON EHSLocationUUID = _EHSLocation.EHSLocationUUID AND( _EHSLocation.RevisionStartDate <= $session.system_date AND _EHSLocation.RevisionEndDate >= $session.system_date )  -- association [1..1]
LEFT OUTER JOIN I_EHSDataPeriod AS _EHSDataPeriod ON DataUsagePeriodicity = _EHSDataPeriod.EHSDataPeriod  -- association [0..1]
;