I_MfgProcgExecBatchStock

DDL: I_MFGPROCGEXECBATCHSTOCK SQL: IMPEBATCHSTOCK Type: view COMPOSITE Package: MPE_EXEC_SFO

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)

SourceAliasJoin Type
I_MfgProcgExecBatch batch inner
I_BatchDistinct batch inner
P_MfgProcgExecBatchStock stock from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;