I_MfgOrderOperationCompCube

DDL: I_MFGORDEROPERATIONCOMPCUBE SQL: IPPMFGORDOPCOMPC Type: view COMPOSITE

Manufacturing Order Operation Component - Cube

I_MfgOrderOperationCompCube is a Composite CDS View (Cube) that provides data about "Manufacturing Order Operation Component - Cube" in SAP S/4HANA. It reads from 2 data sources (I_MfgOrderOperationComponent, P_PPH_ReportingDate3) and exposes 193 fields with key fields Reservation, ReservationItem, RecordType. It has 12 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrderOperationComponent comp from
P_PPH_ReportingDate3 repdate inner

Associations (12)

CardinalityTargetAliasCondition
[1..1] I_CalendarDate _RequirementDate $projection.MatlCompRequirementDate = _RequirementDate.CalendarDate
[0..1] I_CalendarMonth _RequirementDateMonth $projection.RequirementDateMonth = _RequirementDateMonth.CalendarMonth
[0..1] I_CalendarYear _RequirementDateYear $projection.RequirementDateYear = _RequirementDateYear.CalendarYear
[0..1] I_WeekDay _RequirementDateWeekDay $projection.RequirementDateWeekDay = _RequirementDateWeekDay.WeekDay
[0..1] I_ReportingPeriod _ReportingPeriod $projection.ReportingPeriod = _ReportingPeriod.ReportingPeriod
[0..1] I_Currency _CompanyCodeCurrency $projection.CompanyCodeCurrency = _CompanyCodeCurrency.Currency
[0..1] I_MRPController _MRPController $projection.Plant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController
[0..1] I_MaterialPlant _MaterialPlant $projection.Plant = _MaterialPlant.Plant and $projection.Material = _MaterialPlant.Material
[1..1] I_OrderReservationDocument _Reservation $projection.Reservation = _Reservation.Reservation
[0..1] I_WBSElementBasicData _WBSElementBasicData $projection.WBSElementInternalID_2 = _WBSElementBasicData.WBSElementInternalID
[1..1] I_ManufacturingOrder _ManufacturingOrder $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder
[0..1] I_ManufacturingOrderSequence _ManufacturingOrderSequence $projection.ManufacturingOrder = _ManufacturingOrderSequence.ManufacturingOrder and $projection.ManufacturingOrderSequence = _ManufacturingOrderSequence.ManufacturingOrderSequence

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IPPMFGORDOPCOMPC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.allowExtensions true view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
EndUserText.label Manufacturing Order Operation Component - Cube view

Fields (193)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderOperationComponent Reservation Reservation
KEY ReservationItem I_MfgOrderOperationComponent ReservationItem Reservation Item
KEY RecordType I_MfgOrderOperationComponent RecordType Reservation Record Type
ManufacturingOrderCategory I_MfgOrderOperationComponent ManufacturingOrderCategory
ManufacturingOrderType I_MfgOrderOperationComponent ManufacturingOrderType
ManufacturingOrder I_MfgOrderOperationComponent ManufacturingOrder Order
ManufacturingOrderSequence I_MfgOrderOperationComponent ManufacturingOrderSequence
ManufacturingOrderOperation I_MfgOrderOperationComponent ManufacturingOrderOperation Activity
ManufacturingOrderOperation_2 I_MfgOrderOperationComponent ManufacturingOrderOperation_2
ProductionPlant I_MfgOrderOperationComponent ProductionPlant Prod plnt
OrderInternalBillOfOperations I_MfgOrderOperationComponent OrderInternalBillOfOperations Order Internal Bill of Operations
OrderIntBillOfOperationsItem I_MfgOrderOperationComponent OrderIntBillOfOperationsItem Order Internal Bill of Operations Item
AssemblyMRPController I_MfgOrderOperationComponent AssemblyMRPController
ProductionSupervisor I_MfgOrderOperationComponent ProductionSupervisor Prodn Supervisor
MatlCompRequirementDate I_MfgOrderOperationComponent MatlCompRequirementDate Reqmts date
MatlCompRequirementTime I_MfgOrderOperationComponent MatlCompRequirementTime
RequirementDateWeekDay P_PPH_ReportingDate3 ReportingDateWeekDay
RequirementDateWeek P_PPH_ReportingDate3 ReportingDateWeek
RequirementDateMonth P_PPH_ReportingDate3 ReportingDateMonth
RequirementDateYear P_PPH_ReportingDate3 ReportingDateYear
RequirementDateYearMonth
ReportingPeriod
ReservationItemCreationCode I_MfgOrderOperationComponent ReservationItemCreationCode Reserv. status
ReservationIsFinallyIssued I_MfgOrderOperationComponent ReservationIsFinallyIssued Res Final Issue
MatlCompIsMarkedForDeletion I_MfgOrderOperationComponent MatlCompIsMarkedForDeletion
MaterialComponentIsMissing I_MfgOrderOperationComponent MaterialComponentIsMissing Missing Part
IsBulkMaterialComponent I_MfgOrderOperationComponent IsBulkMaterialComponent Bulk material
MatlCompIsMarkedForBackflush I_MfgOrderOperationComponent MatlCompIsMarkedForBackflush Backflush
MaterialCompIsAlternativeItem I_MfgOrderOperationComponent MaterialCompIsAlternativeItem Alternat. item
MatlCompIsTextItem I_MfgOrderOperationComponent MatlCompIsTextItem Text Item
MatlCompDiscontinuationType I_MfgOrderOperationComponent MatlCompDiscontinuationType Share of scrap
MatlCompIsConfigurable I_MfgOrderOperationComponent MatlCompIsConfigurable Configur. Item
MaterialCompIsCostRelevant I_MfgOrderOperationComponent MaterialCompIsCostRelevant CostingRelevncy
MaterialComponentIsClassified I_MfgOrderOperationComponent MaterialComponentIsClassified Classification
MaterialCompIsIntraMaterial I_MfgOrderOperationComponent MaterialCompIsIntraMaterial Intra Material
UsageProbabilityPercent I_MfgOrderOperationComponent UsageProbabilityPercent Usage Prob.
OrderIsReleased
OrderIsConfirmed
OrderIsDeleted
OrderIsTechnicallyCompleted
OrderIsClosed
OrderIsMarkedForDeletion
LongTextLanguageCode I_MfgOrderOperationComponent LongTextLanguageCode Language
LongTextExists I_MfgOrderOperationComponent LongTextExists LgText ID
RequirementType I_MfgOrderOperationComponent RequirementType RequirementType
MaterialGroup I_MfgOrderOperationComponent MaterialGroup Product Group
Material I_MfgOrderOperationComponent Material Vehicle Model
Plant I_MfgOrderOperationComponent Plant Valuation Area
MRPController
SalesOrder I_MfgOrderOperationComponent SalesOrder SD Document
SalesOrderItem I_MfgOrderOperationComponent SalesOrderItem Sales Order Item
WBSElementInternalID I_MfgOrderOperationComponent WBSElementInternalID WBS Internal ID
WBSElementInternalID_2 I_MfgOrderOperationComponent WBSElementInternalID_2
ProductConfiguration I_MfgOrderOperationComponent ProductConfiguration Object Number
ChangeNumber I_MfgOrderOperationComponent ChangeNumber Change Number
EffectivityParameterVariant I_MfgOrderOperationComponent EffectivityParameterVariant Tech st from
SortField I_MfgOrderOperationComponent SortField Sort Field
MaterialComponentSortText I_MfgOrderOperationComponent MaterialComponentSortText Sort string
BillOfMaterialCategory I_MfgOrderOperationComponent BillOfMaterialCategory BOM category
BillOfMaterialInternalID I_MfgOrderOperationComponent BillOfMaterialInternalID_2
BillOfMaterialVariant I_MfgOrderOperationComponent BillOfMaterialVariant AlternativeBOM
BillOfMaterialItemNodeNumber I_MfgOrderOperationComponent BOMItem
BillOfMaterialItemCategory I_MfgOrderOperationComponent BOMItemCategory Item Category
BillOfMaterialItemNumber I_MfgOrderOperationComponent BillOfMaterialItemNumber_2
BOMItemDescription I_MfgOrderOperationComponent BOMItemDescription Item Text
BOMExplosionDateID I_MfgOrderOperationComponent BOMExplosionDateID
PurchasingInfoRecord I_MfgOrderOperationComponent PurchasingInfoRecord Info Record
PurchasingGroup I_MfgOrderOperationComponent PurchasingGroup Purchasing Group
PurchaseRequisition
PurchaseRequisitionItem
PurchaseOrder
PurchaseOrderItem
DeliveryDurationInDays I_MfgOrderOperationComponent DeliveryDurationInDays Del time (days)
GoodsMovementIsAllowed I_MfgOrderOperationComponent GoodsMovementIsAllowed Mvt Allowed
StorageLocation I_MfgOrderOperationComponent StorageLocation StorageLocation
Batch I_MfgOrderOperationComponent Batch Lot No.
DebitCreditCode I_MfgOrderOperationComponent DebitCreditCode Single-Character Flag
GoodsMovementType I_MfgOrderOperationComponent GoodsMovementType Movement Type
InventorySpecialStockType I_MfgOrderOperationComponent InventorySpecialStockType Special Stock Type
InventorySpecialStockValnType I_MfgOrderOperationComponent InventorySpecialStockValnType Valuation
ConsumptionPosting I_MfgOrderOperationComponent ConsumptionPosting Consumption Posting
SupplyArea I_MfgOrderOperationComponent SupplyArea Supply Area
GoodsRecipientName I_MfgOrderOperationComponent GoodsRecipientName Recipient Name
UnloadingPointName I_MfgOrderOperationComponent UnloadingPointName Unloading Point Name
StockSegment I_MfgOrderOperationComponent StockSegment Stock Segment
RequirementSegment I_MfgOrderOperationComponent RequirementSegment Req. Segment
Warehouse I_MfgOrderOperationComponent Warehouse Warehouse No.
StorageType I_MfgOrderOperationComponent StorageType Storage Type
StorageBin I_MfgOrderOperationComponent StorageBin Storage Bin
BusinessArea I_MfgOrderOperationComponent BusinessArea Business Area
CompanyCode I_MfgOrderOperationComponent CompanyCode Receiver Company Code
GLAccount I_MfgOrderOperationComponent GLAccount General Ledger
AccountAssignmentCategory I_MfgOrderOperationComponent AccountAssignmentCategory Acct Assgmt Cat
FunctionalArea I_MfgOrderOperationComponent FunctionalArea Sendr Fctl Area
BatchSplitType I_MfgOrderOperationComponent BatchSplitType Checkbox
BatchMasterReservationItem I_MfgOrderOperationComponent BatchMasterReservationItem
MaterialCompIsVariableSized I_MfgOrderOperationComponent MaterialCompIsVariableSized Var-Sized Item
NumberOfVariableSizeComponents
VariableSizeItemUnit I_MfgOrderOperationComponent VariableSizeItemUnit VSI unit
VariableSizeItemQuantity I_MfgOrderOperationComponent VariableSizeItemQuantity VSI Quantity
VariableSizeComponentUnit I_MfgOrderOperationComponent VariableSizeComponentUnit VSI UoM
VariableSizeComponentQuantity I_MfgOrderOperationComponent VariableSizeComponentQuantity VSI Quantity
FormulaKey I_MfgOrderOperationComponent FormulaKey VSI Formula
MaterialComponentIsPhantomItem I_MfgOrderOperationComponent MaterialComponentIsPhantomItem Phantom Item
OrderPathValue I_MfgOrderOperationComponent OrderPathValue Order path
OrderLevelValue I_MfgOrderOperationComponent OrderLevelValue Order level
LeadTimeOffset I_MfgOrderOperationComponent LeadTimeOffset Lead-tm offset
OperationLeadTimeOffsetUnit I_MfgOrderOperationComponent OperationLeadTimeOffsetUnit
OperationLeadTimeOffset I_MfgOrderOperationComponent OperationLeadTimeOffset Oper. LT offset
QuantityIsFixed I_MfgOrderOperationComponent QuantityIsFixed Qty. is fixed
IsNetScrap I_MfgOrderOperationComponent IsNetScrap Net Indicator
ComponentScrapInPercent I_MfgOrderOperationComponent ComponentScrapInPercent Component Scrap
OperationScrapInPercent I_MfgOrderOperationComponent OperationScrapInPercent Operation Scrap
BaseUnit I_MfgOrderOperationComponent BaseUnit Unit of Measure
RequiredQuantity
WithdrawnQuantity I_MfgOrderOperationComponent WithdrawnQuantity Withdrawn Quantity
OpenQuantity
DeviationQuantity
ConfirmedAvailableQuantity I_MfgOrderOperationComponent ConfirmedAvailableQuantity Available Quantity
MaterialCompOriginalQuantity I_MfgOrderOperationComponent MaterialCompOriginalQuantity
OriginalDemandQuantity
EntryUnit I_MfgOrderOperationComponent EntryUnit Unit of Entry
GoodsMovementEntryQty I_MfgOrderOperationComponent GoodsMovementEntryQty
Currency I_MfgOrderOperationComponent Currency Valuation Crcy
WithdrawnQuantityAmount I_MfgOrderOperationComponent WithdrawnQuantityAmount Withdr. Value
CompanyCodeCurrency
FreeDefinedAmount1
_Reservation _Reservation
_ReservationItem I_MfgOrderOperationComponent _ReservationItem
_ReservationDocRecordType I_MfgOrderOperationComponent _ReservationDocRecordType
_MfgOrderCategory I_MfgOrderOperationComponent _MfgOrderCategory
_MfgOrderType I_MfgOrderOperationComponent _MfgOrderType
_ManufacturingOrder _ManufacturingOrder
_ManufacturingOrderSequence _ManufacturingOrderSequence
_MfgOrder I_MfgOrderOperationComponent _MfgOrder
_MfgOrderSequence I_MfgOrderOperationComponent _MfgOrderSequence
_MfgOrderOperation I_MfgOrderOperationComponent _MfgOrderOperation
_MfgOrderOperationBySemanKey I_MfgOrderOperationComponent _MfgOrderOperationBySemanKey
_MfgOrderOperationBySemKey I_MfgOrderOperationComponent _MfgOrderOperationBySemKey
_OrdInternalBillOfOperations I_MfgOrderOperationComponent _OrdInternalBillOfOperations
_OrderInternalID I_MfgOrderOperationComponent _OrderInternalID
_ProductionPlant I_MfgOrderOperationComponent _ProductionPlant
_AssemblyMRPController I_MfgOrderOperationComponent _AssemblyMRPController
_ProductionSupervisor I_MfgOrderOperationComponent _ProductionSupervisor
_RequirementType I_MfgOrderOperationComponent _RequirementType
_MaterialGroup I_MfgOrderOperationComponent _MaterialGroup
_Material I_MfgOrderOperationComponent _Material
_MaterialPlant _MaterialPlant
_Product I_MfgOrderOperationComponent _Product
_ProductPlant I_MfgOrderOperationComponent _ProductPlant
_ProductPlant2 I_MfgOrderOperationComponent _ProductPlant2
_Plant I_MfgOrderOperationComponent _Plant
_MRPController _MRPController
_MatlCompDiscontinuationType I_MfgOrderOperationComponent _MatlCompDiscontinuationType
_StorageLocation I_MfgOrderOperationComponent _StorageLocation
_Batch I_MfgOrderOperationComponent _Batch
_BatchSplitType I_MfgOrderOperationComponent _BatchSplitType
_DebitCreditCode I_MfgOrderOperationComponent _DebitCreditCode
_GoodsMovementType I_MfgOrderOperationComponent _GoodsMovementType
_InventorySpecialStockType I_MfgOrderOperationComponent _InventorySpecialStockType
_InventorySpecialStockValnType I_MfgOrderOperationComponent _InventorySpecialStockValnType
_ConsumptionPosting I_MfgOrderOperationComponent _ConsumptionPosting
_SupplyArea I_MfgOrderOperationComponent _SupplyArea
_Warehouse I_MfgOrderOperationComponent _Warehouse
_BOMExplosion I_MfgOrderOperationComponent _BOMExplosion
_BOMItemCategory I_MfgOrderOperationComponent _BOMItemCategory
_SalesOrder I_MfgOrderOperationComponent _SalesOrder
_SalesOrderItem I_MfgOrderOperationComponent _SalesOrderItem
_WBSElement I_MfgOrderOperationComponent _WBSElement
_WBSElementBasicData _WBSElementBasicData
_ChangeNumber I_MfgOrderOperationComponent _ChangeNumber
_PurchasingGroup I_MfgOrderOperationComponent _PurchasingGroup
_PurchasingInfoRecord I_MfgOrderOperationComponent _PurchasingInfoRecord
_PurchaseOrder I_MfgOrderOperationComponent _PurchaseOrder
_PurchaseOrderItem I_MfgOrderOperationComponent _PurchaseOrderItem
_PurchaseRequisition I_MfgOrderOperationComponent _PurchaseRequisition
_PurchaseRequisitionItem I_MfgOrderOperationComponent _PurchaseRequisitionItem
_PurchaseRequisitionItem2 I_MfgOrderOperationComponent _PurchaseRequisitionItem2
_CompanyCode I_MfgOrderOperationComponent _CompanyCode
_BusinessArea I_MfgOrderOperationComponent _BusinessArea
_FunctionalArea I_MfgOrderOperationComponent _FunctionalArea
_GLAccount I_MfgOrderOperationComponent _GLAccount
_AccountAssignmentCategory I_MfgOrderOperationComponent _AccountAssignmentCategory
_BaseUnit I_MfgOrderOperationComponent _BaseUnit
_EntryUnit I_MfgOrderOperationComponent _EntryUnit
_Currency I_MfgOrderOperationComponent _Currency
_LongTextLanguage I_MfgOrderOperationComponent _LongTextLanguage
_CompanyCodeCurrency _CompanyCodeCurrency
_RequirementDate _RequirementDate
_RequirementDateMonth _RequirementDateMonth
_RequirementDateYear _RequirementDateYear
_RequirementDateWeekDay _RequirementDateWeekDay
_ReportingPeriod _ReportingPeriod

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_MfgOrderOperationCompCube.
-- 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: IPPMFGORDOPCOMPC

CREATE VIEW I_MfgOrderOperationCompCube AS
SELECT
  comp.Reservation AS Reservation,
  comp.ReservationItem AS ReservationItem,
  comp.RecordType AS RecordType,
  comp.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  comp.ManufacturingOrderType AS ManufacturingOrderType,
  comp.ManufacturingOrder AS ManufacturingOrder,
  comp.ManufacturingOrderSequence AS ManufacturingOrderSequence,
  comp.ManufacturingOrderOperation AS ManufacturingOrderOperation,
  comp.ManufacturingOrderOperation_2 AS ManufacturingOrderOperation_2,
  comp.ProductionPlant AS ProductionPlant,
  comp.OrderInternalBillOfOperations AS OrderInternalBillOfOperations,
  comp.OrderIntBillOfOperationsItem AS OrderIntBillOfOperationsItem,
  comp.AssemblyMRPController AS AssemblyMRPController,
  comp.ProductionSupervisor AS ProductionSupervisor,
  comp.MatlCompRequirementDate AS MatlCompRequirementDate,
  comp.MatlCompRequirementTime AS MatlCompRequirementTime,
  repdate.ReportingDateWeekDay AS RequirementDateWeekDay,
  repdate.ReportingDateWeek AS RequirementDateWeek,
  repdate.ReportingDateMonth AS RequirementDateMonth,
  repdate.ReportingDateYear AS RequirementDateYear,
  cast(concat(repdate.ReportingDateYear, repdate.ReportingDateMonth) as vdm_yearmonth) AS RequirementDateYearMonth,
  cast(repdate.ReportingPeriod as pph_reportingperiod preserving type) AS ReportingPeriod,
  comp.ReservationItemCreationCode AS ReservationItemCreationCode,
  comp.ReservationIsFinallyIssued AS ReservationIsFinallyIssued,
  comp.MatlCompIsMarkedForDeletion AS MatlCompIsMarkedForDeletion,
  comp.MaterialComponentIsMissing AS MaterialComponentIsMissing,
  comp.IsBulkMaterialComponent AS IsBulkMaterialComponent,
  comp.MatlCompIsMarkedForBackflush AS MatlCompIsMarkedForBackflush,
  comp.MaterialCompIsAlternativeItem AS MaterialCompIsAlternativeItem,
  comp.MatlCompIsTextItem AS MatlCompIsTextItem,
  comp.MatlCompDiscontinuationType AS MatlCompDiscontinuationType,
  comp.MatlCompIsConfigurable AS MatlCompIsConfigurable,
  comp.MaterialCompIsCostRelevant AS MaterialCompIsCostRelevant,
  comp.MaterialComponentIsClassified AS MaterialComponentIsClassified,
  comp.MaterialCompIsIntraMaterial AS MaterialCompIsIntraMaterial,
  comp.UsageProbabilityPercent AS UsageProbabilityPercent,
  cast('X' as xfeld preserving type) AS OrderIsReleased,
  cast(' ' as xfeld preserving type) AS OrderIsConfirmed,
  cast(' ' as xfeld preserving type) AS OrderIsDeleted,
  cast(' ' as xfeld preserving type) AS OrderIsTechnicallyCompleted,
  cast(' ' as xfeld preserving type) AS OrderIsClosed,
  cast(' ' as xfeld preserving type) AS OrderIsMarkedForDeletion,
  comp.LongTextLanguageCode AS LongTextLanguageCode,
  comp.LongTextExists AS LongTextExists,
  comp.RequirementType AS RequirementType,
  comp.MaterialGroup AS MaterialGroup,
  comp.Material AS Material,
  comp.Plant AS Plant,
  cast(_MaterialPlant.MRPController as pph_dispo preserving type) AS MRPController,
  comp.SalesOrder AS SalesOrder,
  comp.SalesOrderItem AS SalesOrderItem,
  comp.WBSElementInternalID AS WBSElementInternalID,
  comp.WBSElementInternalID_2 AS WBSElementInternalID_2,
  comp.ProductConfiguration AS ProductConfiguration,
  comp.ChangeNumber AS ChangeNumber,
  comp.EffectivityParameterVariant AS EffectivityParameterVariant,
  comp.SortField AS SortField,
  comp.MaterialComponentSortText AS MaterialComponentSortText,
  comp.BillOfMaterialCategory AS BillOfMaterialCategory,
  comp.BillOfMaterialInternalID_2 AS BillOfMaterialInternalID,
  comp.BillOfMaterialVariant AS BillOfMaterialVariant,
  comp.BOMItem AS BillOfMaterialItemNodeNumber,
  comp.BOMItemCategory AS BillOfMaterialItemCategory,
  comp.BillOfMaterialItemNumber_2 AS BillOfMaterialItemNumber,
  comp.BOMItemDescription AS BOMItemDescription,
  comp.BOMExplosionDateID AS BOMExplosionDateID,
  comp.PurchasingInfoRecord AS PurchasingInfoRecord,
  comp.PurchasingGroup AS PurchasingGroup,
  comp.DeliveryDurationInDays AS DeliveryDurationInDays,
  comp.GoodsMovementIsAllowed AS GoodsMovementIsAllowed,
  comp.StorageLocation AS StorageLocation,
  comp.Batch AS Batch,
  comp.DebitCreditCode AS DebitCreditCode,
  comp.GoodsMovementType AS GoodsMovementType,
  comp.InventorySpecialStockType AS InventorySpecialStockType,
  comp.InventorySpecialStockValnType AS InventorySpecialStockValnType,
  comp.ConsumptionPosting AS ConsumptionPosting,
  comp.SupplyArea AS SupplyArea,
  comp.GoodsRecipientName AS GoodsRecipientName,
  comp.UnloadingPointName AS UnloadingPointName,
  comp.StockSegment AS StockSegment,
  comp.RequirementSegment AS RequirementSegment,
  comp.Warehouse AS Warehouse,
  comp.StorageType AS StorageType,
  comp.StorageBin AS StorageBin,
  comp.BusinessArea AS BusinessArea,
  comp.CompanyCode AS CompanyCode,
  comp.GLAccount AS GLAccount,
  comp.AccountAssignmentCategory AS AccountAssignmentCategory,
  comp.FunctionalArea AS FunctionalArea,
  comp.BatchSplitType AS BatchSplitType,
  comp.BatchMasterReservationItem AS BatchMasterReservationItem,
  comp.MaterialCompIsVariableSized AS MaterialCompIsVariableSized,
  cast(comp.NumberOfVariableSizeComponents as int2) AS NumberOfVariableSizeComponents,
  comp.VariableSizeItemUnit AS VariableSizeItemUnit,
  comp.VariableSizeItemQuantity AS VariableSizeItemQuantity,
  comp.VariableSizeComponentUnit AS VariableSizeComponentUnit,
  comp.VariableSizeComponentQuantity AS VariableSizeComponentQuantity,
  comp.FormulaKey AS FormulaKey,
  comp.MaterialComponentIsPhantomItem AS MaterialComponentIsPhantomItem,
  comp.OrderPathValue AS OrderPathValue,
  comp.OrderLevelValue AS OrderLevelValue,
  comp.LeadTimeOffset AS LeadTimeOffset,
  comp.OperationLeadTimeOffsetUnit AS OperationLeadTimeOffsetUnit,
  comp.OperationLeadTimeOffset AS OperationLeadTimeOffset,
  comp.QuantityIsFixed AS QuantityIsFixed,
  comp.IsNetScrap AS IsNetScrap,
  comp.ComponentScrapInPercent AS ComponentScrapInPercent,
  comp.OperationScrapInPercent AS OperationScrapInPercent,
  comp.BaseUnit AS BaseUnit,
  cast(comp.RequiredQuantity as requirementquantity preserving type) AS RequiredQuantity,
  comp.WithdrawnQuantity AS WithdrawnQuantity,
  (comp.RequiredQuantity - comp.WithdrawnQuantity) AS OpenQuantity,
  cast((comp.WithdrawnQuantity - comp.RequiredQuantity) as deviationquantity) AS DeviationQuantity,
  comp.ConfirmedAvailableQuantity AS ConfirmedAvailableQuantity,
  comp.MaterialCompOriginalQuantity AS MaterialCompOriginalQuantity,
  cast(division( cast(comp.RequiredQuantity as abap.dec(16,5)),(1 + division(comp.ComponentScrapInPercent,100,3)),3) as originaldemandquantity) AS OriginalDemandQuantity,
  comp.EntryUnit AS EntryUnit,
  comp.GoodsMovementEntryQty AS GoodsMovementEntryQty,
  comp.Currency AS Currency,
  comp.WithdrawnQuantityAmount AS WithdrawnQuantityAmount,
  cast(comp._CompanyCode.Currency as vdm_v_company_code_currency preserving type) AS CompanyCodeCurrency,
  cast(1 as usrcurr13) AS FreeDefinedAmount1,
  comp._ReservationItem AS _ReservationItem,
  comp._ReservationDocRecordType AS _ReservationDocRecordType,
  comp._MfgOrderCategory AS _MfgOrderCategory,
  comp._MfgOrderType AS _MfgOrderType,
  comp._MfgOrder AS _MfgOrder,
  comp._MfgOrderSequence AS _MfgOrderSequence,
  comp._MfgOrderOperation AS _MfgOrderOperation,
  comp._MfgOrderOperationBySemanKey AS _MfgOrderOperationBySemanKey,
  comp._MfgOrderOperationBySemKey AS _MfgOrderOperationBySemKey,
  comp._OrdInternalBillOfOperations AS _OrdInternalBillOfOperations,
  comp._OrderInternalID AS _OrderInternalID,
  comp._ProductionPlant AS _ProductionPlant,
  comp._AssemblyMRPController AS _AssemblyMRPController,
  comp._ProductionSupervisor AS _ProductionSupervisor,
  comp._RequirementType AS _RequirementType,
  comp._MaterialGroup AS _MaterialGroup,
  comp._Material AS _Material,
  comp._Product AS _Product,
  comp._ProductPlant AS _ProductPlant,
  comp._ProductPlant2 AS _ProductPlant2,
  comp._Plant AS _Plant,
  comp._MatlCompDiscontinuationType AS _MatlCompDiscontinuationType,
  comp._StorageLocation AS _StorageLocation,
  comp._Batch AS _Batch,
  comp._BatchSplitType AS _BatchSplitType,
  comp._DebitCreditCode AS _DebitCreditCode,
  comp._GoodsMovementType AS _GoodsMovementType,
  comp._InventorySpecialStockType AS _InventorySpecialStockType,
  comp._InventorySpecialStockValnType AS _InventorySpecialStockValnType,
  comp._ConsumptionPosting AS _ConsumptionPosting,
  comp._SupplyArea AS _SupplyArea,
  comp._Warehouse AS _Warehouse,
  comp._BOMExplosion AS _BOMExplosion,
  comp._BOMItemCategory AS _BOMItemCategory,
  comp._SalesOrder AS _SalesOrder,
  comp._SalesOrderItem AS _SalesOrderItem,
  comp._WBSElement AS _WBSElement,
  comp._ChangeNumber AS _ChangeNumber,
  comp._PurchasingGroup AS _PurchasingGroup,
  comp._PurchasingInfoRecord AS _PurchasingInfoRecord,
  comp._PurchaseOrder AS _PurchaseOrder,
  comp._PurchaseOrderItem AS _PurchaseOrderItem,
  comp._PurchaseRequisition AS _PurchaseRequisition,
  comp._PurchaseRequisitionItem AS _PurchaseRequisitionItem,
  comp._PurchaseRequisitionItem2 AS _PurchaseRequisitionItem2,
  comp._CompanyCode AS _CompanyCode,
  comp._BusinessArea AS _BusinessArea,
  comp._FunctionalArea AS _FunctionalArea,
  comp._GLAccount AS _GLAccount,
  comp._AccountAssignmentCategory AS _AccountAssignmentCategory,
  comp._BaseUnit AS _BaseUnit,
  comp._EntryUnit AS _EntryUnit,
  comp._Currency AS _Currency,
  comp._LongTextLanguage AS _LongTextLanguage
FROM I_MfgOrderOperationComponent AS comp
INNER JOIN P_PPH_ReportingDate3 AS repdate ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CalendarDate AS _RequirementDate ON MatlCompRequirementDate = _RequirementDate.CalendarDate  -- association [1..1]
LEFT OUTER JOIN I_CalendarMonth AS _RequirementDateMonth ON RequirementDateMonth = _RequirementDateMonth.CalendarMonth  -- association [0..1]
LEFT OUTER JOIN I_CalendarYear AS _RequirementDateYear ON RequirementDateYear = _RequirementDateYear.CalendarYear  -- association [0..1]
LEFT OUTER JOIN I_WeekDay AS _RequirementDateWeekDay ON RequirementDateWeekDay = _RequirementDateWeekDay.WeekDay  -- association [0..1]
LEFT OUTER JOIN I_ReportingPeriod AS _ReportingPeriod ON ReportingPeriod = _ReportingPeriod.ReportingPeriod  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _CompanyCodeCurrency ON CompanyCodeCurrency = _CompanyCodeCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_MRPController AS _MRPController ON Plant = _MRPController.Plant AND MRPController = _MRPController.MRPController  -- association [0..1]
LEFT OUTER JOIN I_MaterialPlant AS _MaterialPlant ON Plant = _MaterialPlant.Plant AND Material = _MaterialPlant.Material  -- association [0..1]
LEFT OUTER JOIN I_OrderReservationDocument AS _Reservation ON Reservation = _Reservation.Reservation  -- association [1..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementBasicData ON WBSElementInternalID_2 = _WBSElementBasicData.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _ManufacturingOrder ON ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_ManufacturingOrderSequence AS _ManufacturingOrderSequence ON ManufacturingOrder = _ManufacturingOrderSequence.ManufacturingOrder AND ManufacturingOrderSequence = _ManufacturingOrderSequence.ManufacturingOrderSequence  -- association [0..1]
;