I_StockLevelProposal
Demand Driven Proposed Stock Levels
I_StockLevelProposal is a Composite CDS View that provides data about "Demand Driven Proposed Stock Levels" in SAP S/4HANA. It reads from 1 data source (I_StockLevelProposalZones) and exposes 65 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. Part of development package PPH_DD_VDM_STLM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StockLevelProposalZones | _prpsl_hdr | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Demand Driven Proposed Stock Levels | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | MRPArea | MRPArea | MRP Area | |
| KEY | ProposalStartDate | ProposalStartDate | ||
| KEY | ProposalVersion | ProposalVersion | ||
| ProposalEndDate | ProposalEndDate | |||
| StockLevelProposalID | StockLevelProposalID | |||
| MaterialGroup | MaterialGroup | Product Group | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| ConsumptionCode | ConsumptionCode | |||
| ConsumptionValue | ConsumptionValue | |||
| Currency | Currency | Valuation Crcy | ||
| VariabilityCode | VariabilityCode | |||
| VariabilityQuantity | VariabilityQuantity | |||
| VariabilityUnit | VariabilityUnit | |||
| ReplenishmentLeadTimeCode | ReplenishmentLeadTimeCode | |||
| ProcurementType | ProcurementType | Procurement | ||
| ReplenishmentLeadTimeValue | ReplenishmentLeadTimeValue | |||
| BOMUsageCode | BOMUsageCode | |||
| BOMUsageValue | BOMUsageValue | |||
| IndividualLeadTime | IndividualLeadTime | |||
| DecoupledLeadTime | DecoupledLeadTime | |||
| SourceOfSupply | SourceOfSupply | Supply source | ||
| SOSType | SOSType | |||
| LeadTimeFactor | LeadTimeFactor | |||
| VariabilityFactor | VariabilityFactor | |||
| StockLevelProposalStatus | StockLevelProposalStatus | |||
| ProposalStatusChangeDate | ProposalStatusChangeDate | |||
| IsMinOrderQtyConsidered | IsMinOrderQtyConsidered | |||
| MinimumOrderQuantity | MinimumOrderQuantity | Minimum Order Quantity | ||
| MinOrderQtyUnit | MinOrderQtyUnit | |||
| PrevRedZoneAdjustmentFctr | PrevRedZoneAdjustmentFctr | |||
| PrevYellowZoneAdjustmentFctr | PrevYellowZoneAdjustmentFctr | |||
| PrevGreenZoneAdjustmentFctr | PrevGreenZoneAdjustmentFctr | |||
| CurRedZoneAdjustmentFctr | CurRedZoneAdjustmentFctr | |||
| CurYellowZoneAdjustmentFctr | CurYellowZoneAdjustmentFctr | |||
| CurGreenZoneAdjustmentFctr | CurGreenZoneAdjustmentFctr | |||
| OrderCycle | OrderCycle | |||
| BillOfMaterialUUID | BillOfMaterialUUID | Character Field of Length 12 | ||
| BOMExplosionDate | BOMExplosionDate | |||
| CreatedByUser | CreatedByUser | User Name | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| ProposedRedZone | ||||
| ProposedYellowZone | ||||
| quan133endasProposedGreenZone | ||||
| OriglProposedRedZone | ||||
| OriglProposedYellowZone | ||||
| quan133endasOriglProposedGreenZone | ||||
| AverageDailyUsage | I_StockLevelProposalZones | AverageDailyUsage | ||
| AvgDailyUsageUnit | AvgDailyUsageUnit | |||
| MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | ||
| MRPGroup | I_StockLevelProposalZones | MRPGroup | MRP Group | |
| MRPController | I_StockLevelProposalZones | MRPController | MRP Controller | |
| _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_StockLevelProposal.
-- 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_StockLevelProposal AS
SELECT
Material,
Plant,
MRPArea,
ProposalStartDate,
ProposalVersion,
ProposalEndDate,
StockLevelProposalID,
MaterialGroup,
PurchasingGroup,
ConsumptionCode,
ConsumptionValue,
Currency,
VariabilityCode,
VariabilityQuantity,
VariabilityUnit,
ReplenishmentLeadTimeCode,
ProcurementType,
ReplenishmentLeadTimeValue,
BOMUsageCode,
BOMUsageValue,
IndividualLeadTime,
DecoupledLeadTime,
SourceOfSupply,
SOSType,
LeadTimeFactor,
VariabilityFactor,
StockLevelProposalStatus,
ProposalStatusChangeDate,
IsMinOrderQtyConsidered,
MinimumOrderQuantity,
MinOrderQtyUnit,
PrevRedZoneAdjustmentFctr,
PrevYellowZoneAdjustmentFctr,
PrevGreenZoneAdjustmentFctr,
CurRedZoneAdjustmentFctr,
CurYellowZoneAdjustmentFctr,
CurGreenZoneAdjustmentFctr,
OrderCycle,
BillOfMaterialUUID,
BOMExplosionDate,
CreatedByUser,
LastChangedByUser,
CreationDateTime,
LastChangeDateTime,
cast(round((round(ProposedRedZone,_prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevRedZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) AS ProposedRedZone,
cast(round((round(ProposedYellowZone,_prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevYellowZoneAdjustmentFctr),_prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) AS ProposedYellowZone,
case when ProposedGreenZone > ProposedGreenZoneMinOrdQty and ProposedGreenZone > ProposedGreenZoneOrdCycle then cast(round((round(ProposedGreenZone,_prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevGreenZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) when ProposedGreenZoneMinOrdQty > ProposedGreenZone and ProposedGreenZoneMinOrdQty > ProposedGreenZoneOrdCycle then cast(round((round(ProposedGreenZoneMinOrdQty,_prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevGreenZoneAdjustmentFctr),_prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) else cast(round((round(ProposedGreenZoneOrdCycle, _prpsl_hdr.UnitOfMeasureNumberOfDecimals ) * PrevGreenZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) end as ProposedGreenZone AS quan133endasProposedGreenZone,
cast(round((round(OriglProposedRedZone, _prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevRedZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) AS OriglProposedRedZone,
cast(round((round(OriglProposedYellowZone, _prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevYellowZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) AS OriglProposedYellowZone,
case when OriglProposedGreenZone > OriglGreenZoneMinOrdQty and OriglProposedGreenZone > OriglGreenZoneOrdCycle then cast(round((round(OriglProposedGreenZone, _prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevGreenZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) when OriglGreenZoneMinOrdQty > OriglProposedGreenZone and OriglGreenZoneMinOrdQty > OriglGreenZoneOrdCycle then cast(round((round(OriglGreenZoneMinOrdQty, _prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevGreenZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) else cast(round((round(OriglGreenZoneOrdCycle, _prpsl_hdr.UnitOfMeasureNumberOfDecimals) * PrevGreenZoneAdjustmentFctr), _prpsl_hdr.UnitOfMeasureNumberOfDecimals) as abap.quan( 13, 3 )) end as OriglProposedGreenZone AS quan133endasOriglProposedGreenZone,
_prpsl_hdr.AverageDailyUsage AS AverageDailyUsage,
AvgDailyUsageUnit,
MaterialBaseUnit,
_prpsl_hdr.MRPGroup AS MRPGroup,
_prpsl_hdr.MRPController AS MRPController
FROM I_StockLevelProposalZones AS _prpsl_hdr
;
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