I_StockLevelProposalZones
Demand Driven Stock Level Proposal Zones
I_StockLevelProposalZones is a Basic CDS View that provides data about "Demand Driven Stock Level Proposal Zones" in SAP S/4HANA. It reads from 1 data source (pph_dd_stpr_hdr) and exposes 70 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pph_dd_stpr_hdr | _prpsl_hdr | from |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BufferedMaterialPlant | _BufMatPlant | $projection.Material = _BufMatPlant.Material and $projection.Plant = _BufMatPlant.Plant |
| [1..1] | I_MaterialMRPArea | _MatMRPArea | $projection.Material = _MatMRPArea.Material and $projection.Plant = _MatMRPArea.Plant and $projection.MRPArea = _MatMRPArea.MRPArea |
| [1..1] | I_StockLevelPrpslDets | _StockProposalDets | $projection.Material = _StockProposalDets.Material and $projection.Plant = _StockProposalDets.Plant and $projection.MRPArea = _StockProposalDets.MRPArea and $projection.ProposalStartDate = _StockProposalDets.ProposalStartDate and $projection.ProposalVersion = _StockProposalDets.ProposalVersion and $projection.ProposalStartDate = _StockProposalDets.AvgDailyUsageCalcdForDate |
| [0..1] | I_ProposalStatusText | _StatusText | $projection.StockLevelProposalStatus = _StatusText.StockLevelProposalStatus and _StatusText.Language = $session.system_language |
| [0..1] | I_MinOrdQtyConsideredText | _MinOrdQtyConsText | $projection.IsMinOrderQtyConsidered = _MinOrdQtyConsText.IsMinOrderQtyConsidered and _MinOrdQtyConsText.Language = $session.system_language |
| [0..1] | I_ConsumptionText | _ConsumptionText | $projection.ConsumptionCode = _ConsumptionText.ConsumptionCode and _ConsumptionText.Language = $session.system_language |
| [0..1] | I_VariabilityText | _VarText | $projection.VariabilityCode = _VarText.VariabilityCode and _VarText.Language = $session.system_language |
| [0..1] | I_ReplenishmentLeadTimeText | _ReplnmtText | $projection.ReplenishmentLeadTimeCode = _ReplnmtText.ReplenishmentLeadTimeCode and _ReplnmtText.Language = $session.system_language |
| [0..1] | I_ProcurementTypeText | _ProcmtText | $projection.ProcurementType = _ProcmtText.ProcurementType and _ProcmtText.Language = $session.system_language |
| [0..1] | I_BOMUsageText | _BOMUsgText | $projection.BOMUsageCode = _BOMUsgText.BOMUsageCode and _BOMUsgText.Language = $session.system_language |
| [0..1] | I_SOSTypeText | _SOSText | $projection.SOSType = _SOSText.SOSType and _SOSText.Language = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDDSTKLVLPRPSLZN | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Demand Driven Stock Level Proposal Zones | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (70)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | pph_dd_stpr_hdr | matnr | Vehicle Model |
| KEY | Plant | pph_dd_stpr_hdr | werks | Receiving Plant |
| KEY | MRPArea | berid | Single-Character Flag | |
| KEY | ProposalStartDate | prop_date_from | Proposal Valid From | |
| KEY | ProposalVersion | prop_ver | Proposal Version | |
| ProposalEndDate | prop_date_to | Proposal Valid To | ||
| MaterialGroup | ||||
| PurchasingGroup | _BufMatPlant | PurchasingGroup | Purchasing Group | |
| StockLevelProposalID | proposal_id | Proposal ID | ||
| ConsumptionCode | abc_ind | Value Indicator | ||
| ConsumptionValue | abc_value | Value for ABC Analysis | ||
| Currency | abc_curr | Currency | ||
| VariabilityCode | xyz_ind | Variability Indicator | ||
| VariabilityQuantity | xyz_qty | Value from XYZ Analysis | ||
| VariabilityUnit | xyz_unit | Base Unit | ||
| ReplenishmentLeadTimeCode | efg_ind | DLT Indicator | ||
| ProcurementType | efg_proctype | Procurement Type | ||
| ReplenishmentLeadTimeValue | efg_value | Value from EFG Analysis | ||
| BOMUsageCode | pqr_ind | BOM Usage Indicator | ||
| BOMUsageValue | pqr_value | Value from PQR Analysis | ||
| IndividualLeadTime | lead_time | Individual Lead Time | ||
| DecoupledLeadTime | decoupled_lead_time | Decoupled Lead Time | ||
| SourceOfSupply | source_of_supply | Source of Supply | ||
| SOSType | source_type | SRVC Source Type | ||
| LeadTimeFactor | factor_lead_time | DLT Factor | ||
| VariabilityFactor | factor_variability | Variabilty Factor | ||
| StockLevelProposalStatus | proposal_status | Proposal Status | ||
| ProposalStatusChangeDate | prop_stat_chng_time | Time Stamp | ||
| IsMinOrderQtyConsidered | moq_considerd | Is MOQ Considered | ||
| MinimumOrderQuantity | moq_qty | Min.order qty | ||
| MinOrderQtyUnit | moq_unit | Base Unit | ||
| PrevRedZoneAdjustmentFctr | adj_factor_red | Adj. Factor Red Zone | ||
| PrevYellowZoneAdjustmentFctr | adj_factor_yellow | Adj Fctr Yellow Zone | ||
| PrevGreenZoneAdjustmentFctr | adj_factor_green | Adj. Fctr Green Zone | ||
| CurRedZoneAdjustmentFctr | adj_factor_red_chng | Adj. Factor Red Zone | ||
| CurYellowZoneAdjustmentFctr | adj_factor_yellow_chng | Adj. Factor Yel Zone | ||
| CurGreenZoneAdjustmentFctr | adj_factor_green_chng | Adj. Fctr. Gree Zone | ||
| OrderCycle | order_cycle | Order Cycle | ||
| BillOfMaterialUUID | bom_id | Internal key for BOM | ||
| BOMExplosionDate | bom_expl_date | Explosion Date | ||
| CreatedByUser | created_by | Version Created By | ||
| LastChangedByUser | changed_by | User Name | ||
| CreationDateTime | created_time | Time Stamp | ||
| LastChangeDateTime | changed_time | Time Stamp | ||
| factor_variabilityasProposedRedZone | ||||
| ProposedYellowZone | ||||
| ProposedGreenZone | ||||
| ProposedGreenZoneMinOrdQty | pph_dd_stpr_hdr | moq_qty | Min.order qty | |
| ProposedGreenZoneOrdCycle | ||||
| factor_variabilityasOriglProposedRedZone | ||||
| OriglProposedYellowZone | ||||
| OriglProposedGreenZone | ||||
| OriglGreenZoneMinOrdQty | pph_dd_stpr_hdr | moq_qty | Min.order qty | |
| OriglGreenZoneOrdCycle | ||||
| AverageDailyUsage | _StockProposalDets | AverageDailyUsage | ||
| AvgDailyUsageUnit | _StockProposalDets | AvgDailyUsageUnit | ||
| MaterialBaseUnit | ||||
| MRPGroupendasMRPGroup | ||||
| MRPControllerendasMRPController | ||||
| UnitOfMeasureNumberOfDecimals | ||||
| _StatusText | _StatusText | |||
| _MinOrdQtyConsText | _MinOrdQtyConsText | |||
| _ConsumptionText | _ConsumptionText | |||
| _VarText | _VarText | |||
| _ReplnmtText | _ReplnmtText | |||
| _ProcmtText | _ProcmtText | |||
| _BOMUsgText | _BOMUsgText | |||
| _SOSText | _SOSText | |||
| _BufMatPlant | _BufMatPlant | |||
| _MatMRPArea | _MatMRPArea |
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_StockLevelProposalZones.
-- 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: IDDSTKLVLPRPSLZN
CREATE VIEW I_StockLevelProposalZones AS
SELECT
_prpsl_hdr.matnr AS Material,
_prpsl_hdr.werks AS Plant,
berid AS MRPArea,
prop_date_from AS ProposalStartDate,
prop_ver AS ProposalVersion,
prop_date_to AS ProposalEndDate,
_BufMatPlant._Material.ProductGroup AS MaterialGroup,
_BufMatPlant.PurchasingGroup AS PurchasingGroup,
proposal_id AS StockLevelProposalID,
abc_ind AS ConsumptionCode,
abc_value AS ConsumptionValue,
abc_curr AS Currency,
xyz_ind AS VariabilityCode,
xyz_qty AS VariabilityQuantity,
xyz_unit AS VariabilityUnit,
efg_ind AS ReplenishmentLeadTimeCode,
efg_proctype AS ProcurementType,
efg_value AS ReplenishmentLeadTimeValue,
pqr_ind AS BOMUsageCode,
pqr_value AS BOMUsageValue,
lead_time AS IndividualLeadTime,
decoupled_lead_time AS DecoupledLeadTime,
source_of_supply AS SourceOfSupply,
source_type AS SOSType,
factor_lead_time AS LeadTimeFactor,
factor_variability AS VariabilityFactor,
proposal_status AS StockLevelProposalStatus,
prop_stat_chng_time AS ProposalStatusChangeDate,
moq_considerd AS IsMinOrderQtyConsidered,
moq_qty AS MinimumOrderQuantity,
moq_unit AS MinOrderQtyUnit,
adj_factor_red AS PrevRedZoneAdjustmentFctr,
adj_factor_yellow AS PrevYellowZoneAdjustmentFctr,
adj_factor_green AS PrevGreenZoneAdjustmentFctr,
adj_factor_red_chng AS CurRedZoneAdjustmentFctr,
adj_factor_yellow_chng AS CurYellowZoneAdjustmentFctr,
adj_factor_green_chng AS CurGreenZoneAdjustmentFctr,
order_cycle AS OrderCycle,
bom_id AS BillOfMaterialUUID,
bom_expl_date AS BOMExplosionDate,
created_by AS CreatedByUser,
changed_by AS LastChangedByUser,
created_time AS CreationDateTime,
changed_time AS LastChangeDateTime,
(_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage * _prpsl_hdr.factor_lead_time) + (_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage * _prpsl_hdr.factor_lead_time) * _prpsl_hdr.factor_variability as ProposedRedZone AS factor_variabilityasProposedRedZone,
_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage AS ProposedYellowZone,
_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage * _prpsl_hdr.factor_lead_time AS ProposedGreenZone,
_prpsl_hdr.moq_qty AS ProposedGreenZoneMinOrdQty,
_StockProposalDets.AverageDailyUsage * _prpsl_hdr.order_cycle AS ProposedGreenZoneOrdCycle,
(_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage * _prpsl_hdr.factor_lead_time) + (_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage * _prpsl_hdr.factor_lead_time) * _prpsl_hdr.factor_variability as OriglProposedRedZone AS factor_variabilityasOriglProposedRedZone,
_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage AS OriglProposedYellowZone,
_prpsl_hdr.decoupled_lead_time * _StockProposalDets.AverageDailyUsage * _prpsl_hdr.factor_lead_time AS OriglProposedGreenZone,
_prpsl_hdr.moq_qty AS OriglGreenZoneMinOrdQty,
_StockProposalDets.AverageDailyUsage * _prpsl_hdr.order_cycle AS OriglGreenZoneOrdCycle,
_StockProposalDets.AverageDailyUsage AS AverageDailyUsage,
_StockProposalDets.AvgDailyUsageUnit AS AvgDailyUsageUnit,
_BufMatPlant._Material.BaseUnit AS MaterialBaseUnit,
case _BufMatPlant.IsMRPAreaExisting when 'X' then case when _BufMatPlant.Plant <> _MatMRPArea.MRPArea then _MatMRPArea.MRPGroup else _BufMatPlant.MRPGroup end else _BufMatPlant.MRPGroup end as MRPGroup AS MRPGroupendasMRPGroup,
case _BufMatPlant.IsMRPAreaExisting when 'X' then case when _BufMatPlant.Plant <> _MatMRPArea.MRPArea then _MatMRPArea.MRPController else _BufMatPlant.MRPController end else _BufMatPlant.MRPController end as MRPController AS MRPControllerendasMRPController,
_BufMatPlant._Material._BaseUnitOfMeasure.UnitOfMeasureNumberOfDecimals AS UnitOfMeasureNumberOfDecimals
FROM pph_dd_stpr_hdr AS _prpsl_hdr
LEFT OUTER JOIN I_BufferedMaterialPlant AS _BufMatPlant ON Material = _BufMatPlant.Material AND Plant = _BufMatPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_MaterialMRPArea AS _MatMRPArea ON Material = _MatMRPArea.Material AND Plant = _MatMRPArea.Plant AND MRPArea = _MatMRPArea.MRPArea -- association [1..1]
LEFT OUTER JOIN I_StockLevelPrpslDets AS _StockProposalDets ON Material = _StockProposalDets.Material AND Plant = _StockProposalDets.Plant AND MRPArea = _StockProposalDets.MRPArea AND ProposalStartDate = _StockProposalDets.ProposalStartDate AND ProposalVersion = _StockProposalDets.ProposalVersion AND ProposalStartDate = _StockProposalDets.AvgDailyUsageCalcdForDate -- association [1..1]
LEFT OUTER JOIN I_ProposalStatusText AS _StatusText ON StockLevelProposalStatus = _StatusText.StockLevelProposalStatus AND _StatusText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_MinOrdQtyConsideredText AS _MinOrdQtyConsText ON IsMinOrderQtyConsidered = _MinOrdQtyConsText.IsMinOrderQtyConsidered AND _MinOrdQtyConsText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ConsumptionText AS _ConsumptionText ON ConsumptionCode = _ConsumptionText.ConsumptionCode AND _ConsumptionText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_VariabilityText AS _VarText ON VariabilityCode = _VarText.VariabilityCode AND _VarText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ReplenishmentLeadTimeText AS _ReplnmtText ON ReplenishmentLeadTimeCode = _ReplnmtText.ReplenishmentLeadTimeCode AND _ReplnmtText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_ProcurementTypeText AS _ProcmtText ON ProcurementType = _ProcmtText.ProcurementType AND _ProcmtText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_BOMUsageText AS _BOMUsgText ON BOMUsageCode = _BOMUsgText.BOMUsageCode AND _BOMUsgText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SOSTypeText AS _SOSText ON SOSType = _SOSText.SOSType AND _SOSText.Language = $session.system_language -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA