I_SupplyProtectionTimeBucketTP

DDL: I_SUPPLYPROTECTIONTIMEBUCKETTP Type: view_entity TRANSACTIONAL

Supply Protection Time Bucket

I_SupplyProtectionTimeBucketTP is a Transactional CDS View that provides data about "Supply Protection Time Bucket" in SAP S/4HANA. It reads from 1 data source (I_SupplyProtectionTimeBucket) and exposes 21 fields with key field SupProtTimeBucketUUID. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtectionTimeBucket I_SupplyProtectionTimeBucket from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_SupplyProtectionTP _SupplyProtectionTP $projection.SupplyProtectionUUID = _SupplyProtectionTP.SupplyProtectionUUID
[0..1] I_User _CreatedByUser _CreatedByUser.UserID = $projection.CreatedByUser
[0..1] I_User _LastChangedByUser _LastChangedByUser.UserID = $projection.LastChangedByUser
[0..*] I_SupProtPermConsumptionTP _SupProtPermConsumptionTP $projection.SupProtTimeBucketUUID = _SupProtPermConsumptionTP.SupProtTimeBucketUUID

Annotations (7)

NameValueLevelField
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Supply Protection Time Bucket view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY SupProtTimeBucketUUID SupProtTimeBucketUUID Waste Partner UUID
SupplyProtectionGroupUUID SupplyProtectionGroupUUID CVC UUID
SupProtPeriodStartUTCDateTime SupProtPeriodStartUTCDateTime Time Stamp
StartDate Time Stamp
SupProtPeriodEndUTCDateTime SupProtPeriodEndUTCDateTime Time Stamp
EndDate Time Stamp
UnitOfMeasure _SupplyProtectionGroupTP UnitOfMeasure Unit Protected Qty
SupProtProtectedQuantity SupProtProtectedQuantity Protected Quantity
SupProtConsumedQuantity SupProtConsumedQuantity Consumed Quantity
SupProtRemainingProtectedQty SupProtRemainingProtectedQty Remaining Protection
CreatedByUser CreatedByUser User Name
CreationDateTime CreationDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
LastChangeDateTime LastChangeDateTime Timestamp
SupplyProtectionUUID _SupplyProtectionGroupTP SupplyProtectionUUID UUID
_SupplyProtectionGroupTP _SupplyProtectionGroupTP
_SupplyProtectionTP _SupplyProtectionTP
_SupProtPermConsumptionTP _SupProtPermConsumptionTP
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_BaseUnit _SupplyProtectionGroupTP _BaseUnit

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_SupplyProtectionTimeBucketTP.
-- 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_SupplyProtectionTimeBucketTP AS
SELECT
  SupProtTimeBucketUUID,
  SupplyProtectionGroupUUID,
  SupProtPeriodStartUTCDateTime,
  cast(tstmp_to_dats( cast( SupProtPeriodStartUTCDateTime as abap.dec(15,0) ), 'UTC', $session.client, 'NULL' ) as vdm_v_start_date) AS StartDate,
  SupProtPeriodEndUTCDateTime,
  cast(tstmp_to_dats( cast( SupProtPeriodEndUTCDateTime as abap.dec(15,0) ),'UTC', $session.client, 'NULL' ) as vdm_v_end_date) AS EndDate,
  _SupplyProtectionGroupTP.UnitOfMeasure AS UnitOfMeasure,
  SupProtProtectedQuantity,
  SupProtConsumedQuantity,
  SupProtRemainingProtectedQty,
  CreatedByUser,
  CreationDateTime,
  LastChangedByUser,
  LastChangeDateTime,
  _SupplyProtectionGroupTP.SupplyProtectionUUID AS SupplyProtectionUUID,
  _SupplyProtectionGroupTP._BaseUnit AS _BaseUnit
FROM I_SupplyProtectionTimeBucket
LEFT OUTER JOIN I_SupplyProtectionTP AS _SupplyProtectionTP ON SupplyProtectionUUID = _SupplyProtectionTP.SupplyProtectionUUID  -- association [1..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON _CreatedByUser.UserID = CreatedByUser  -- association [0..1]
LEFT OUTER JOIN I_User AS _LastChangedByUser ON _LastChangedByUser.UserID = LastChangedByUser  -- association [0..1]
LEFT OUTER JOIN I_SupProtPermConsumptionTP AS _SupProtPermConsumptionTP ON SupProtTimeBucketUUID = _SupProtPermConsumptionTP.SupProtTimeBucketUUID  -- association [0..*]
;