I_CacheShortageStatistic

DDL: I_CACHESHORTAGESTATISTIC SQL: ICACHESHRTST Type: view BASIC Package: ODATA_PP_MRP

MRP Cache Shortage Statistic

I_CacheShortageStatistic is a Basic CDS View that provides data about "MRP Cache Shortage Statistic" in SAP S/4HANA. It reads from 1 data source (pph_cache_shrtst) and exposes 33 fields with key fields MRPPlant, Material, MRPArea, MRPPlanningSegmentType, MRPPlanningSegment. It has 4 associations to related views. Part of development package ODATA_PP_MRP.

Data Sources (1)

SourceAliasJoin Type
pph_cache_shrtst pph_cache_shrtst from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_MaterialShortageDefinition _MaterialShortageDefinition $projection.MaterialShortageProfile = _MaterialShortageDefinition.MaterialShortageProfile and $projection.MaterialShortageProfileCount = _MaterialShortageDefinition.MaterialShortageProfileCount
[1..1] I_Plant _Plant $projection.MRPPlant = _Plant.Plant
[1..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_MRPArea _MRPArea $projection.MRPArea = _MRPArea.MRPArea

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName ICACHESHRTST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label MRP Cache Shortage Statistic view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY MRPPlant pph_cache_shrtst mrpplant Plant
KEY Material pph_cache_shrtst material Vehicle Model
KEY MRPArea pph_cache_shrtst mrparea MRP Area
KEY MRPPlanningSegmentType pph_cache_shrtst mrpplanningsegmenttype MRP segment
KEY MRPPlanningSegment pph_cache_shrtst mrpplanningsegmentnumber Plng Segmnt No.
KEY MaterialShortageProfile pph_cache_shrtst materialshortageprofile Shortage Prf.
KEY MaterialShortageProfileCount pph_cache_shrtst materialshortageprof_cnt Counter
MaterialShortageStartDate pph_cache_shrtst materialshortagestartdate Time Stamp
MaterialShortageEndDate pph_cache_shrtst materialshortageenddate Time Stamp
MaterialShortageQuantity pph_cache_shrtst materialshortagequantity Shortage Qty
MaterialShortageDuration pph_cache_shrtst materialshortageduration Shortage Duration (Calendar Days)
MaterialShortageDurnInWorkdays pph_cache_shrtst materialshortagedurninworkdays Shortage Duration (Working Days)
DaysOfSupplyCoveragePercent pph_cache_shrtst daysofsupplycoveragepercent Dec 5,2 data element
MinAvailableQtyAtShortage pph_cache_shrtst minavailableqtyatshortage Shortage Qty
MinAvailQtyOverCompleteHrzn pph_cache_shrtst minavailableqtyovercomplhrzn DEC 20 3
DaysOfSupplyDuration pph_cache_shrtst daysofsupplyduration Days' Supply (Working Days)
MatlMaxCoverageDurnInWorkdays pph_cache_shrtst matmaxcoveragedurninworkdays Days' Supply (Working Days)
NumberOfShortagesPerSegment pph_cache_shrtst numberofshortagespersegment INT4
MaterialFirstShortageDate pph_cache_shrtst materialfirstuncoveragedate Shortage Start
MaterialFirstShortageDateQty pph_cache_shrtst materialfirstuncoveragedateqty DEC 20 3
IntraDaySupplyDuration pph_cache_shrtst daysofsupplydurdaysdigit2 Intraday Supply (Working Days)
ReceiptDaysSupplyDuration pph_cache_shrtst receiptdayssupply Rec.Days'Supply
ReceiptDaysSupplyCriticality pph_cache_shrtst receiptdayssupplycriticality Critical. Indicator
DaysOfSupplyCriticality pph_cache_shrtst daysofsupplycriticality Critical. Indicator
StockDaysSupplyDuration pph_cache_shrtst stockdayssupply Stock Days' Supply (Working Days)
StockDaysSupplyCriticality pph_cache_shrtst stockdayssupplycriticality Critical. Indicator
StockIntraDaySupplyDuration pph_cache_shrtst stockintradayssupply Stock Intraday Supply (Working Days)
EvaluationHorizonInDays _MaterialShortageDefinition EvaluationHorizonInDays
MaterialShortageDefinitionName _MaterialShortageDefinition MaterialShortageDefinitionName
_Plant _Plant
_Material _Material
_MRPArea _MRPArea
_MaterialShortageDefinition _MaterialShortageDefinition

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_CacheShortageStatistic.
-- 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.
-- SQL view name: ICACHESHRTST

CREATE VIEW I_CacheShortageStatistic AS
SELECT
  pph_cache_shrtst.mrpplant AS MRPPlant,
  pph_cache_shrtst.material AS Material,
  pph_cache_shrtst.mrparea AS MRPArea,
  pph_cache_shrtst.mrpplanningsegmenttype AS MRPPlanningSegmentType,
  pph_cache_shrtst.mrpplanningsegmentnumber AS MRPPlanningSegment,
  pph_cache_shrtst.materialshortageprofile AS MaterialShortageProfile,
  pph_cache_shrtst.materialshortageprof_cnt AS MaterialShortageProfileCount,
  pph_cache_shrtst.materialshortagestartdate AS MaterialShortageStartDate,
  pph_cache_shrtst.materialshortageenddate AS MaterialShortageEndDate,
  pph_cache_shrtst.materialshortagequantity AS MaterialShortageQuantity,
  pph_cache_shrtst.materialshortageduration AS MaterialShortageDuration,
  pph_cache_shrtst.materialshortagedurninworkdays AS MaterialShortageDurnInWorkdays,
  pph_cache_shrtst.daysofsupplycoveragepercent AS DaysOfSupplyCoveragePercent,
  pph_cache_shrtst.minavailableqtyatshortage AS MinAvailableQtyAtShortage,
  pph_cache_shrtst.minavailableqtyovercomplhrzn AS MinAvailQtyOverCompleteHrzn,
  pph_cache_shrtst.daysofsupplyduration AS DaysOfSupplyDuration,
  pph_cache_shrtst.matmaxcoveragedurninworkdays AS MatlMaxCoverageDurnInWorkdays,
  pph_cache_shrtst.numberofshortagespersegment AS NumberOfShortagesPerSegment,
  pph_cache_shrtst.materialfirstuncoveragedate AS MaterialFirstShortageDate,
  pph_cache_shrtst.materialfirstuncoveragedateqty AS MaterialFirstShortageDateQty,
  pph_cache_shrtst.daysofsupplydurdaysdigit2 AS IntraDaySupplyDuration,
  pph_cache_shrtst.receiptdayssupply AS ReceiptDaysSupplyDuration,
  pph_cache_shrtst.receiptdayssupplycriticality AS ReceiptDaysSupplyCriticality,
  pph_cache_shrtst.daysofsupplycriticality AS DaysOfSupplyCriticality,
  pph_cache_shrtst.stockdayssupply AS StockDaysSupplyDuration,
  pph_cache_shrtst.stockdayssupplycriticality AS StockDaysSupplyCriticality,
  pph_cache_shrtst.stockintradayssupply AS StockIntraDaySupplyDuration,
  _MaterialShortageDefinition.EvaluationHorizonInDays AS EvaluationHorizonInDays,
  _MaterialShortageDefinition.MaterialShortageDefinitionName AS MaterialShortageDefinitionName
FROM pph_cache_shrtst
LEFT OUTER JOIN I_MaterialShortageDefinition AS _MaterialShortageDefinition ON MaterialShortageProfile = _MaterialShortageDefinition.MaterialShortageProfile AND MaterialShortageProfileCount = _MaterialShortageDefinition.MaterialShortageProfileCount  -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON MRPPlant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material  -- association [1..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea  -- association [0..1]
;