I_SupDmndAllDocSupProtC

DDL: I_SUPDMNDALLDOCSUPPROTC Type: view COMPOSITE

Supply Protection relevant for Supply Assignment

I_SupDmndAllDocSupProtC is a Composite CDS View (Cube) that provides data about "Supply Protection relevant for Supply Assignment" in SAP S/4HANA. It reads from 2 data sources (I_ARunSupplyProtection, I_SupDmndOvwPlant) and exposes 53 fields with key field SupProtTimeBucketUUID. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_ARunSupplyProtection Demand from
I_SupDmndOvwPlant Plant inner

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure

Annotations (15)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
AbapCatalog.sqlViewName ISUPDMNDADSPTC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Supply Protection relevant for Supply Assignment view

Fields (53)

KeyFieldSource TableSource FieldDescription
KEY SupProtTimeBucketUUID I_ARunSupplyProtection SupProtTimeBucketUUID Supply Protection Time Bucket UUID
RequirementType I_ARunSupplyProtection RequirementType Requirement Type
RequestedDate I_ARunSupplyProtection StartDate
ProductAvailabilityDate I_ARunSupplyProtection ProductAvailabilityDate
RequestedDeliveryDate I_ARunSupplyProtection RequestedDeliveryDate
StartDate I_ARunSupplyProtection StartDate Time Bucket Start Date
EndDate I_ARunSupplyProtection EndDate Time Bucket End Date
SupProtProtectedQuantity SupProtProtectedQuantity Protected Quantity
SupProtConsumedQuantity SupProtConsumedQuantity Consumed Protected Quantity
ARunSupProtUnconsumedQty ARunSupProtUnconsumedQty Quantity Open for Consumption
ARunTmpAssignedQuantityInBsUnt Assgmt ARunTmpAssignedQuantityInBsUnt Temporary Assigned Quantity
BaseUnit I_ARunSupplyProtection BaseUnit Base Unit of Measure
RequirementSegment I_ARunSupplyProtection RequirementSegment
CalendarYear CalDate CalendarYear Year
CalendarMonth CalDate CalendarMonth Month
CalendarMonthName CalMonth CalendarMonthName Month
CalendarWeek Week
CalendarDay CalDate CalendarDay Day
Material I_ARunSupplyProtection Material Product
MaterialGroup I_ARunSupplyProtection MaterialGroup Product Group
MaterialType I_ARunSupplyProtection MaterialType Product Type
CrossPlantConfigurableProduct I_ARunSupplyProtection CrossPlantConfigurableProduct Generic Article
Plant I_ARunSupplyProtection Plant
SalesOrganization I_SupDmndOvwPlant SalesOrganization
DistributionChannel I_SupDmndOvwPlant DistributionChannel
Division I_SupDmndOvwPlant Division
SalesDistrict I_SupDmndOvwPlant SalesDistrict
Customer I_SupDmndOvwPlant PlantCustomer
CompanyCode I_SupDmndOvwPlant CompanyCode
StorageLocation
SupAssgmtAggrgQtyUnit
SupplyProtectionName SupplyProtectionName Supply Protection Name
SupProtCharc01CtlgPathUUID SupProtCharc01CtlgPathUUID Characteristic 1
SupProtCharc01ValueID SupProtCharc01ValueID Characteristic Value 1
SupProtCharc02CtlgPathUUID SupProtCharc02CtlgPathUUID Characteristic 2
SupProtCharc02ValueID SupProtCharc02ValueID Characteristic Value 2
SupProtCharc03CtlgPathUUID SupProtCharc03CtlgPathUUID Characteristic 3
SupProtCharc03ValueID SupProtCharc03ValueID Characteristic Value 3
SupProtCharc04CtlgPathUUID SupProtCharc04CtlgPathUUID Characteristic 4
SupProtCharc04ValueID SupProtCharc04ValueID Characteristic Value 4
SupProtCharc05CtlgPathUUID SupProtCharc05CtlgPathUUID Characteristic 5
SupProtCharc05ValueID SupProtCharc05ValueID Characteristic Value 5
SupProtCharc06CtlgPathUUID SupProtCharc06CtlgPathUUID Characteristic 6
SupProtCharc06ValueID SupProtCharc06ValueID Characteristic Value 6
SupProtCharc07CtlgPathUUID SupProtCharc07CtlgPathUUID Characteristic 7
SupProtCharc07ValueID SupProtCharc07ValueID Characteristic Value 7
SupProtCharc08CtlgPathUUID SupProtCharc08CtlgPathUUID Characteristic 8
SupProtCharc08ValueID SupProtCharc08ValueID Characteristic Value 8
SupProtCharc09CtlgPathUUID SupProtCharc09CtlgPathUUID Characteristic 9
SupProtCharc09ValueID SupProtCharc09ValueID Characteristic Value 9
SupProtCharc10CtlgPathUUID SupProtCharc10CtlgPathUUID Characteristic 10
SupProtCharc10ValueID SupProtCharc10ValueID Characteristic Value 10
_BaseUnit _BaseUnit
@ClientHandling.algorithm: #SESSION_VARIABLE
@Analytics: {
  dataCategory:#CUBE,
  internalName:#LOCAL
}
@VDM: {
  viewType: #COMPOSITE
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #REQUIRED
}
@AbapCatalog: {
  sqlViewName: 'ISUPDMNDADSPTC',
  compiler.compareFilter: true,
  preserveKey:true
 }
@ObjectModel: {
   usageType: {
     dataClass:      #MIXED,
     serviceQuality: #D,
     sizeCategory:   #XXL
   }
}
@Metadata:{
  allowExtensions:              true,
  ignorePropagatedAnnotations:  true
}
@EndUserText.label: 'Supply Protection relevant for Supply Assignment'
define view I_SupDmndAllDocSupProtC
  as select from           I_ARunSupplyProtection as Demand
    inner join             I_SupDmndOvwPlant      as Plant            on Demand.Plant = Plant.Plant
    left outer to one join P_ARunAssgmtDmnd       as Assgmt           on  Demand.StartDate               = Assgmt.RequestedDate
                                                                      and Demand.SupProtTimeBucketUUID   = Assgmt.SupProtTimeBucketUUID
                                                                      and Demand.ProductAvailabilityDate = Assgmt.ProductAvailabilityDate
                                                                      and Demand.RequirementType         = Assgmt.RequirementType
                                                                      and Demand.Material                = Assgmt.Material
                                                                      and Demand.Plant                   = Assgmt.Plant
    left outer to one join I_ARunCalendarDate     as CalDate          on Demand.StartDate = CalDate.CalendarDate
    left outer to one join I_CalendarMonthName    as CalMonth         on CalDate.CalendarMonth = CalMonth.CalendarMonth
    left outer to one join I_ARunTimeUnitText     as ARunTimeUnitText on  ARunTimeUnitText.ARunDisplayTimeUnit = '02'
                                                                      and ARunTimeUnitText.Language            = $session.system_language
  association [0..1] to I_UnitOfMeasure as _BaseUnit on $projection.BaseUnit = _BaseUnit.UnitOfMeasure
{
      @EndUserText.label: 'Supply Protection Time Bucket UUID'
  key Demand.SupProtTimeBucketUUID,
      @EndUserText.label: 'Requirement Type'
      Demand.RequirementType,
      Demand.StartDate                                                     as RequestedDate,
      Demand.ProductAvailabilityDate                                       as ProductAvailabilityDate,
      Demand.RequestedDeliveryDate                                         as RequestedDeliveryDate,
      @EndUserText.label: 'Time Bucket Start Date'
      Demand.StartDate,
      @EndUserText.label: 'Time Bucket End Date'
      Demand.EndDate,
      @EndUserText.label: 'Protected Quantity'
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
      SupProtProtectedQuantity,
      @EndUserText.label: 'Consumed Protected Quantity'
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
      SupProtConsumedQuantity,
      @EndUserText.label: 'Quantity Open for Consumption'
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
      ARunSupProtUnconsumedQty,
      @EndUserText.label: 'Temporary Assigned Quantity'
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
      Assgmt.ARunTmpAssignedQuantityInBsUnt,
      @EndUserText.label: 'Open Demand Quantity'
      @DefaultAggregation: #SUM
      @Semantics.quantity.unitOfMeasure: 'SupAssgmtAggrgQtyUnit'
      ( Demand.ARunSupProtUnconsumedQty
          - coalesce( Assgmt.AssignedQuantityInBaseUnit , 0 )
      )                                                                    as OpenDemandQuantity,
      @EndUserText.label: 'Base Unit of Measure'
      @ObjectModel.foreignKey.association: '_BaseUnit'
      Demand.BaseUnit,
      Demand.RequirementSegment,
      @EndUserText.label: 'Year'
      @Semantics.calendar.year: true
      CalDate.CalendarYear,
      @EndUserText.label: 'Month'
      @Semantics.calendar.month: true
      @ObjectModel.text.element: 'CalendarMonthName'
      CalDate.CalendarMonth,
      @Semantics.text: true
      @EndUserText.label: 'Month'
      CalMonth.CalendarMonthName,
      @EndUserText.label: 'Week'
      @Semantics.calendar.week: true
      concat_with_space( ARunDisplayTimeUnitText, CalDate.CalendarWeek, 1) as CalendarWeek,
      @EndUserText.label: 'Day'
      @Semantics.calendar.dayOfMonth: true
      CalDate.CalendarDay,
      @EndUserText.label: 'Product'
      Demand.Material,
      @EndUserText.label: 'Product Group'
      Demand.MaterialGroup,
      @EndUserText.label: 'Product Type'
      Demand.MaterialType,
      @EndUserText.label: 'Generic Article'
      Demand.CrossPlantConfigurableProduct,
      Demand.Plant,
      Plant.SalesOrganization,
      Plant.DistributionChannel,
      Plant.Division,
      Plant.SalesDistrict,
      Plant.PlantCustomer                                                  as Customer,
      Plant.CompanyCode                                                    as CompanyCode,
      cast( '' as lgort_d )                                                as StorageLocation,
      @Semantics.unitOfMeasure: true
      cast( ' ' as meins )                                                 as SupAssgmtAggrgQtyUnit,
      @EndUserText.label: 'Supply Protection Name'
      SupplyProtectionName,
      @EndUserText.label: 'Characteristic 1'
      SupProtCharc01CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 1'
      SupProtCharc01ValueID,
      @EndUserText.label: 'Characteristic 2'
      SupProtCharc02CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 2'
      SupProtCharc02ValueID,
      @EndUserText.label: 'Characteristic 3'
      SupProtCharc03CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 3'
      SupProtCharc03ValueID,
      @EndUserText.label: 'Characteristic 4'
      SupProtCharc04CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 4'
      SupProtCharc04ValueID,
      @EndUserText.label: 'Characteristic 5'
      SupProtCharc05CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 5'
      SupProtCharc05ValueID,
      @EndUserText.label: 'Characteristic 6'
      SupProtCharc06CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 6'
      SupProtCharc06ValueID,
      @EndUserText.label: 'Characteristic 7'
      SupProtCharc07CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 7'
      SupProtCharc07ValueID,
      @EndUserText.label: 'Characteristic 8'
      SupProtCharc08CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 8'
      SupProtCharc08ValueID,
      @EndUserText.label: 'Characteristic 9'
      SupProtCharc09CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 9'
      SupProtCharc09ValueID,
      @EndUserText.label: 'Characteristic 10'
      SupProtCharc10CtlgPathUUID,
      @EndUserText.label: 'Characteristic Value 10'
      SupProtCharc10ValueID,
      _BaseUnit
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_ARUNCALENDARDATE",
"I_ARUNSUPPLYPROTECTION",
"I_ARUNTIMEUNITTEXT",
"I_CALENDARMONTHNAME",
"I_SUPDMNDOVWPLANT",
"P_ARUNASSGMTDMND"
],
"ASSOCIATED":
[
"I_UNITOFMEASURE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/