I_SupProtRelatedSupProtTP

DDL: I_SUPPROTRELATEDSUPPROTTP Type: view_entity TRANSACTIONAL

Supply Protection Related Supply Prot

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

Data Sources (1)

SourceAliasJoin Type
I_SupplyProtection I_SupplyProtection from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_SupProtCharacteristicVH _SupProtCoreCharc01VH $projection.SupProtCoreCharc01CtlgPathUUID = _SupProtCoreCharc01VH.ProdAllocCharcCtlgPathUUID
[1..1] I_SupProtCharacteristicVH _SupProtCoreCharc02VH $projection.SupProtCoreCharc02CtlgPathUUID = _SupProtCoreCharc02VH.ProdAllocCharcCtlgPathUUID
[0..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_UnitOfMeasure _BaseUnit $projection.UnitOfMeasure = _BaseUnit.UnitOfMeasure
[0..1] I_SupProtLifecycleStatusText _SupProtLifecycleStatusText $projection.SupProtLifecycleStatus = _SupProtLifecycleStatusText.SupProtLifecycleStatus and _SupProtLifecycleStatusText.Language = $session.system_language
[0..1] I_SupProtPlanningPeriodTypeT _SupProtPlanningPeriodTypeText $projection.SupProtPlanningPeriodType = _SupProtPlanningPeriodTypeText.SupProtPlanningPeriodType and _SupProtPlanningPeriodTypeText.Language = $session.system_language
[0..*] I_SupProtCnsmpnDateTimeTypeT _SupProtCnsmpnDateTimeTypeT $projection.SupProtCnsmpnDateTimeType = _SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeType
[1..1] I_SupplyProtectionTP _SupplyProtectionTP $projection.SupplyProtectionUUID = _SupplyProtectionTP.SupplyProtectionUUID

Annotations (8)

NameValueLevelField
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.compositionRoot true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Supply Protection Related Supply Prot view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY SupplyProtectionUUID SupplyProtectionUUID UUID
SupplyProtectionName SupplyProtectionName Zone name
Material Material Vehicle Model
Plant Plant Valuation Area
SupProtLifecycleStatus SupProtLifecycleStatus Workflow Status
SupProtLifecycleStatusText _SupProtLifecycleStatusText SupProtLifecycleStatusText
SupProtPlanningPeriodType SupProtPlanningPeriodType Planning Period Type
SupProtPlanningPeriodTypeText _SupProtPlanningPeriodTypeText SupProtPlanningPeriodTypeText
SupProtPlanningPeriodStartDate SupProtPlanningPeriodStartDate Planning Start Date
SupProtPlanningPeriodEndDate SupProtPlanningPeriodEndDate Planning End Date
SupProtCoreCharc01CtlgPathUUID SupProtCoreCharc01CtlgPathUUID Catalog Path UUID
SupProtCoreCharc01Text
SupProtCoreCharc01ValueID SupProtCoreCharc01ValueID Characteristic Value
SupProtCoreCharc02CtlgPathUUID SupProtCoreCharc02CtlgPathUUID Catalog Path UUID
SupProtCoreCharc02Text
SupProtCoreCharc02ValueID SupProtCoreCharc02ValueID Characteristic Value
SupProtIsPlanningContextSlsOrd SupProtIsPlanningContextSlsOrd Sales Document
SupProtIsPlanningContextSTO SupProtIsPlanningContextSTO Stock Transport Order
UnitOfMeasure _Material MaterialBaseUnit Valuation Unit
SupProtProtectedQuantity SupProtProtectedQuantity Protected Quantity
SupProtConsumedQuantity SupProtConsumedQuantity Consumed Quantity
SupProtRemainingProtectedQty SupProtRemainingProtectedQty Remaining Protection
SupplyProtectionIsBlocked SupplyProtectionIsBlocked Complaint Locked
SupProtCnsmpnDateTimeType SupProtCnsmpnDateTimeType
CharcValAuthznGroup CharcValAuthznGroup Authorization Group
StorageLocation StorageLocation StorageLocation
PoolSegment PoolSegment Pool Seg.
SupProtPlanningLevel SupProtPlanningLevel Planning Level
_SupProtLifecycleStatusText _SupProtLifecycleStatusText
_SupProtCoreCharc01VH _SupProtCoreCharc01VH
_SupProtCoreCharc02VH _SupProtCoreCharc02VH
_Material _Material
_BaseUnit _BaseUnit
_SupProtPlanningPeriodTypeText _SupProtPlanningPeriodTypeText
_SupProtCnsmpnDateTimeTypeT _SupProtCnsmpnDateTimeTypeT
_SupplyProtectionTP _SupplyProtectionTP

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_SupProtRelatedSupProtTP.
-- 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_SupProtRelatedSupProtTP AS
SELECT
  SupplyProtectionUUID,
  SupplyProtectionName,
  Material,
  Plant,
  SupProtLifecycleStatus,
  _SupProtLifecycleStatusText.SupProtLifecycleStatusText AS SupProtLifecycleStatusText,
  SupProtPlanningPeriodType,
  _SupProtPlanningPeriodTypeText.SupProtPlanningPeriodTypeText AS SupProtPlanningPeriodTypeText,
  SupProtPlanningPeriodStartDate,
  SupProtPlanningPeriodEndDate,
  SupProtCoreCharc01CtlgPathUUID,
  cast( _SupProtCoreCharc01VH.Characteristic as sup_charc_text preserving type ) AS SupProtCoreCharc01Text,
  SupProtCoreCharc01ValueID,
  SupProtCoreCharc02CtlgPathUUID,
  cast( _SupProtCoreCharc02VH.Characteristic as sup_charc_text preserving type ) AS SupProtCoreCharc02Text,
  SupProtCoreCharc02ValueID,
  SupProtIsPlanningContextSlsOrd,
  SupProtIsPlanningContextSTO,
  _Material.MaterialBaseUnit AS UnitOfMeasure,
  SupProtProtectedQuantity,
  SupProtConsumedQuantity,
  SupProtRemainingProtectedQty,
  SupplyProtectionIsBlocked,
  SupProtCnsmpnDateTimeType,
  CharcValAuthznGroup,
  StorageLocation,
  PoolSegment,
  SupProtPlanningLevel
FROM I_SupplyProtection
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCoreCharc01VH ON SupProtCoreCharc01CtlgPathUUID = _SupProtCoreCharc01VH.ProdAllocCharcCtlgPathUUID  -- association [1..1]
LEFT OUTER JOIN I_SupProtCharacteristicVH AS _SupProtCoreCharc02VH ON SupProtCoreCharc02CtlgPathUUID = _SupProtCoreCharc02VH.ProdAllocCharcCtlgPathUUID  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON UnitOfMeasure = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_SupProtLifecycleStatusText AS _SupProtLifecycleStatusText ON SupProtLifecycleStatus = _SupProtLifecycleStatusText.SupProtLifecycleStatus AND _SupProtLifecycleStatusText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SupProtPlanningPeriodTypeT AS _SupProtPlanningPeriodTypeText ON SupProtPlanningPeriodType = _SupProtPlanningPeriodTypeText.SupProtPlanningPeriodType AND _SupProtPlanningPeriodTypeText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SupProtCnsmpnDateTimeTypeT AS _SupProtCnsmpnDateTimeTypeT ON SupProtCnsmpnDateTimeType = _SupProtCnsmpnDateTimeTypeT.SupProtCnsmpnDateTimeType  -- association [0..*]
LEFT OUTER JOIN I_SupplyProtectionTP AS _SupplyProtectionTP ON SupplyProtectionUUID = _SupplyProtectionTP.SupplyProtectionUUID  -- association [1..1]
;