I_DataCollectionRootBasic

DDL: I_DATACOLLECTIONROOTBASIC SQL: IMDEFROOTB Type: view BASIC Package: EHENV_BO_MDEF_IMPL

Data Collection Root

I_DataCollectionRootBasic is a Basic CDS View that provides data about "Data Collection Root" in SAP S/4HANA. It reads from 1 data source (ehenvd_mdef_root) and exposes 19 fields with key field DataCollectionUUID. It has 2 associations to related views. Part of development package EHENV_BO_MDEF_IMPL.

Data Sources (1)

SourceAliasJoin Type
ehenvd_mdef_root ehenvd_mdef_root from

Associations (2)

CardinalityTargetAliasCondition
[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 IMDEFROOTB view
EndUserText.label Data Collection Root view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY DataCollectionUUID db_key UUID
CreationDateTime Created On/At
LastChangeDateTime Changed On/At
CreatedByUser user_id_cr Created By
LastChangedByUser user_id_ch Changed By
DataCollectionID id WorklistID
DataCollectionName name Zone name
DataCollectionInputMethod input_method Input Method
EHSAmountExternalSource tag_id Template GUID
DataUsagePeriodicity Data Period
UnitOfMeasure UoM
EHSAltvUnitOfMeasurement Unit of Measurement
EHSSubjectType subject_type_code Subject Type
EHSSubjectUUID subject_root_key_ref Subject Ref Key
DataCollectionTitle title View Title
DataCollectionMigrationSource migration_src Migration Source
EHSLocationUUID NodeID
_EHSLocation _EHSLocation
_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_DataCollectionRootBasic.
-- 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: IMDEFROOTB

CREATE VIEW I_DataCollectionRootBasic AS
SELECT
  db_key AS DataCollectionUUID,
  cast( datetime_cr as ehfnd_datetime_cr preserving type ) AS CreationDateTime,
  cast( datetime_ch as ehfnd_datetime_ch preserving type ) AS LastChangeDateTime,
  user_id_cr AS CreatedByUser,
  user_id_ch AS LastChangedByUser,
  id AS DataCollectionID,
  name AS DataCollectionName,
  input_method AS DataCollectionInputMethod,
  tag_id AS EHSAmountExternalSource,
  cast( mdef_period as ehenv_mdef_period_code_nc preserving type ) AS DataUsagePeriodicity,
  cast( unit as ehfnd_unit_code_nce preserving type ) AS UnitOfMeasure,
  cast( unit_alt as ehfnd_unit_code_nce preserving type ) AS EHSAltvUnitOfMeasurement,
  subject_type_code AS EHSSubjectType,
  subject_root_key_ref AS EHSSubjectUUID,
  title AS DataCollectionTitle,
  migration_src AS DataCollectionMigrationSource,
  cast( loc_root_key_ref as ehfnd_location_uuid_ref preserving type ) AS EHSLocationUUID
FROM ehenvd_mdef_root
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]
;