I_MfgProcgExecBatchStock
Batch Stock in Manufacturing Processing Execution
I_MfgProcgExecBatchStock is a Composite CDS View that provides data about "Batch Stock in Manufacturing Processing Execution" in SAP S/4HANA. It reads from 3 data sources (I_MfgProcgExecBatch, I_BatchDistinct, P_MfgProcgExecBatchStock) and exposes 21 fields with key fields Material, Plant, StorageLocation, Supplier, SalesDocument. It has 3 associations to related views. Part of development package MPE_EXEC_SFO.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgProcgExecBatch | batch | inner |
| I_BatchDistinct | batch | inner |
| P_MfgProcgExecBatchStock | stock | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 | IMPEBATCHSTOCK | 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 | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Batch Stock in Manufacturing Processing Execution | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | P_MfgProcgExecBatchStock | Material | Vehicle Model |
| KEY | Plant | P_MfgProcgExecBatchStock | Plant | Valuation Area |
| KEY | StorageLocation | P_MfgProcgExecBatchStock | StorageLocation | StorageLocation |
| KEY | Supplier | |||
| KEY | SalesDocument | |||
| KEY | SalesDocumentItem | |||
| KEY | WBSElementInternalID | |||
| KEY | Customer | |||
| KEY | InventorySpecialStockType | P_MfgProcgExecBatchStock | InventorySpecialStockType | Special Stock Type |
| KEY | MaterialBaseUnit | P_MfgProcgExecBatchStock | MaterialBaseUnit | Valuation Unit |
| VltdUnrestrictedUseStkQty | ||||
| _UnitOfMeasure | P_MfgProcgExecBatchStock | _UnitOfMeasure | ||
| _Material | P_MfgProcgExecBatchStock | _Material | ||
| _Plant | P_MfgProcgExecBatchStock | _Plant | ||
| _StorageLocation | P_MfgProcgExecBatchStock | _StorageLocation | ||
| _Supplier | P_MfgProcgExecBatchStock | _Supplier | ||
| _SalesDocument | _SalesDocument | |||
| _SalesDocumentItem | _SalesDocumentItem | |||
| _WBSElement | _WBSElement | |||
| _Customer | P_MfgProcgExecBatchStock | _Customer | ||
| _InventorySpecialStockType | P_MfgProcgExecBatchStock | _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_MfgProcgExecBatchStock.
-- 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: IMPEBATCHSTOCK
CREATE VIEW I_MfgProcgExecBatchStock AS
SELECT
stock.Material AS Material,
stock.Plant AS Plant,
stock.StorageLocation AS StorageLocation,
cast(stock.Supplier as lifnr preserving type) AS Supplier,
cast(stock.SalesDocument as co_kdauf preserving type) AS SalesDocument,
cast(stock.SalesDocumentItem as co_kdpos preserving type) AS SalesDocumentItem,
cast(stock.WBSElementInternalID as ps_s4_pspnr preserving type) AS WBSElementInternalID,
cast(stock.Customer as kunnr preserving type) AS Customer,
stock.InventorySpecialStockType AS InventorySpecialStockType,
stock.MaterialBaseUnit AS MaterialBaseUnit,
stock._UnitOfMeasure AS _UnitOfMeasure,
stock._Material AS _Material,
stock._Plant AS _Plant,
stock._StorageLocation AS _StorageLocation,
stock._Supplier AS _Supplier,
stock._Customer AS _Customer,
stock._InventorySpecialStockType AS _InventorySpecialStockType
FROM P_MfgProcgExecBatchStock AS stock
INNER JOIN I_MfgProcgExecBatch AS batch ON /* join condition not captured in parsed metadata */
INNER JOIN I_BatchDistinct AS batch ON /* join condition not captured in parsed metadata */
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