I_SamplingReference

DDL: I_SAMPLINGREFERENCE SQL: ISDEFSAMP Type: view BASIC

Sampling Definition - SamplingRef

I_SamplingReference is a Basic CDS View that provides data about "Sampling Definition - SamplingRef" in SAP S/4HANA. It reads from 1 data source (ehenvd_sdef_samp) and exposes 9 fields with key fields SamplingReferenceUUID, SamplingDefinitionUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehenvd_sdef_samp ehenvd_sdef_samp from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName ISDEFSAMP view
VDM.viewType #BASIC view
EndUserText.label Sampling Definition - SamplingRef 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 (9)

KeyFieldSource TableSource FieldDescription
KEY SamplingReferenceUUID db_key UUID
KEY SamplingDefinitionUUID parent_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
SamplingUUID sampling_key_ref Sampling Key

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_SamplingReference.
-- 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: ISDEFSAMP

CREATE VIEW I_SamplingReference AS
SELECT
  db_key AS SamplingReferenceUUID,
  parent_key AS SamplingDefinitionUUID,
  datetime_cr AS CreationDateTime,
  user_id_cr AS CreatedByUser,
  datetime_ch AS LastChangeDateTime,
  user_id_ch AS LastChangedByUser,
  sampling_key_ref AS SamplingUUID
FROM ehenvd_sdef_samp
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]
;