I_PlndIndepRqmtSalesFcst
Sales PIR and Forecast for materials
I_PlndIndepRqmtSalesFcst is a Composite CDS View that provides data about "Sales PIR and Forecast for materials" in SAP S/4HANA. It reads from 3 data sources (I_PlndIndepRqmtItemPlanIndTP, I_SalesForecast, I_PlndIndepRqmtSalesMnthWk) and exposes 20 fields with key fields Product, Plant, MRPArea, PlndIndepRqmtType, PlndIndepRqmtVersion. Part of development package PPH_FORECAST_DEMAND_MASS.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PlndIndepRqmtItemPlanIndTP | _Material | left_outer |
| I_SalesForecast | forecast | left_outer |
| I_PlndIndepRqmtSalesMnthWk | sales | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPIRSFP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Sales PIR and Forecast for materials | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | I_PlndIndepRqmtSalesMnthWk | Product | Product Sold |
| KEY | Plant | I_PlndIndepRqmtSalesMnthWk | Plant | Valuation Area |
| KEY | MRPArea | I_PlndIndepRqmtSalesMnthWk | MRPArea | MRP Area |
| KEY | PlndIndepRqmtType | I_PlndIndepRqmtSalesMnthWk | PlndIndepRqmtType | |
| KEY | PlndIndepRqmtVersion | I_PlndIndepRqmtSalesMnthWk | PlndIndepRqmtVersion | |
| KEY | RequirementPlan | I_PlndIndepRqmtSalesMnthWk | RequirementPlan | Requirements Plan |
| KEY | RequirementSegment | I_PlndIndepRqmtSalesMnthWk | RequirementSegment | Req. Segment |
| KEY | PlndIndepRqmtPeriod | I_PlndIndepRqmtSalesMnthWk | PlndIndepRqmtPeriod | Year Month |
| KEY | PeriodType | I_PlndIndepRqmtSalesMnthWk | PeriodType | PeriodIndicator |
| PlndIndepRqmtPeriodStartDate | I_PlndIndepRqmtItemPlanIndTP | PlndIndepRqmtPeriodStartDate | ||
| PlndIndepRqmtInternalID | I_PlndIndepRqmtItemPlanIndTP | PlndIndepRqmtInternalID | ||
| WorkingDayDate | I_PlndIndepRqmtItemPlanIndTP | WorkingDayDate | ||
| PlannedQuantity | I_PlndIndepRqmtItemPlanIndTP | PlannedQuantity | ||
| WithdrawalQuantity | I_PlndIndepRqmtItemPlanIndTP | WithdrawalQuantity | ||
| LastChangedByUser | I_PlndIndepRqmtItemPlanIndTP | LastChangedByUser | User Name | |
| LastChangeDate | I_PlndIndepRqmtItemPlanIndTP | LastChangeDate | Time Stamp | |
| PlndIndepRqmtLastChgdDateTime | I_PlndIndepRqmtItemPlanIndTP | PlndIndepRqmtLastChgdDateTime | ||
| UnitOfMeasure | I_PlndIndepRqmtSalesMnthWk | UnitOfMeasure | Unit Protected Qty | |
| SalesVolumeQuantity | I_PlndIndepRqmtSalesMnthWk | SalesVolumeQuantity | ||
| MaterialBaseUnit |
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_PlndIndepRqmtSalesFcst.
-- 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: IPIRSFP
CREATE VIEW I_PlndIndepRqmtSalesFcst AS
SELECT
sales.Product AS Product,
sales.Plant AS Plant,
sales.MRPArea AS MRPArea,
sales.PlndIndepRqmtType AS PlndIndepRqmtType,
sales.PlndIndepRqmtVersion AS PlndIndepRqmtVersion,
sales.RequirementPlan AS RequirementPlan,
sales.RequirementSegment AS RequirementSegment,
sales.PlndIndepRqmtPeriod AS PlndIndepRqmtPeriod,
sales.PeriodType AS PeriodType,
_Material.PlndIndepRqmtPeriodStartDate AS PlndIndepRqmtPeriodStartDate,
_Material.PlndIndepRqmtInternalID AS PlndIndepRqmtInternalID,
_Material.WorkingDayDate AS WorkingDayDate,
_Material.PlannedQuantity AS PlannedQuantity,
_Material.WithdrawalQuantity AS WithdrawalQuantity,
_Material.LastChangedByUser AS LastChangedByUser,
_Material.LastChangeDate AS LastChangeDate,
_Material.PlndIndepRqmtLastChgdDateTime AS PlndIndepRqmtLastChgdDateTime,
sales.UnitOfMeasure AS UnitOfMeasure,
sales.SalesVolumeQuantity AS SalesVolumeQuantity,
cast ('%' as meins) AS MaterialBaseUnit
FROM I_PlndIndepRqmtSalesMnthWk AS sales
LEFT OUTER JOIN I_PlndIndepRqmtItemPlanIndTP AS _Material ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SalesForecast AS forecast ON /* join condition not captured in parsed metadata */
;
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