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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StockLevelProposalZones | _prpsl_hdr | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDDSTKLVLPRPSL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| 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 | Proposal Valid From | |
| KEY | ProposalVersion | ProposalVersion | Proposal Version | |
| ProposalEndDate | ProposalEndDate | Proposal Valid To | ||
| StockLevelProposalID | StockLevelProposalID | Proposal ID | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| ConsumptionCode | ConsumptionCode | Value Indicator | ||
| ConsumptionValue | ConsumptionValue | Value for ABC Analysis | ||
| Currency | Currency | Valuation Crcy | ||
| VariabilityCode | VariabilityCode | Variability Indicator | ||
| VariabilityQuantity | VariabilityQuantity | Value from XYZ Analysis | ||
| VariabilityUnit | VariabilityUnit | Base Unit | ||
| ReplenishmentLeadTimeCode | ReplenishmentLeadTimeCode | DLT Indicator | ||
| ProcurementType | ProcurementType | Procurement | ||
| ReplenishmentLeadTimeValue | ReplenishmentLeadTimeValue | Value from EFG Analysis | ||
| BOMUsageCode | BOMUsageCode | BOM Usage Indicator | ||
| BOMUsageValue | BOMUsageValue | Value from PQR Analysis | ||
| IndividualLeadTime | IndividualLeadTime | Individual Lead Time | ||
| DecoupledLeadTime | DecoupledLeadTime | Decoupled Lead Time | ||
| SourceOfSupply | SourceOfSupply | Supply source | ||
| SOSType | SOSType | SRVC Source Type | ||
| LeadTimeFactor | LeadTimeFactor | DLT Factor | ||
| VariabilityFactor | VariabilityFactor | Variabilty Factor | ||
| StockLevelProposalStatus | StockLevelProposalStatus | Proposal Status | ||
| ProposalStatusChangeDate | ProposalStatusChangeDate | Time Stamp | ||
| IsMinOrderQtyConsidered | IsMinOrderQtyConsidered | Is MOQ Considered | ||
| MinimumOrderQuantity | MinimumOrderQuantity | Minimum Order Quantity | ||
| MinOrderQtyUnit | MinOrderQtyUnit | Base Unit | ||
| PrevRedZoneAdjustmentFctr | PrevRedZoneAdjustmentFctr | Adj. Factor Red Zone | ||
| PrevYellowZoneAdjustmentFctr | PrevYellowZoneAdjustmentFctr | Adj Fctr Yellow Zone | ||
| PrevGreenZoneAdjustmentFctr | PrevGreenZoneAdjustmentFctr | Adj. Fctr Green Zone | ||
| CurRedZoneAdjustmentFctr | CurRedZoneAdjustmentFctr | Adj. Factor Red Zone | ||
| CurYellowZoneAdjustmentFctr | CurYellowZoneAdjustmentFctr | Adj. Factor Yel Zone | ||
| CurGreenZoneAdjustmentFctr | CurGreenZoneAdjustmentFctr | Adj. Fctr. Gree Zone | ||
| OrderCycle | OrderCycle | Order Cycle | ||
| BillOfMaterialUUID | BillOfMaterialUUID | Character Field of Length 12 | ||
| BOMExplosionDate | BOMExplosionDate | Explosion Date | ||
| 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.
-- SQL view name: IDDSTKLVLPRPSL
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