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_MRPManufacturingComponent.
-- 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: IMRPMANUCOMP
CREATE VIEW I_MRPManufacturingComponent AS
SELECT
I_MfgOrderOperationComponent.Reservation AS Reservation,
I_MfgOrderOperationComponent.ReservationItem AS ReservationItem,
I_MfgOrderOperationComponent.RecordType AS RecordType,
I_MfgOrderOperationComponent.RequirementType AS RequirementType,
I_MfgOrderOperationComponent.Material AS Material,
I_MfgOrderOperationComponent._Material._Text[1: Language = $session.system_language ].MaterialName AS MaterialName,
I_MfgOrderOperationComponent.Plant AS MRPPlant,
'' AS SupplyingPlant,
I_MfgOrderOperationComponent.MatlCompRequirementDate AS RequirementDate,
I_MfgOrderOperationComponent.BaseUnit AS BaseUnit,
I_MfgOrderOperationComponent.Supplier AS Supplier,
I_MfgOrderOperationComponent.PurchasingGroup AS PurchasingGroup,
_ProductPlant.ProcurementType AS MaterialProcurementCategory,
_ProductPlant.SpecialProcurementType AS MaterialProcurementType,
I_MfgOrderOperationComponent.ManufacturingOrder AS ManufacturingOrder,
I_MfgOrderOperationComponent.ManufacturingOrderCategory AS ManufacturingOrderCategory,
I_MfgOrderOperationComponent.ManufacturingOrderType AS ManufacturingOrderType,
I_MfgOrderOperationComponent._MfgOrder.ManufacturingOrderImportance AS ManufacturingOrderImportance,
I_MfgOrderOperationComponent._MfgOrder.PlannedOrder AS PlannedOrder,
I_MfgOrderOperationComponent.ProductionPlant AS ProductionPlant,
I_MfgOrderOperationComponent.AssemblyMRPController AS MRPController,
_MRPControllerEmail.MRPControllerName AS MRPControllerName,
I_MfgOrderOperationComponent._AssemblyMRPController.MRPControllerPhoneNumber AS MRPControllerPhoneNumber,
_MRPControllerEmail.EmailAddress AS EmailAddress,
I_MfgOrderOperationComponent.ProductionSupervisor AS ProductionSupervisor,
I_MfgOrderOperationComponent._MfgOrder._ProductionVersion.ProductionVersion AS ProductionVersion,
I_MfgOrderOperationComponent._MfgOrder._ProductionVersion.ProductionVersionText AS ProductionVersionText,
I_MfgOrderOperationComponent._MfgOrder._ProductionVersion.ProductionLine AS ProductionLine,
I_MfgOrderOperationComponent.InventorySpecialStockType AS InventorySpecialStockType,
I_MfgOrderOperationComponent.RequiredQuantity AS OrderedQuantity,
I_MfgOrderOperationComponent.WithdrawnQuantity AS WithdrawnQuantity,
(I_MfgOrderOperationComponent.RequiredQuantity - I_MfgOrderOperationComponent.WithdrawnQuantity) AS OpenQuantity,
I_MfgOrderOperationComponent.ConfirmedAvailableQuantity AS CommittedQuantity,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderPlannedTotalQty AS OrderPlannedTotalQty,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderPlannedScrapQty AS OrderPlannedScrapQty,
I_MfgOrderOperationComponent._MfgOrder.ExpectedDeviationQuantity AS ExpectedDeviationQuantity,
I_MfgOrderOperationComponent._MfgOrder.ActualDeliveredQuantity AS GoodsReceiptQty,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderPlannedStartDate AS PlannedStartDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderPlannedEndDate AS OrderPlannedEndDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderActualStartDate AS ActualStartDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderActualEndDate AS ActualEndDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderActualReleaseDate AS ActualReleasedDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderScheduledStartDate AS ScheduledBasicStartDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderScheduledEndDate AS ScheduledBasicEndDate,
I_MfgOrderOperationComponent._MfgOrder.MfgOrderScheduledReleaseDate AS ScheduledReleaseDate,
'' AS TopLevelOrder,
'' AS TopLevelOrderMaterial,
_ProductPlant.GoodsReceiptDuration AS MaterialGoodsReceiptDuration,
_ProductSupplyPlanning.PlannedDeliveryDurationInDays AS MaterialPlannedDeliveryDurn,
0 AS MaterialPlannedProductionDurn,
_ProductSupplyPlanning.TotalReplenishmentLeadTime AS MaterialReplenishmentLeadDurn,
I_MfgOrderOperationComponent.SalesOrder AS SalesOrder,
I_MfgOrderOperationComponent.SalesOrderItem AS SalesOrderItem,
I_MfgOrderOperationComponent._SalesOrder.SalesOrderType AS SalesOrderType,
I_MfgOrderOperationComponent._SalesOrderItem.Material AS SalesOrderItemMaterial,
I_MfgOrderOperationComponent._SalesOrder.SoldToParty AS Customer,
I_MfgOrderOperationComponent.WBSElementInternalID AS WBSElementInternalID,
I_MfgOrderOperationComponent._WBSElement.WBSElementExternalID AS WBSElement,
I_MfgOrderOperationComponent._WBSElement.WBSDescription AS WBSDescription,
I_MfgOrderOperationComponent._WBSElement.ResponsiblePerson AS ResponsiblePerson,
I_MfgOrderOperationComponent._WBSElement.ResponsiblePersonName AS ResponsiblePersonName,
I_MfgOrderOperationComponent._WBSElement.ProjectInternalID AS ProjectInternalID,
I_MfgOrderOperationComponent._WBSElement._Project.ProjectDescription AS ProjectDescription,
I_MfgOrderOperationComponent._WBSElement._Project.ProjectWithCodingMask AS Project,
I_MfgOrderOperationComponent._WBSElement._Project.ResponsiblePerson AS ProjectResponsiblePerson,
I_MfgOrderOperationComponent._WBSElement._Project.ResponsiblePersonName AS ProjectResponsiblePersonName,
_ProductSupplyPlanning.TotalReplenishmentLeadTime AS TotalReplenishmentLeadDuration,
_ProductSupplyPlanning.FixedLotSizeQuantity AS FixedLotSizeQuantity,
_ProductSupplyPlanning.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
_ProductSupplyPlanning.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
_ProductSupplyPlanning.LotSizeRoundingQuantity AS LotSizeRoundingQuantity,
_ProductSupplyPlanning.RoundingProfile AS RoundingProfile
FROM I_MfgOrderOperationComponent
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND MRPPlant = _ProductPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_ProductSupplyPlanning AS _ProductSupplyPlanning ON Material = _ProductSupplyPlanning.Product AND MRPPlant = _ProductSupplyPlanning.Plant -- association [0..1]
LEFT OUTER JOIN I_MRPControllerEmail AS _MRPControllerEmail ON MRPPlant = _MRPControllerEmail.Plant AND MRPController = _MRPControllerEmail.MRPController -- association [0..1]
;