I_SupplyProtection

DDL: I_SUPPLYPROTECTION Type: view_entity BASIC

Supply Protection

I_SupplyProtection (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

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

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentCA-ATP-SUP
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select, Association Target for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (1)

SourceAliasJoin Type
sup_object sup_object from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_SupProtCharacteristic _SupProtCharacteristic
[0..*] I_SupplyProtectionGroup _SupplyProtectionGroup
[0..*] I_SupProtFlexibleTimeBucket _SupProtFlexibleTimeBucket

Annotations (10)

NameValueLevelField
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #REQUIRED view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.compositionRoot true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Supply Protection view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY SupplyProtectionUUID uuid Waste Partner UUID
Material material Material Number
Plant plant Valuation Area
SupplyProtectionName name Zone name
SupProtLifecycleStatus status Workflow Status
SupProtPlanningPeriodType planningperiodtype Planning Period Type
SupProtPlanningPeriodStartDate planningperiodstart Planning Period Start Date
SupProtPlanningPeriodEndDate planningperiodend Planning Period End Date
SupProtCoreCharc01CtlgPathUUID corecharc01catalogpathuuid Characteristic Catalog Path UUID
CoreCharc01CtlgPathIntID corecharc01catalogpathid Characteristic Catalog Path Internal ID
SupProtCoreCharc01ValueID corecharc01value Characteristic Value
SupProtCoreCharc02CtlgPathUUID corecharc02catalogpathuuid Characteristic Catalog Path UUID
CoreCharc02CtlgPathIntID corecharc02catalogpathid Characteristic Catalog Path Internal ID
SupProtCoreCharc02ValueID corecharc02value Characteristic Value
SupProtIsPlanningContextSlsOrd planningcontextso Planning Context: Sales Document
SupProtIsPlanningContextSTO planningcontextsto Planning Context: Stock Transport Order
SupProtCharcCatalogType catalogtype Characteristic Catalog Type
CreationDateTime creationdatetime Created On / At
CreatedByUser createdbyuser Created By User
LastChangeDateTime lastchangedatetime Changed On / At
LastChangedByUser lastchangedbyuser Last Changed By User
CharcValAuthznGroup charcvalauthzngroup Supply Protection Characteristic Value Authorization Group
DraftLastChangedDateTime last_changed_at UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
SupplyProtectionIsBlocked blocked Supply protection object is blocked
SupProtAutomActivationIsActive autoactivation Automatic Activation of Supply Protection Object
SupProtAutomActivationDate autoactivationdate Date of Automatic Activation
SupProtActivationDate activationdate Activation Date
UnitOfMeasure
SupProtProtectedQuantity Protected Quantity
SupProtConsumedQuantity Consumed Quantity
SupProtRemainingProtectedQty Remaining Protected Quantity
StorageLocation storagelocation Storage Location
PoolSegment poolsegment Pool Segment
Batch batch Batch Number
char64endasSupProtPlngPeriodTmznIANACode
_SupProtCharacteristic _SupProtCharacteristic
_SupplyProtectionGroup _SupplyProtectionGroup
_SupProtFlexibleTimeBucket _SupProtFlexibleTimeBucket

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_SupplyProtection.
-- 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_SupplyProtection AS
SELECT
  uuid AS SupplyProtectionUUID,
  Material,
  Plant,
  name AS SupplyProtectionName,
  status AS SupProtLifecycleStatus,
  planningperiodtype AS SupProtPlanningPeriodType,
  planningperiodstart AS SupProtPlanningPeriodStartDate,
  planningperiodend AS SupProtPlanningPeriodEndDate,
  corecharc01catalogpathuuid AS SupProtCoreCharc01CtlgPathUUID,
  corecharc01catalogpathid AS CoreCharc01CtlgPathIntID,
  corecharc01value AS SupProtCoreCharc01ValueID,
  corecharc02catalogpathuuid AS SupProtCoreCharc02CtlgPathUUID,
  corecharc02catalogpathid AS CoreCharc02CtlgPathIntID,
  corecharc02value AS SupProtCoreCharc02ValueID,
  planningcontextso AS SupProtIsPlanningContextSlsOrd,
  planningcontextsto AS SupProtIsPlanningContextSTO,
  catalogtype AS SupProtCharcCatalogType,
  CreationDateTime,
  CreatedByUser,
  LastChangeDateTime,
  LastChangedByUser,
  CharcValAuthznGroup,
  last_changed_at AS DraftLastChangedDateTime,
  blocked AS SupplyProtectionIsBlocked,
  autoactivation AS SupProtAutomActivationIsActive,
  autoactivationdate AS SupProtAutomActivationDate,
  activationdate AS SupProtActivationDate,
  cast('' as abap.unit(3) ) AS UnitOfMeasure,
  cast(0 as sup_protected_quantity ) AS SupProtProtectedQuantity,
  cast(0 as sup_consumed_quantity ) AS SupProtConsumedQuantity,
  cast(0 as sup_remaining_quantity ) AS SupProtRemainingProtectedQty,
  StorageLocation,
  PoolSegment,
  Batch,
  case planningperiodtimezone when '' then 'Etc/UTC' else cast( supprotplanningperiodiana as abap.char(64) ) end as SupProtPlngPeriodTmznIANACode AS char64endasSupProtPlngPeriodTmznIANACode
FROM sup_object
LEFT OUTER JOIN I_SupProtCharacteristic AS _SupProtCharacteristic ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_SupplyProtectionGroup AS _SupplyProtectionGroup ON /* condition not available in parsed metadata */  -- association [0..*]
LEFT OUTER JOIN I_SupProtFlexibleTimeBucket AS _SupProtFlexibleTimeBucket ON /* condition not available in parsed metadata */  -- association [0..*]
;