C_StockRequirementItem
MRP Stock Requirement Item
C_StockRequirementItem is a Consumption CDS View that provides data about "MRP Stock Requirement Item" in SAP S/4HANA. It reads from 1 data source (I_StockRequirementItem) and exposes 53 fields with key fields RowIndex, MRPPlant, Material, MRPArea, MaterialShortageDefinition. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_StockRequirementItem | I_StockRequirementItem | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | E_Purchaserequisitionitem | _Extension | $projection.MRPElement = _Extension.PurchaseRequisition and $projection.MRPElementItem = _Extension.PurchaseRequisitionItem |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSTOCKREQITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| EndUserText.label | MRP Stock Requirement Item | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RowIndex | I_StockRequirementItem | RowIndex | Row index |
| KEY | MRPPlant | I_StockRequirementItem | MRPPlant | Plant |
| KEY | Material | I_StockRequirementItem | Material | Vehicle Model |
| KEY | MRPArea | I_StockRequirementItem | MRPArea | MRP Area |
| KEY | MaterialShortageDefinition | I_StockRequirementItem | MaterialShortageDefinition | Shortage Def. ID |
| KEY | MRPPlanningSegmentType | I_StockRequirementItem | MRPPlanningSegmentType | MRP segment |
| KEY | MRPPlanningSegment | I_StockRequirementItem | MRPPlanningSegment | Plng Segmnt No. |
| MRPElement | I_StockRequirementItem | MRPElement | MRP element number | |
| MRPElementItem | I_StockRequirementItem | MRPElementItem | MRP elemnt item | |
| MRPElementScheduleLine | I_StockRequirementItem | MRPElementScheduleLine | Scheduling | |
| MaterialBaseUnit | I_StockRequirementItem | MaterialBaseUnit | Valuation Unit | |
| UnitOfMeasureTechnicalName | I_StockRequirementItem | UnitOfMeasureTechnicalName | Technical | |
| UnitOfMeasure_E | I_StockRequirementItem | UnitOfMeasure_E | ||
| MRPElementCategory | I_StockRequirementItem | MRPElementCategory | MRP Elmnt Ind. | |
| MRPElementCategoryShortName | I_StockRequirementItem | MRPElementCategoryShortName | MRP element | |
| MRPElementAvailyOrRqmtDate | I_StockRequirementItem | MRPElementAvailyOrRqmtDate | Time Stamp | |
| MRPAvailableQuantity | I_StockRequirementItem | MRPAvailableQuantity | DEC 20 3 | |
| MRPElementOpenQuantity | I_StockRequirementItem | MRPElementOpenQuantity | Rec./reqd qty | |
| MaterialShortageCriticalQty | I_StockRequirementItem | MaterialShortageCriticalQty | Rec./reqd qty | |
| MaterialShortageQuantityThld | I_StockRequirementItem | MaterialShortageQuantityThld | Rec./reqd qty | |
| MaterialSafetyStockQty | I_StockRequirementItem | MaterialSafetyStockQty | Safety Stock | |
| MRPElementQuantityIsFirm | I_StockRequirementItem | MRPElementQuantityIsFirm | TRUE | |
| MRPElementDocumentType | I_StockRequirementItem | MRPElementDocumentType | P.O./Order type | |
| MfgOrderStatusInternalCode | I_StockRequirementItem | MfgOrderStatusInternalCode | Status | |
| StorageLocation | I_StockRequirementItem | StorageLocation | StorageLocation | |
| Assembly | I_StockRequirementItem | Assembly | Pegged Reqmt | |
| ProductionVersion | I_StockRequirementItem | ProductionVersion | Version ID | |
| RequirementPlan | I_StockRequirementItem | RequirementPlan | Requirements Plan | |
| SourceMRPElement | I_StockRequirementItem | SourceMRPElement | MRP element number | |
| SourceMRPElementItem | I_StockRequirementItem | SourceMRPElementItem | MRP elemnt item | |
| SourceMRPElementScheduleLine | I_StockRequirementItem | SourceMRPElementScheduleLine | Schedule Line | |
| SourceMRPElementCategory | I_StockRequirementItem | SourceMRPElementCategory | MRP Elmnt Ind. | |
| MRPElementBusinessPartner | I_StockRequirementItem | MRPElementBusinessPartner | Supplier | |
| MRPElementBusinessPartnerName | I_StockRequirementItem | MRPElementBusinessPartnerName | Bus.Partner Name | |
| MRPElementBusinessPartnerType | I_StockRequirementItem | MRPElementBusinessPartnerType | Business Part. Type | |
| QuantityUnitDcmls | I_StockRequirementItem | QuantityUnitDcmls | Rounding | |
| MaterialShortageStatus | I_StockRequirementItem | MaterialShortageStatus | Char01 | |
| MRPElementIsReleased | I_StockRequirementItem | MRPElementIsReleased | TRUE | |
| MRPElementIsPartiallyDelivered | I_StockRequirementItem | MRPElementIsPartiallyDelivered | TRUE | |
| SolutionRequestStatus | I_StockRequirementItem | SolutionRequestStatus | Request Status | |
| MRPRequestSupplierResponse | I_StockRequirementItem | MRPRequestSupplierResponse | Vendor's Response | |
| MRPAvailability | I_StockRequirementItem | MRPAvailability | MRP Availability | |
| HorizonForSelectionInDays | I_StockRequirementItem | HorizonForSelectionInDays | Horizon | |
| HasDecisionSupport | I_StockRequirementItem | HasDecisionSupport | Char01 | |
| MRPElementDocumentTypeName | I_StockRequirementItem | MRPElementDocumentTypeName | Character field, length 64 | |
| AggregationSupplyProfile | I_StockRequirementItem | AggregationSupplyProfile | INT1 | |
| AggregationDemandProfile | I_StockRequirementItem | AggregationDemandProfile | INT1 | |
| MRPElementCategoryGroupName | I_StockRequirementItem | MRPElementCategoryGroupName | Short Description | |
| HasSuppliedInThePast | I_StockRequirementItem | HasSuppliedInThePast | Char01 | |
| IsNonAggregated | I_StockRequirementItem | IsNonAggregated | INT4 | |
| TargetQuantityUnitDcmls | I_StockRequirementItem | TargetQuantityUnitDcmls | Decimal Places | |
| MaterialExternalID | I_StockRequirementItem | MaterialExternalID | Material | |
| CreationDateTime | CreationDateTime | Timestamp |
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 C_StockRequirementItem.
-- 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: CSTOCKREQITEM
CREATE VIEW C_StockRequirementItem AS
SELECT
I_StockRequirementItem.RowIndex AS RowIndex,
I_StockRequirementItem.MRPPlant AS MRPPlant,
I_StockRequirementItem.Material AS Material,
I_StockRequirementItem.MRPArea AS MRPArea,
I_StockRequirementItem.MaterialShortageDefinition AS MaterialShortageDefinition,
I_StockRequirementItem.MRPPlanningSegmentType AS MRPPlanningSegmentType,
I_StockRequirementItem.MRPPlanningSegment AS MRPPlanningSegment,
I_StockRequirementItem.MRPElement AS MRPElement,
I_StockRequirementItem.MRPElementItem AS MRPElementItem,
I_StockRequirementItem.MRPElementScheduleLine AS MRPElementScheduleLine,
I_StockRequirementItem.MaterialBaseUnit AS MaterialBaseUnit,
I_StockRequirementItem.UnitOfMeasureTechnicalName AS UnitOfMeasureTechnicalName,
I_StockRequirementItem.UnitOfMeasure_E AS UnitOfMeasure_E,
I_StockRequirementItem.MRPElementCategory AS MRPElementCategory,
I_StockRequirementItem.MRPElementCategoryShortName AS MRPElementCategoryShortName,
I_StockRequirementItem.MRPElementAvailyOrRqmtDate AS MRPElementAvailyOrRqmtDate,
I_StockRequirementItem.MRPAvailableQuantity AS MRPAvailableQuantity,
I_StockRequirementItem.MRPElementOpenQuantity AS MRPElementOpenQuantity,
I_StockRequirementItem.MaterialShortageCriticalQty AS MaterialShortageCriticalQty,
I_StockRequirementItem.MaterialShortageQuantityThld AS MaterialShortageQuantityThld,
I_StockRequirementItem.MaterialSafetyStockQty AS MaterialSafetyStockQty,
I_StockRequirementItem.MRPElementQuantityIsFirm AS MRPElementQuantityIsFirm,
I_StockRequirementItem.MRPElementDocumentType AS MRPElementDocumentType,
I_StockRequirementItem.MfgOrderStatusInternalCode AS MfgOrderStatusInternalCode,
I_StockRequirementItem.StorageLocation AS StorageLocation,
I_StockRequirementItem.Assembly AS Assembly,
I_StockRequirementItem.ProductionVersion AS ProductionVersion,
I_StockRequirementItem.RequirementPlan AS RequirementPlan,
I_StockRequirementItem.SourceMRPElement AS SourceMRPElement,
I_StockRequirementItem.SourceMRPElementItem AS SourceMRPElementItem,
I_StockRequirementItem.SourceMRPElementScheduleLine AS SourceMRPElementScheduleLine,
I_StockRequirementItem.SourceMRPElementCategory AS SourceMRPElementCategory,
I_StockRequirementItem.MRPElementBusinessPartner AS MRPElementBusinessPartner,
I_StockRequirementItem.MRPElementBusinessPartnerName AS MRPElementBusinessPartnerName,
I_StockRequirementItem.MRPElementBusinessPartnerType AS MRPElementBusinessPartnerType,
I_StockRequirementItem.QuantityUnitDcmls AS QuantityUnitDcmls,
I_StockRequirementItem.MaterialShortageStatus AS MaterialShortageStatus,
I_StockRequirementItem.MRPElementIsReleased AS MRPElementIsReleased,
I_StockRequirementItem.MRPElementIsPartiallyDelivered AS MRPElementIsPartiallyDelivered,
I_StockRequirementItem.SolutionRequestStatus AS SolutionRequestStatus,
I_StockRequirementItem.MRPRequestSupplierResponse AS MRPRequestSupplierResponse,
I_StockRequirementItem.MRPAvailability AS MRPAvailability,
I_StockRequirementItem.HorizonForSelectionInDays AS HorizonForSelectionInDays,
I_StockRequirementItem.HasDecisionSupport AS HasDecisionSupport,
I_StockRequirementItem.MRPElementDocumentTypeName AS MRPElementDocumentTypeName,
I_StockRequirementItem.AggregationSupplyProfile AS AggregationSupplyProfile,
I_StockRequirementItem.AggregationDemandProfile AS AggregationDemandProfile,
I_StockRequirementItem.MRPElementCategoryGroupName AS MRPElementCategoryGroupName,
I_StockRequirementItem.HasSuppliedInThePast AS HasSuppliedInThePast,
I_StockRequirementItem.IsNonAggregated AS IsNonAggregated,
I_StockRequirementItem.TargetQuantityUnitDcmls AS TargetQuantityUnitDcmls,
I_StockRequirementItem.MaterialExternalID AS MaterialExternalID,
CreationDateTime
FROM I_StockRequirementItem
LEFT OUTER JOIN E_Purchaserequisitionitem AS _Extension ON MRPElement = _Extension.PurchaseRequisition AND MRPElementItem = _Extension.PurchaseRequisitionItem -- 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