I_SupplyProtectionTP

DDL: I_SUPPLYPROTECTIONTP Type: view_entity TRANSACTIONAL

Supply Protection

I_SupplyProtectionTP is a Transactional CDS View that provides data about "Supply Protection" in SAP S/4HANA. It reads from 1 data source (I_SupplyProtection) and exposes 65 fields with key field SupplyProtectionUUID. It has 24 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtection I_SupplyProtection from

Associations (24)

CardinalityTargetAliasCondition
[0..1] I_Material _Material $projection.Material = _Material.Material
[1..*] I_MaterialText _MaterialText $projection.Material = _MaterialText.Material
[0..1] I_UnitOfMeasure _BaseUnit $projection.UnitOfMeasure = _BaseUnit.UnitOfMeasure
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_SupProtLifecycleStatus _SupProtLifecycleStatus $projection.SupProtLifecycleStatus = _SupProtLifecycleStatus.SupProtLifecycleStatus
[0..*] I_SupProtLifecycleStatusText _SupProtLifecycleStatusText $projection.SupProtLifecycleStatus = _SupProtLifecycleStatusText.SupProtLifecycleStatus
[0..1] I_SupProtPlanningPeriodType _SupProtPlanningPeriodType $projection.SupProtPlanningPeriodType = _SupProtPlanningPeriodType.SupProtPlanningPeriodType
[0..*] I_SupProtPlanningPeriodTypeT _SupProtPlanningPeriodTypeT $projection.SupProtPlanningPeriodType = _SupProtPlanningPeriodTypeT.SupProtPlanningPeriodType
[0..1] I_SupProtCnsmpnDateTimeType _SupProtCnsmpnDateTimeType $projection.SupProtCnsmpnDateTimeType = _SupProtCnsmpnDateTimeType.SupProtCnsmpnDateTimeType
[0..*] I_SupProtCnsmpnDateTimeTypeT _SupProtCnsmpnDateTimeTypeT $projection.SupProtCnsmpnDateTimeType = _SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeType
[0..1] I_SupProtSelfRestrictionType _SupProtSelfRestrictionType $projection.SupProtSelfRestrictionType = _SupProtSelfRestrictionType.SupProtSelfRestrictionType
[0..*] I_SupProtSelfRestrictionTypeT _SupProtSelfRestrictionTypeT $projection.SupProtSelfRestrictionType = _SupProtSelfRestrictionTypeT.SupProtSelfRestrictionType
[0..*] I_SupProtRelatedSupProtTP _SupProtRelatedSupProtTP $projection.Material = _SupProtRelatedSupProtTP.Material and $projection.Plant = _SupProtRelatedSupProtTP.Plant and $projection.SupProtPlanningLevel = _SupProtRelatedSupProtTP.SupProtPlanningLevel and $projection.StorageLocation = _SupProtRelatedSupProtTP.StorageLocation and $projection.PoolSegment = _SupProtRelatedSupProtTP.PoolSegment and $projection.SupplyProtectionUUID <> _SupProtRelatedSupProtTP.SupplyProtectionUUID
[0..1] I_ProdAllocCharcText _ProdAllocCharcText01 _ProdAllocCharcText01.ProdAllocCharcCtlgPathIntID = $projection.CoreCharc01CtlgPathIntID and _ProdAllocCharcText01.Language = $session.system_language
[0..1] I_ProdAllocCharcText _ProdAllocCharcText02 _ProdAllocCharcText02.ProdAllocCharcCtlgPathIntID = $projection.CoreCharc02CtlgPathIntID and _ProdAllocCharcText02.Language = $session.system_language
[0..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[0..1] I_User _LastChangedByUser $projection.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..1] I_SupProtPlanningLevel _SupProtPlanningLevel $projection.SupProtPlanningLevel = _SupProtPlanningLevel.SupProtPlanningLevel
[0..*] I_SupProtPlanningLevelText _SupProtPlanningLevelText $projection.SupProtPlanningLevel = _SupProtPlanningLevelText.SupProtPlanningLevel
[0..1] E_SupAvailabilityProtPlan _Extension $projection.SupplyProtectionUUID = _Extension.SupplyProtectionUUID
[0..*] I_SupProtCharacteristicTP _SupProtCharacteristicTP
[0..*] I_SupplyProtectionGroupTP _SupplyProtectionGroupTP
[0..*] I_SupProtFlexibleTimeBucketTP _SupProtFlexibleTimeBucketTP

Annotations (13)

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 #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.sapObjectNodeType.name SupAvailabilityProtectionPlan view
AbapCatalog.extensibility.extensible true view
AbapCatalog.extensibility.elementSuffix ASU view
AbapCatalog.extensibility.allowNewDatasources false view
AbapCatalog.extensibility.quota.maximumFields 204 view
AbapCatalog.extensibility.quota.maximumBytes 2040 view
EndUserText.label Supply Protection view

Fields (65)

KeyFieldSource TableSource FieldDescription
KEY SupplyProtectionUUID SupplyProtectionUUID UUID
SupplyProtectionName SupplyProtectionName Zone name
Material Material Vehicle Model
UnitOfMeasure _Material MaterialBaseUnit Valuation Unit
Plant Plant Valuation Area
SupProtIsPlanningContextSlsOrd SupProtIsPlanningContextSlsOrd Sales Document
SupProtIsPlanningContextSTO SupProtIsPlanningContextSTO Stock Transport Order
SupProtCharcCatalogType SupProtCharcCatalogType Catalog Type
SupProtPlanningPeriodType SupProtPlanningPeriodType Planning Period Type
SupProtPlanningPeriodStartDate SupProtPlanningPeriodStartDate Planning Start Date
SupProtPlanningPeriodEndDate SupProtPlanningPeriodEndDate Planning End Date
SupProtAutomActivationIsActive SupProtAutomActivationIsActive Activate Automatically
SupProtAutomActivationDate SupProtAutomActivationDate Activate On
SupProtCoreCharc01CtlgPathUUID SupProtCoreCharc01CtlgPathUUID Catalog Path UUID
CoreCharc01CtlgPathIntID CoreCharc01CtlgPathIntID Catalog Path Int. ID
SupProtCoreCharc01Name
SupProtCoreCharc01Text
SupProtCoreCharc01ValueID SupProtCoreCharc01ValueID Characteristic Value
SupProtCoreCharc02CtlgPathUUID SupProtCoreCharc02CtlgPathUUID Catalog Path UUID
CoreCharc02CtlgPathIntID CoreCharc02CtlgPathIntID Catalog Path Int. ID
SupProtCoreCharc02Name
SupProtCoreCharc02Text
SupProtCoreCharc02ValueID SupProtCoreCharc02ValueID Characteristic Value
SupProtLifecycleStatus SupProtLifecycleStatus Workflow Status
SupProtProtectedQuantity SupProtProtectedQuantity Protected Quantity
SupProtConsumedQuantity SupProtConsumedQuantity Consumed Quantity
SupProtRemainingProtectedQty SupProtRemainingProtectedQty Remaining Protection
CreatedByUser CreatedByUser User Name
CreationDateTime CreationDateTime Timestamp
CreationDate Timestamp
LastChangedByUser LastChangedByUser User Name
LastChangeDateTime LastChangeDateTime Timestamp
LastChangeDate Timestamp
CharcValAuthznGroup CharcValAuthznGroup Authorization Group
SupplyProtectionIsBlocked SupplyProtectionIsBlocked Complaint Locked
DraftLastChangedDateTime DraftLastChangedDateTime Time Stamp
SupProtActivationDate SupProtActivationDate Activation Date
SupProtCnsmpnDateTimeType SupProtCnsmpnDateTimeType
SupProtSelfRestrictionType SupProtSelfRestrictionType
SupProtPlngContextIsConsistent
SupProtPlngContextCriticality
StorageLocation StorageLocation StorageLocation
PoolSegment PoolSegment Pool Seg.
SupProtPlanningLevel SupProtPlanningLevel Planning Level
_SupProtCharacteristicTP _SupProtCharacteristicTP
_SupplyProtectionGroupTP _SupplyProtectionGroupTP
_SupProtFlexibleTimeBucketTP _SupProtFlexibleTimeBucketTP
_Material _Material
_BaseUnit _BaseUnit
_MaterialText _MaterialText
_Plant _Plant
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_SupProtLifecycleStatus _SupProtLifecycleStatus
_SupProtLifecycleStatusText _SupProtLifecycleStatusText
_SupProtPlanningPeriodType _SupProtPlanningPeriodType
_SupProtPlanningPeriodTypeT _SupProtPlanningPeriodTypeT
_SupProtCnsmpnDateTimeType _SupProtCnsmpnDateTimeType
_SupProtCnsmpnDateTimeTypeT _SupProtCnsmpnDateTimeTypeT
_SupProtSelfRestrictionType _SupProtSelfRestrictionType
_SupProtSelfRestrictionTypeT _SupProtSelfRestrictionTypeT
_SupProtRelatedSupProtTP _SupProtRelatedSupProtTP
_StorageLocation _StorageLocation
_SupProtPlanningLevel _SupProtPlanningLevel
_SupProtPlanningLevelText _SupProtPlanningLevelText

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_SupplyProtectionTP.
-- 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_SupplyProtectionTP AS
SELECT
  SupplyProtectionUUID,
  SupplyProtectionName,
  Material,
  _Material.MaterialBaseUnit AS UnitOfMeasure,
  Plant,
  SupProtIsPlanningContextSlsOrd,
  SupProtIsPlanningContextSTO,
  SupProtCharcCatalogType,
  SupProtPlanningPeriodType,
  SupProtPlanningPeriodStartDate,
  SupProtPlanningPeriodEndDate,
  SupProtAutomActivationIsActive,
  SupProtAutomActivationDate,
  SupProtCoreCharc01CtlgPathUUID,
  CoreCharc01CtlgPathIntID,
  cast( '' as charccatalogcharacteristicname ) AS SupProtCoreCharc01Name,
  cast( _ProdAllocCharcText01.ProdAllocCharcCtlgPathDesc as sup_charc_text preserving type ) AS SupProtCoreCharc01Text,
  SupProtCoreCharc01ValueID,
  SupProtCoreCharc02CtlgPathUUID,
  CoreCharc02CtlgPathIntID,
  cast( '' as charccatalogcharacteristicname ) AS SupProtCoreCharc02Name,
  cast( _ProdAllocCharcText02.ProdAllocCharcCtlgPathDesc as sup_charc_text preserving type ) AS SupProtCoreCharc02Text,
  SupProtCoreCharc02ValueID,
  SupProtLifecycleStatus,
  SupProtProtectedQuantity,
  SupProtConsumedQuantity,
  SupProtRemainingProtectedQty,
  CreatedByUser,
  CreationDateTime,
  cast(tstmp_to_dats( cast( CreationDateTime as abap.dec(15,0) ), 'UTC', $session.client, 'NULL' ) as sup_creation_date preserving type ) AS CreationDate,
  LastChangedByUser,
  LastChangeDateTime,
  cast(tstmp_to_dats( cast( LastChangeDateTime as abap.dec(15,0) ), 'UTC', $session.client, 'NULL' ) as sup_last_change_date preserving type ) AS LastChangeDate,
  CharcValAuthznGroup,
  SupplyProtectionIsBlocked,
  DraftLastChangedDateTime,
  SupProtActivationDate,
  SupProtCnsmpnDateTimeType,
  SupProtSelfRestrictionType,
  cast(' ' as sup_plngcontext_consistent preserving type ) AS SupProtPlngContextIsConsistent,
  cast(0 as sup_plngcontext_criticality preserving type ) AS SupProtPlngContextCriticality,
  StorageLocation,
  PoolSegment,
  SupProtPlanningLevel
FROM I_SupplyProtection
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Material = _MaterialText.Material  -- association [1..*]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON UnitOfMeasure = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_SupProtLifecycleStatus AS _SupProtLifecycleStatus ON SupProtLifecycleStatus = _SupProtLifecycleStatus.SupProtLifecycleStatus  -- association [0..1]
LEFT OUTER JOIN I_SupProtLifecycleStatusText AS _SupProtLifecycleStatusText ON SupProtLifecycleStatus = _SupProtLifecycleStatusText.SupProtLifecycleStatus  -- association [0..*]
LEFT OUTER JOIN I_SupProtPlanningPeriodType AS _SupProtPlanningPeriodType ON SupProtPlanningPeriodType = _SupProtPlanningPeriodType.SupProtPlanningPeriodType  -- association [0..1]
LEFT OUTER JOIN I_SupProtPlanningPeriodTypeT AS _SupProtPlanningPeriodTypeT ON SupProtPlanningPeriodType = _SupProtPlanningPeriodTypeT.SupProtPlanningPeriodType  -- association [0..*]
LEFT OUTER JOIN I_SupProtCnsmpnDateTimeType AS _SupProtCnsmpnDateTimeType ON SupProtCnsmpnDateTimeType = _SupProtCnsmpnDateTimeType.SupProtCnsmpnDateTimeType  -- association [0..1]
LEFT OUTER JOIN I_SupProtCnsmpnDateTimeTypeT AS _SupProtCnsmpnDateTimeTypeT ON SupProtCnsmpnDateTimeType = _SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeType  -- association [0..*]
LEFT OUTER JOIN I_SupProtSelfRestrictionType AS _SupProtSelfRestrictionType ON SupProtSelfRestrictionType = _SupProtSelfRestrictionType.SupProtSelfRestrictionType  -- association [0..1]
LEFT OUTER JOIN I_SupProtSelfRestrictionTypeT AS _SupProtSelfRestrictionTypeT ON SupProtSelfRestrictionType = _SupProtSelfRestrictionTypeT.SupProtSelfRestrictionType  -- association [0..*]
LEFT OUTER JOIN I_SupProtRelatedSupProtTP AS _SupProtRelatedSupProtTP ON Material = _SupProtRelatedSupProtTP.Material AND Plant = _SupProtRelatedSupProtTP.Plant AND SupProtPlanningLevel = _SupProtRelatedSupProtTP.SupProtPlanningLevel AND StorageLocation = _SupProtRelatedSupProtTP.StorageLocation AND PoolSegment = _SupProtRelatedSupProtTP.PoolSegment AND SupplyProtectionUUID <> _SupProtRelatedSupProtTP.SupplyProtectionUUID  -- association [0..*]
LEFT OUTER JOIN I_ProdAllocCharcText AS _ProdAllocCharcText01 ON _ProdAllocCharcText01.ProdAllocCharcCtlgPathIntID = CoreCharc01CtlgPathIntID AND _ProdAllocCharcText01.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProdAllocCharcText AS _ProdAllocCharcText02 ON _ProdAllocCharcText02.ProdAllocCharcCtlgPathIntID = CoreCharc02CtlgPathIntID AND _ProdAllocCharcText02.Language = $session.system_language  -- association [0..1]
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_StorageLocation AS _StorageLocation ON Plant = _StorageLocation.Plant AND StorageLocation = _StorageLocation.StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_SupProtPlanningLevel AS _SupProtPlanningLevel ON SupProtPlanningLevel = _SupProtPlanningLevel.SupProtPlanningLevel  -- association [0..1]
LEFT OUTER JOIN I_SupProtPlanningLevelText AS _SupProtPlanningLevelText ON SupProtPlanningLevel = _SupProtPlanningLevelText.SupProtPlanningLevel  -- association [0..*]
LEFT OUTER JOIN E_SupAvailabilityProtPlan AS _Extension ON SupplyProtectionUUID = _Extension.SupplyProtectionUUID  -- association [0..1]
LEFT OUTER JOIN I_SupProtCharacteristicTP AS _SupProtCharacteristicTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_SupplyProtectionGroupTP AS _SupplyProtectionGroupTP ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_SupProtFlexibleTimeBucketTP AS _SupProtFlexibleTimeBucketTP ON /* condition not available in parsed metadata */  -- association [0..*]
;