I_MfgProcgExecMaterialStock
Material Stock in Manufacturing Processing Execution
I_MfgProcgExecMaterialStock is a Composite CDS View that provides data about "Material Stock in Manufacturing Processing Execution" in SAP S/4HANA. It reads from 1 data source (P_MfgProcgExecMaterialStock) and exposes 23 fields with key fields Material, Plant, StorageLocation, Batch, Supplier. It has 4 associations to related views. Part of development package MPE_EXEC_SFO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MfgProcgExecMaterialStock | P_MfgProcgExecMaterialStock | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Batch | _Batch | $projection.Material = _Batch.Material and $projection.Plant = _Batch.Plant and $projection.Batch = _Batch.Batch |
| [0..1] | I_SalesDocument | _SalesDocument | $projection.SalesDocument = _SalesDocument.SalesDocument |
| [0..1] | I_SalesDocumentItem | _SalesDocumentItem | $projection.SalesDocument = _SalesDocumentItem.SalesDocument and $projection.SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem |
| [0..1] | I_WBSElementByInternalKey | _WBSElement | $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMPEMATLSTOCK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Material Stock in Manufacturing Processing Execution | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | StorageLocation | StorageLocation | StorageLocation | |
| KEY | Batch | Batch | Lot No. | |
| KEY | Supplier | Supplier | Supplier | |
| KEY | SalesDocument | SalesDocument | SD Document | |
| KEY | SalesDocumentItem | SalesDocumentItem | Sales Document Item | |
| KEY | WBSElementInternalID | WBS Internal ID | ||
| KEY | Customer | Customer | Sold-to Party | |
| KEY | InventorySpecialStockType | InventorySpecialStockType | Special Stock Type | |
| KEY | MaterialBaseUnit | MaterialBaseUnit | Valuation Unit | |
| VltdUnrestrictedUseStkQty | VltdUnrestrictedUseStkQty | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _Material | _Material | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Batch | _Batch | |||
| _Supplier | _Supplier | |||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _WBSElement | _WBSElement | |||
| _Customer | _Customer | |||
| _InventorySpecialStockType | _InventorySpecialStockType |
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_MfgProcgExecMaterialStock.
-- 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: IMPEMATLSTOCK
CREATE VIEW I_MfgProcgExecMaterialStock AS
SELECT
Material,
Plant,
StorageLocation,
Batch,
Supplier,
SalesDocument,
SalesDocumentItem,
cast(WBSElementInternalID as ps_s4_pspnr preserving type) AS WBSElementInternalID,
Customer,
InventorySpecialStockType,
MaterialBaseUnit,
VltdUnrestrictedUseStkQty
FROM P_MfgProcgExecMaterialStock
LEFT OUTER JOIN I_Batch AS _Batch ON Material = _Batch.Material AND Plant = _Batch.Plant AND Batch = _Batch.Batch -- association [0..1]
LEFT OUTER JOIN I_SalesDocument AS _SalesDocument ON SalesDocument = _SalesDocument.SalesDocument -- association [0..1]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesDocumentItem ON SalesDocument = _SalesDocumentItem.SalesDocument AND SalesDocumentItem = _SalesDocumentItem.SalesDocumentItem -- association [0..1]
LEFT OUTER JOIN I_WBSElementByInternalKey AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID -- 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