I_ManufacturingOrderItem

DDL: I_MANUFACTURINGORDERITEM SQL: IMFGORDERITEM Type: view BASIC

Manufacturing Order Item

I_ManufacturingOrderItem is a Basic CDS View (Dimension) that provides data about "Manufacturing Order Item" in SAP S/4HANA. It reads from 2 data sources (I_LogisticsOrder, I_OrderItem) and exposes 154 fields with key fields ManufacturingOrder, ManufacturingOrderItem. It has 21 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_LogisticsOrder head inner
I_OrderItem item from

Associations (21)

CardinalityTargetAliasCondition
[1..1] I_MfgOrderCategory _MfgOrderCategory $projection.ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory
[1..1] I_MfgOrderType _MfgOrderType $projection.ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType
[0..1] I_MRPController _MRPController $projection.ProductionPlant = _MRPController.Plant and $projection.MRPController = _MRPController.MRPController
[0..1] I_ProductionSupervisor _ProductionSupervisor $projection.ProductionPlant = _ProductionSupervisor.Plant and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor
[1..1] I_ReservationDocumentHeader _Reservation $projection.Reservation = _Reservation.Reservation
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_ProductPlant _ProductPlant $projection.ProductionPlant = _ProductPlant.Plant and $projection.Product = _ProductPlant.Product
[0..1] I_ProductPlant _ProductPlanningPlant $projection.PlanningPlant = _ProductPlanningPlant.Plant and $projection.Product = _ProductPlanningPlant.Product
[0..1] I_ProductPlantBasic _ProductPlant2 $projection.ProductionPlant = _ProductPlant2.Plant and $projection.Product = _ProductPlant2.Product
[0..1] I_ProductPlantBasic _ProductPlanningPlant2 $projection.PlanningPlant = _ProductPlanningPlant2.Plant and $projection.Product = _ProductPlanningPlant2.Product
[0..1] I_ProductSupplyPlanning _ProductSupplyPlanning $projection.PlanningPlant = _ProductSupplyPlanning.Plant and $projection.Product = _ProductSupplyPlanning.Product
[0..1] I_ProductStorageLocation _ProductStorageLocation $projection.Material = _ProductStorageLocation.Product and $projection.ProductionPlant = _ProductStorageLocation.Plant and $projection.StorageLocation = _ProductStorageLocation.StorageLocation
[0..1] I_ProductStorageLocationBasic _ProductStorageLocation2 $projection.Material = _ProductStorageLocation2.Product and $projection.ProductionPlant = _ProductStorageLocation2.Plant and $projection.StorageLocation = _ProductStorageLocation2.StorageLocation
[0..*] I_ProductUnitsOfMeasure _ProductUnitsOfMeasure $projection.Product = _ProductUnitsOfMeasure.Product
[0..1] I_ProductMRPArea _ProductMRPArea $projection.Product = _ProductMRPArea.Product and $projection.MRPArea = _ProductMRPArea.MRPArea
[0..1] I_ProductPlantMRP _ProductPlantMRPArea $projection.Product = _ProductPlantMRPArea.Product and $projection.ProductionPlant = _ProductPlantMRPArea.Plant and $projection.MRPArea = _ProductPlantMRPArea.MRPArea
[0..1] I_Batch _Batch $projection.ProductionPlant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch
[0..1] I_Currency _Currency $projection.CompanyCodeCurrency = _Currency.Currency -- to root: Header
[1..1] I_ManufacturingOrder _MfgOrder $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder -- to child: Serial numbers
[0..*] I_MfgOrderItemSerialNumber _MfgOrderItemSrlNmbr $projection.ManufacturingOrder = _MfgOrderItemSrlNmbr.ManufacturingOrder and $projection.ManufacturingOrderItem = _MfgOrderItemSrlNmbr.ManufacturingOrderItem -- to child: Longtext
[0..*] I_MfgOrderItemLongText _MfgOrderItemLongText $projection.ManufacturingOrder = _MfgOrderItemLongText.ManufacturingOrder and $projection.ManufacturingOrderItem = _MfgOrderItemLongText.ManufacturingOrderItem

Annotations (19)

NameValueLevelField
AbapCatalog.sqlViewName IMFGORDERITEM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Analytics.dataCategory #DIMENSION view
Analytics.dataExtraction.enabled true view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.representativeKey ManufacturingOrderItem view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Manufacturing Order Item view

Fields (154)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder
KEY ManufacturingOrderItem
ManufacturingOrderCategory
ManufacturingOrderType
OrderIsReleased
IsMarkedForDeletion I_OrderItem IsMarkedForDeletion
OrderItemIsNotRelevantForMRP
Material I_OrderItem Material
Product
ProductionPlant I_OrderItem ProductionPlant
PlanningPlant I_OrderItem MRPPlant
MRPController
ProductionSupervisor
Reservation I_LogisticsOrder Reservation
ProductionVersion
MRPArea I_OrderItem MRPArea
SalesOrder I_OrderItem SalesOrder
SalesOrderItem I_OrderItem SalesOrderItem
SalesOrderScheduleLine I_OrderItem SalesOrderScheduleLine
WBSElementInternalID I_OrderItem WBSElementInternalID
WBSElementInternalID_2 I_OrderItem WBSElementInternalID_2
QuotaArrangement
QuotaArrangementItem
SettlementReservation I_OrderItem SettlementReservation
SettlementReservationItem I_OrderItem SettlementReservationItem
CoProductReservation I_OrderItem CoProductReservation
CoProductReservationItem I_OrderItem CoProductReservationItem
MaterialProcurementCategory I_OrderItem MaterialProcurementCategory
MaterialProcurementType I_OrderItem MaterialProcurementType
SerialNumberAssgmtProfile
NumberOfSerialNumbers I_OrderItem NumberOfSerialNumbers
MfgOrderItemReplnmtElmntType I_OrderItem MfgOrderItemReplnmtElmntType
ProductConfiguration
ObjectInternalID I_OrderItem ObjectInternalID
ManufacturingObject I_LogisticsOrder ObjectInternalID
QuantityDistributionKey I_OrderItem QuantityDistributionKey
EffectivityParameterVariant I_OrderItem EffectivityParameterVariant
GoodsReceiptIsExpected I_OrderItem GoodsReceiptIsExpected
GoodsReceiptIsNonValuated I_OrderItem GoodsReceiptIsNonValuated
IsCompletelyDelivered I_OrderItem IsCompletelyDelivered
MaterialGoodsReceiptDuration I_OrderItem MaterialGoodsReceiptDuration
UnderdelivTolrtdLmtRatioInPct I_OrderItem UnderdelivTolrtdLmtRatioInPct
OverdelivTolrtdLmtRatioInPct I_OrderItem OverdelivTolrtdLmtRatioInPct
UnlimitedOverdeliveryIsAllowed I_OrderItem UnlimitedOverdeliveryIsAllowed
StorageLocation I_OrderItem StorageLocation
Batch I_OrderItem Batch
InventoryValuationType I_OrderItem InventoryValuationType
InventoryValuationCategory I_OrderItem InventoryValuationCategory
InventoryUsabilityCode I_OrderItem InventoryUsabilityCode
InventorySpecialStockType I_OrderItem InventorySpecialStockType
InventorySpecialStockValnType I_OrderItem InventorySpecialStockValnType
ConsumptionPosting I_OrderItem ConsumptionPosting
GoodsRecipientName I_OrderItem GoodsRecipientName
UnloadingPointName I_OrderItem UnloadingPointName
StockSegment I_OrderItem StockSegment
MfgOrderPlannedStartDate
MfgOrderPlannedStartTime
MfgOrderScheduledStartDate
MfgOrderScheduledStartTime
MfgOrderActualStartDate
MfgOrderActualStartTime
MfgOrderPlannedEndDate
MfgOrderPlannedEndTime
MfgOrderScheduledEndDate
MfgOrderScheduledEndTime
MfgOrderConfirmedEndDate
MfgOrderConfirmedEndTime
MfgOrderActualEndDate
MfgOrderScheduledReleaseDate
MfgOrderActualReleaseDate
MfgOrderItemPlannedEndDate
MfgOrderItemScheduledEndDate
MfgOrderItemPlndDeliveryDate I_OrderItem PlannedDeliveryDate
MfgOrderItemActualDeliveryDate I_OrderItem ActualDeliveryDate
MfgOrderItemTotalCmtmtDate I_OrderItem TotalCommitmentDate
ProductionUnit I_OrderItem ProductionUnit
MfgOrderItemPlannedTotalQty
MfgOrderItemPlannedScrapQty
MfgOrderItemPlannedYieldQty
MfgOrderItemGoodsReceiptQty
MfgOrderItemActualDeviationQty
MfgOrderItemOpenYieldQty
MfgOrderConfirmedYieldQty
MfgOrderConfirmedScrapQty
MfgOrderConfirmedReworkQty
MfgOrderConfirmedTotalQty
MfgOrderPlannedTotalQty
MfgOrderPlannedScrapQty
PlannedOrder I_OrderItem PlannedOrder
PlndOrderPlannedStartDate
PlannedOrderOpeningDate
BaseUnit I_OrderItem BaseUnit
PlndOrderPlannedTotalQty
PlndOrderPlannedScrapQty
CompanyCode I_LogisticsOrder CompanyCode
BusinessArea I_OrderItem BusinessArea
AccountAssignmentCategory I_OrderItem AccountAssignmentCategory
CompanyCodeCurrency I_LogisticsOrder Currency
GoodsReceiptAmountInCoCodeCrcy I_OrderItem GoodsReceiptAmountInCoCodeCrcy
MasterProductionOrder I_LogisticsOrder MasterProductionOrder
_MfgOrder _MfgOrder
_MfgOrderItemSrlNmbr _MfgOrderItemSrlNmbr
_MfgOrderItemLongText _MfgOrderItemLongText
_MfgOrderCategory _MfgOrderCategory
_MfgOrderType _MfgOrderType
_ProductionPlant I_OrderItem _ProductionPlant
_ProductionSupervisor _ProductionSupervisor
_MRPController _MRPController
_MRPPlant I_OrderItem _MRPPlant
_MRPArea I_OrderItem _MRPArea
_PlannedOrder I_OrderItem _PlannedOrder
_Material I_OrderItem _Material
_Product _Product
_ProductPlant _ProductPlant
_ProductPlant2 _ProductPlant2
_ProductPlanningPlant _ProductPlanningPlant
_ProductPlanningPlant2 _ProductPlanningPlant2
_ProductStorageLocation _ProductStorageLocation
_ProductStorageLocation2 _ProductStorageLocation2
_ProductSupplyPlanning _ProductSupplyPlanning
_ProductMRPArea _ProductMRPArea
_ProductPlantMRPArea _ProductPlantMRPArea
_ProductUnitsOfMeasure _ProductUnitsOfMeasure
_BaseUnit I_OrderItem _BaseUnit
_ProductionUnit I_OrderItem _ProductionUnit
_ProductionVersion I_OrderItem _ProductionVersion
_Reservation _Reservation
_MatlProcurementCategory I_OrderItem _MatlProcurementCategory
_MatlProcurementType I_OrderItem _MatlProcurementType
_DeliveryCompletedIndicator I_OrderItem _DeliveryCompletedIndicator
_StorageLocation I_OrderItem _StorageLocation
_Batch _Batch
_InventorySpecialStockType I_OrderItem _InventorySpecialStockType
_InventorySpecialStockValnType I_OrderItem _InventorySpecialStockValnType
_InventoryValuationType I_OrderItem _InventoryValuationType
_InventoryUsabilityCode I_OrderItem _InventoryUsabilityCode
_SerialNumberProfile I_OrderItem _SerialNumberProfile
_ConsumptionPosting I_OrderItem _ConsumptionPosting
_SalesOrder I_OrderItem _SalesOrder
_SalesOrderItem I_OrderItem _SalesOrderItem
_SalesOrderScheduleLine I_OrderItem _SalesOrderScheduleLine
_WBSElement I_OrderItem _WBSElement
_WBSElementBasicData I_OrderItem _WBSElementBasicData
_WBSElementBasicData2 I_OrderItem _WBSElementBasicData2
_QuotaArrangement I_OrderItem _QuotaArrangement
_QuotaArrangementItem I_OrderItem _QuotaArrangementItem
_SettlementReservation I_OrderItem _SettlementReservation
_SettlementReservationItem I_OrderItem _SettlementReservationItem
_CoProductReservation I_OrderItem _CoProductReservation
_CoProductReservationItem I_OrderItem _CoProductReservationItem
_BusinessArea I_OrderItem _BusinessArea
_AccountAssignmentCategory I_OrderItem _AccountAssignmentCategory
_CompanyCode I_LogisticsOrder _CompanyCode
_Currency _Currency
@AbapCatalog.sqlViewName: 'IMFGORDERITEM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_MRPController', '_ProductionSupervisor']
@Analytics.dataCategory: #DIMENSION
@Analytics.dataExtraction: { enabled: true,
                             delta.changeDataCapture:
                                    { mapping:
                                      [ { role: #MAIN,
                                          table: 'afpo',
                                          tableElement: ['aufnr'             , 'posnr'],
                                          viewElement:  ['ManufacturingOrder', 'ManufacturingOrderItem']
                                        },
                                        { role: #LEFT_OUTER_TO_ONE_JOIN,
                                          table: 'afko',
                                          tableElement: ['aufnr'],
                                          viewElement:  ['ManufacturingOrder']
                                        } ] } }
@Analytics.internalName: #LOCAL
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@Metadata.allowExtensions: true
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #ANALYTICAL_DIMENSION
@ObjectModel.supportedCapabilities: [#ANALYTICAL_DIMENSION, #CDS_MODELING_ASSOCIATION_TARGET, #CDS_MODELING_DATA_SOURCE, #EXTRACTION_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.representativeKey: 'ManufacturingOrderItem'
@ObjectModel.semanticKey: ['ManufacturingOrder', 'ManufacturingOrderItem']
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #BASIC
@EndUserText.label: 'Manufacturing Order Item'

/*+[hideWarning] { "IDS" : [ "CALCULATED_FIELD_CHECK" ]  } */
define view I_ManufacturingOrderItem
  as select from I_OrderItem      as item
    inner join   I_LogisticsOrder as head on head.OrderID = item.OrderID

  association [1..1] to I_MfgOrderCategory            as _MfgOrderCategory        on  $projection.ManufacturingOrderCategory = _MfgOrderCategory.ManufacturingOrderCategory
  association [1..1] to I_MfgOrderType                as _MfgOrderType            on  $projection.ManufacturingOrderType = _MfgOrderType.ManufacturingOrderType
  association [0..1] to I_MRPController               as _MRPController           on  $projection.ProductionPlant = _MRPController.Plant
                                                                                  and $projection.MRPController   = _MRPController.MRPController
  association [0..1] to I_ProductionSupervisor        as _ProductionSupervisor    on  $projection.ProductionPlant      = _ProductionSupervisor.Plant
                                                                                  and $projection.ProductionSupervisor = _ProductionSupervisor.ProductionSupervisor
  association [1..1] to I_ReservationDocumentHeader   as _Reservation             on  $projection.Reservation = _Reservation.Reservation
  association [0..1] to I_Product                     as _Product                 on  $projection.Product = _Product.Product
  association [0..1] to I_ProductPlant                as _ProductPlant            on  $projection.ProductionPlant = _ProductPlant.Plant
                                                                                  and $projection.Product         = _ProductPlant.Product
  association [0..1] to I_ProductPlant                as _ProductPlanningPlant    on  $projection.PlanningPlant = _ProductPlanningPlant.Plant
                                                                                  and $projection.Product       = _ProductPlanningPlant.Product
  association [0..1] to I_ProductPlantBasic           as _ProductPlant2           on  $projection.ProductionPlant = _ProductPlant2.Plant
                                                                                  and $projection.Product         = _ProductPlant2.Product
  association [0..1] to I_ProductPlantBasic           as _ProductPlanningPlant2   on  $projection.PlanningPlant = _ProductPlanningPlant2.Plant
                                                                                  and $projection.Product       = _ProductPlanningPlant2.Product                                                
  association [0..1] to I_ProductSupplyPlanning       as _ProductSupplyPlanning   on  $projection.PlanningPlant = _ProductSupplyPlanning.Plant
                                                                                  and $projection.Product       = _ProductSupplyPlanning.Product
  association [0..1] to I_ProductStorageLocation      as _ProductStorageLocation  on  $projection.Material        = _ProductStorageLocation.Product
                                                                                  and $projection.ProductionPlant = _ProductStorageLocation.Plant
                                                                                  and $projection.StorageLocation = _ProductStorageLocation.StorageLocation
  association [0..1] to I_ProductStorageLocationBasic as _ProductStorageLocation2 on  $projection.Material        = _ProductStorageLocation2.Product
                                                                                  and $projection.ProductionPlant = _ProductStorageLocation2.Plant
                                                                                  and $projection.StorageLocation = _ProductStorageLocation2.StorageLocation
  association [0..*] to I_ProductUnitsOfMeasure       as _ProductUnitsOfMeasure   on  $projection.Product = _ProductUnitsOfMeasure.Product
  association [0..1] to I_ProductMRPArea              as _ProductMRPArea          on  $projection.Product         = _ProductMRPArea.Product
                                                                                  and $projection.MRPArea         = _ProductMRPArea.MRPArea
  association [0..1] to I_ProductPlantMRP             as _ProductPlantMRPArea     on  $projection.Product         = _ProductPlantMRPArea.Product
                                                                                  and $projection.ProductionPlant = _ProductPlantMRPArea.Plant
                                                                                  and $projection.MRPArea         = _ProductPlantMRPArea.MRPArea
  association [0..1] to I_Batch                       as _Batch                   on  $projection.ProductionPlant = _Batch.Plant
                                                                                  and $projection.Product         = _Batch.Material
                                                                                  and $projection.Batch           = _Batch.Batch
  association [0..1] to I_Currency                    as _Currency                on  $projection.CompanyCodeCurrency = _Currency.Currency
 -- to root:  Header
  association [1..1] to I_ManufacturingOrder          as _MfgOrder                on  $projection.ManufacturingOrder = _MfgOrder.ManufacturingOrder
  -- to child: Serial numbers
  association [0..*] to I_MfgOrderItemSerialNumber    as _MfgOrderItemSrlNmbr     on  $projection.ManufacturingOrder     = _MfgOrderItemSrlNmbr.ManufacturingOrder
                                                                                  and $projection.ManufacturingOrderItem = _MfgOrderItemSrlNmbr.ManufacturingOrderItem
  -- to child: Longtext
  association [0..*] to I_MfgOrderItemLongText        as _MfgOrderItemLongText    on  $projection.ManufacturingOrder     = _MfgOrderItemLongText.ManufacturingOrder
                                                                                  and $projection.ManufacturingOrderItem = _MfgOrderItemLongText.ManufacturingOrderItem
{
      // Key

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MfgOrderStdVH', element: 'ManufacturingOrder' } } ]
      @ObjectModel.foreignKey.association: '_MfgOrder'
  key cast(item.OrderID as manufacturingorder preserving type)               as ManufacturingOrder,
  key cast(item.OrderItem as manufacturingorderitem preserving type)         as ManufacturingOrderItem,

      // Category and Type

      @ObjectModel.foreignKey.association: '_MfgOrderCategory'
      cast(item.OrderCategory as manufacturingordercategory preserving type) as ManufacturingOrderCategory,
      @ObjectModel.foreignKey.association: '_MfgOrderType'
      cast(item.OrderType as manufacturingordertype preserving type)         as ManufacturingOrderType,

      // Attributes

      cast(item.OrderIsReleased as orderisreleased preserving type)          as OrderIsReleased,
      item.IsMarkedForDeletion,
      cast(item.OrderItemIsNotRelevantForMRP as vdm_dnrel preserving type)   as OrderItemIsNotRelevantForMRP,

      // Assignments

      @ObjectModel.foreignKey.association: '_Material'
      item.Material,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductStdVH', element: 'Product' } } ]
      @ObjectModel.foreignKey.association: '_Product'
      cast(item.Material as productnumber preserving type)                   as Product,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_ProductionPlant'
      item.ProductionPlant,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_MRPPlant'
      item.MRPPlant                                                          as PlanningPlant,
      @ObjectModel.foreignKey.association: '_MRPController'
      cast(head.MRPController        as pph_dispo preserving type)           as MRPController,
      @ObjectModel.foreignKey.association: '_ProductionSupervisor'
      cast(head.ProductionSupervisor as pph_fevor preserving type)           as ProductionSupervisor,
      @ObjectModel.foreignKey.association: '_Reservation'
      head.Reservation,
--    @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductionVersionStdVH', element: 'ProductionVersion' } } ]
      @ObjectModel.foreignKey.association: '_ProductionVersion'
      item.ProductionVersion,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MRPAreaVH', element: 'MRPArea' } } ]
      @ObjectModel.foreignKey.association: '_MRPArea'
      item.MRPArea,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_SalesOrderStdVH', element: 'SalesOrder' } } ]
      @ObjectModel.foreignKey.association: '_SalesOrder'
      item.SalesOrder,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_SalesOrderItemStdVH', element: 'SalesOrderItem' } } ]
      @ObjectModel.foreignKey.association: '_SalesOrderItem'
      item.SalesOrderItem,
      @ObjectModel.foreignKey.association: '_SalesOrderScheduleLine'   
      item.SalesOrderScheduleLine,     
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: 'WBSElementInternalID_2'
      @ObjectModel.foreignKey.association: '_WBSElement'
      item.WBSElementInternalID,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_WBSElementBasicDataStdVH', element: 'WBSElementInternalID' } } ]
      @ObjectModel.foreignKey.association: '_WBSElementBasicData2'
      item.WBSElementInternalID_2,
--    @ObjectModel.foreignKey.association: '_QuotaArrangement'
      item.QuotaArrangement,
--    @ObjectModel.foreignKey.association: '_QuotaArrangementItem'
      item.QuotaArrangementItem,
      @ObjectModel.foreignKey.association: '_SettlementReservation'
      item.SettlementReservation,
      @ObjectModel.foreignKey.association: '_SettlementReservationItem'
      item.SettlementReservationItem,
      @ObjectModel.foreignKey.association: '_CoProductReservation'
      item.CoProductReservation,
      @ObjectModel.foreignKey.association: '_CoProductReservationItem'
      item.CoProductReservationItem,
      @ObjectModel.foreignKey.association: '_MatlProcurementCategory'
      item.MaterialProcurementCategory,
      @ObjectModel.foreignKey.association: '_MatlProcurementType'
      item.MaterialProcurementType,
--    @ObjectModel.foreignKey.association: '_SerialNumberProfile'
      item.SerialNumberAssgmtProfile,
      item.NumberOfSerialNumbers,
      item.MfgOrderItemReplnmtElmntType,
      cast(item.ProductConfiguration as product_configuration preserving type) as ProductConfiguration,
      item.ObjectInternalID,
      head.ObjectInternalID                                                    as ManufacturingObject,
      item.QuantityDistributionKey,
      item.EffectivityParameterVariant,

      // Goods Receipt data

      item.GoodsReceiptIsExpected,
      item.GoodsReceiptIsNonValuated,
      @ObjectModel.foreignKey.association: '_DeliveryCompletedIndicator'
      item.IsCompletelyDelivered,
      item.MaterialGoodsReceiptDuration,
      item.UnderdelivTolrtdLmtRatioInPct,
      item.OverdelivTolrtdLmtRatioInPct,
      item.UnlimitedOverdeliveryIsAllowed,
      @ObjectModel.foreignKey.association: '_StorageLocation'
      item.StorageLocation,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BatchStdVH', element: 'Batch' } } ]
      item.Batch,
      @ObjectModel.foreignKey.association: '_InventoryValuationType'
      item.InventoryValuationType,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductValuationCategoryVH', element: 'InventoryValuationCategory' } } ]
      item.InventoryValuationCategory,
      @ObjectModel.foreignKey.association: '_InventoryUsabilityCode'
      item.InventoryUsabilityCode,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockType'
      item.InventorySpecialStockType,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockValnType'
      item.InventorySpecialStockValnType,
      @ObjectModel.foreignKey.association: '_ConsumptionPosting'
      item.ConsumptionPosting,
      @Semantics.text: true
      item.GoodsRecipientName,
      @Semantics.text: true
      item.UnloadingPointName,
      item.StockSegment,

      // Order Header Dates and Times

      cast(head.PlannedStartDate as mfgorderplannedstartdate preserving type)            as MfgOrderPlannedStartDate,
      cast(head.PlannedStartTime as mfgorderplannedstarttime preserving type)            as MfgOrderPlannedStartTime,
      cast(head.ScheduledBasicStartDate as mfgorderscheduledstartdate preserving type)   as MfgOrderScheduledStartDate,
      cast(head.ScheduledBasicStartTime as mfgorderscheduledstarttime preserving type)   as MfgOrderScheduledStartTime,
      cast(head.ActualStartDate as mfgorderactualstartdate preserving type)              as MfgOrderActualStartDate,
      cast(head.ActualStartTime as mfgorderactualstarttime preserving type)              as MfgOrderActualStartTime,
      cast(head.PlannedEndDate as mfgorderplannedenddate preserving type)                as MfgOrderPlannedEndDate,
      cast(head.PlannedEndTime as mfgorderplannedendtime preserving type)                as MfgOrderPlannedEndTime,
      cast(head.ScheduledBasicEndDate as mfgorderscheduledenddate preserving type)       as MfgOrderScheduledEndDate,
      cast(head.ScheduledBasicEndTime as mfgorderscheduledendtime preserving type)       as MfgOrderScheduledEndTime,
      cast(head.ConfirmedEndDate as mfgorderconfirmedenddate preserving type)            as MfgOrderConfirmedEndDate,
      cast(head.ConfirmedEndTime as mfgorderconfirmedendtime preserving type)            as MfgOrderConfirmedEndTime,
      cast(head.ActualEndDate as mfgorderactualenddate preserving type)                  as MfgOrderActualEndDate,
      cast(head.ScheduledReleaseDate as mfgorderscheduledreleasedate preserving type)    as MfgOrderScheduledReleaseDate,
      cast(head.ActualReleasedDate as mfgorderactualreleasedate preserving type)         as MfgOrderActualReleaseDate,

      // Order Item Dates

      cast(item.PlannedEndDate as mfgorderitemplannedenddate preserving type)            as MfgOrderItemPlannedEndDate,
      cast(item.ScheduledBasicEndDate as mfgorderitemscheduledenddate preserving type)   as MfgOrderItemScheduledEndDate,
      item.PlannedDeliveryDate                                                           as MfgOrderItemPlndDeliveryDate,
      item.ActualDeliveryDate                                                            as MfgOrderItemActualDeliveryDate,
      item.TotalCommitmentDate                                                           as MfgOrderItemTotalCmtmtDate,

      // Item Quantities and UoM

      @Semantics.unitOfMeasure: true
      item.ProductionUnit,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(item.ItemQuantity as co_psmng preserving type)                                as MfgOrderItemPlannedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(item.MfgOrderItemPlannedScrapQty as co_psamg preserving type)                 as MfgOrderItemPlannedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(item.ItemQuantity - item.MfgOrderItemPlannedScrapQty as plannedyieldquantity) as MfgOrderItemPlannedYieldQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(item.MfgOrderItemGoodsReceiptQty as co_wemng preserving type)                 as MfgOrderItemGoodsReceiptQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(item.MfgOrderItemActualDeviationQty as co_iamng preserving type)              as MfgOrderItemActualDeviationQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(item.MfgOrderItemOpenYieldQty as openyieldquantity preserving type)           as MfgOrderItemOpenYieldQty,

      // Header Quantities and UoM

      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(head.OrderConfirmedYieldQty as co_igmng preserving type)                      as MfgOrderConfirmedYieldQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(head.OrderConfirmedScrapQty as co_iasmg preserving type)                      as MfgOrderConfirmedScrapQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(head.MfgOrderConfirmedReworkQty as rmnga preserving type)                     as MfgOrderConfirmedReworkQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(head.OrderConfirmedYieldQty + head.OrderConfirmedScrapQty + head.MfgOrderConfirmedReworkQty as pph_tmnga)  
                                                                                         as MfgOrderConfirmedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(head.OrderPlannedTotalQty as gamng preserving type)                           as MfgOrderPlannedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'ProductionUnit'
      @Aggregation.default: #SUM
      cast(head.OrderPlannedScrapQty as gasmg preserving type)                           as MfgOrderPlannedScrapQty,

      // Planned Order data

      @ObjectModel.foreignKey.association: '_PlannedOrder'
      item.PlannedOrder,
      cast(item.PlndOrderPlannedStartDate as vdm_strmp preserving type)                  as PlndOrderPlannedStartDate,
      cast(item.PlannedOrderOpeningDate as vdm_etrmp preserving type)                    as PlannedOrderOpeningDate,
      @Semantics.unitOfMeasure: true
      item.BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      cast(item.OrderPlannedTotalQty as vdm_pgmng preserving type)                       as PlndOrderPlannedTotalQty,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      cast(item.OrderPlannedScrapQty as vdm_pamng preserving type)                       as PlndOrderPlannedScrapQty,

      // Assignments FI/CO

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CompanyCodeStdVH', element: 'CompanyCode' } } ]
      @ObjectModel.foreignKey.association: '_CompanyCode'
      head.CompanyCode,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BusinessAreaStdVH', element: 'BusinessArea' } } ]
      @ObjectModel.foreignKey.association: '_BusinessArea'
      item.BusinessArea,
      @ObjectModel.foreignKey.association: '_AccountAssignmentCategory'
      item.AccountAssignmentCategory,

      // Amount and Currency

      @Semantics.currencyCode: true
      head.Currency as CompanyCodeCurrency,
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      @Aggregation.default: #SUM
      item.GoodsReceiptAmountInCoCodeCrcy,

      // Fashion fields

      head.MasterProductionOrder,

      // Associations

      @ObjectModel.association.type: [#TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT]
      _MfgOrder,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _MfgOrderItemSrlNmbr,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]  // available only for co-products

      _MfgOrderItemLongText,
      _MfgOrderCategory,
      _MfgOrderType,
      item._ProductionPlant,
      _ProductionSupervisor,
      _MRPController,
      item._MRPPlant,
      item._MRPArea,
      item._PlannedOrder,
      item._Material,
      _Product,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_ProductPlant2'
      _ProductPlant,
      _ProductPlant2,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_ProductPlanningPlant2'
      _ProductPlanningPlant,
      _ProductPlanningPlant2,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: '_ProductStorageLocation2'
      _ProductStorageLocation,
      _ProductStorageLocation2,
      _ProductSupplyPlanning,
      _ProductMRPArea,
      _ProductPlantMRPArea,
      _ProductUnitsOfMeasure,
      item._BaseUnit,
      item._ProductionUnit,
      item._ProductionVersion,
      _Reservation,
      item._MatlProcurementCategory,
      item._MatlProcurementType,
      item._DeliveryCompletedIndicator,
      item._StorageLocation,
      _Batch,
      item._InventorySpecialStockType,
      item._InventorySpecialStockValnType,
      item._InventoryValuationType,
      item._InventoryUsabilityCode,
      item._SerialNumberProfile,
      item._ConsumptionPosting,
      item._SalesOrder,
      item._SalesOrderItem,
      item._SalesOrderScheduleLine,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_WBSElementBasicData2'  
      item._WBSElement,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_WBSElementBasicData2'  
      item._WBSElementBasicData,
      item._WBSElementBasicData2,
      item._QuotaArrangement,
      item._QuotaArrangementItem,
      item._SettlementReservation,
      item._SettlementReservationItem,
      item._CoProductReservation,
      item._CoProductReservationItem,
      item._BusinessArea,
      item._AccountAssignmentCategory,
      head._CompanyCode,
      _Currency
}
where
  (    item.OrderCategory = '10'
    or item.OrderCategory = '40'
  );
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDER",
"I_ORDERITEM"
],
"ASSOCIATED":
[
"I_ACCOUNTASSIGNMENTCATEGORY",
"I_BATCH",
"I_BUSINESSAREA",
"I_COMPANYCODE",
"I_CONSUMPTIONPOSTING",
"I_CURRENCY",
"I_INDICATOR",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_INVENTORYVALUATIONTYPE",
"I_INVTRYSPECIALSTOCKVALNTYPE",
"I_MANUFACTURINGORDER",
"I_MATERIAL",
"I_MATLPROCUREMENTCATEGORY",
"I_MATLPROCUREMENTTYPE",
"I_MFGORDERCATEGORY",
"I_MFGORDERITEMLONGTEXT",
"I_MFGORDERITEMSERIALNUMBER",
"I_MFGORDERTYPE",
"I_MRPAREA",
"I_MRPCONTROLLER",
"I_PLANNEDORDER",
"I_PLANT",
"I_PRODUCT",
"I_PRODUCTIONSUPERVISOR",
"I_PRODUCTIONVERSION",
"I_PRODUCTMRPAREA",
"I_PRODUCTPLANT",
"I_PRODUCTPLANTBASIC",
"I_PRODUCTPLANTMRP",
"I_PRODUCTSTORAGELOCATION",
"I_PRODUCTSTORAGELOCATIONBASIC",
"I_PRODUCTSUPPLYPLANNING",
"I_PRODUCTUNITSOFMEASURE",
"I_PURGQUOTAARRGMT",
"I_PURGQUOTAARRGMTITEM",
"I_RESERVATIONDOCUMENTHEADER",
"I_RESERVATIONDOCUMENTITEM",
"I_SALESORDER",
"I_SALESORDERITEM",
"I_SALESORDERSCHEDULELINE",
"I_SERIALNUMBERPROFILE",
"I_STOCKTYPE_2",
"I_STORAGELOCATION",
"I_UNITOFMEASURE",
"I_WBSELEMENTBASICDATA",
"I_WBSELEMENTBYINTERNALKEY"
],
"BASE":
[
"I_LOGISTICSORDER",
"I_ORDERITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/