I_MfgProcgExecMaterialStock

DDL: I_MFGPROCGEXECMATERIALSTOCK SQL: IMPEMATLSTOCK Type: view COMPOSITE Package: MPE_EXEC_SFO

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)

SourceAliasJoin Type
P_MfgProcgExecMaterialStock P_MfgProcgExecMaterialStock from

Associations (4)

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

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

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