I_MfgOrderComponentWithStatus

DDL: I_MFGORDERCOMPONENTWITHSTATUS Type: view_entity COMPOSITE

Manufacturing Order Component with Status

I_MfgOrderComponentWithStatus is a Composite CDS View (Fact) that provides data about "Manufacturing Order Component with Status" in SAP S/4HANA. It reads from 2 data sources (I_ManufacturingOrderComponent, P_OrderOpCompStatusBasicAggrgn) and exposes 229 fields with key fields Reservation, ReservationItem, ReservationRecordType. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_ManufacturingOrderComponent comp from
P_OrderOpCompStatusBasicAggrgn stat inner

Associations (3)

CardinalityTargetAliasCondition
[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] E_ReservationDocumentItem _Extension $projection.Reservation = _Extension.Reservation and $projection.ReservationItem = _Extension.ReservationItem and $projection.ReservationRecordType = _Extension.RecordType

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #FACT view
Analytics.technicalName IMFGORDCOMPWSTS view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Manufacturing Order Component with Status view

Fields (229)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_ManufacturingOrderComponent Reservation
KEY ReservationItem I_ManufacturingOrderComponent ReservationItem
KEY ReservationRecordType I_ManufacturingOrderComponent ReservationRecordType
MaterialGroup
Material
Plant I_ManufacturingOrderComponent Plant
ManufacturingOrderCategory I_ManufacturingOrderComponent ManufacturingOrderCategory
ManufacturingOrderType
ManufacturingOrder I_ManufacturingOrderComponent ManufacturingOrder
ManufacturingOrderSequence
MfgOrderSequenceCategory
ManufacturingOrderOperation I_ManufacturingOrderComponent ManufacturingOrderOperation
ProductionPlant I_ManufacturingOrderComponent ProductionPlant
OrderInternalID I_ManufacturingOrderComponent OrderInternalID
OrderOperationInternalID I_ManufacturingOrderComponent OrderOperationInternalID
AssemblyMRPController I_ManufacturingOrderComponent AssemblyMRPController
ProductionSupervisor I_ManufacturingOrderComponent ProductionSupervisor
ReservationItemCreationCode I_ManufacturingOrderComponent ReservationItemCreationCode
ReservationIsFinallyIssued I_ManufacturingOrderComponent ReservationIsFinallyIssued
MatlCompIsMarkedForDeletion I_ManufacturingOrderComponent MatlCompIsMarkedForDeletion
MaterialComponentIsMissing I_ManufacturingOrderComponent MaterialComponentIsMissing
IsBulkMaterialComponent I_ManufacturingOrderComponent IsBulkMaterialComponent
MatlCompIsMarkedForBackflush I_ManufacturingOrderComponent MatlCompIsMarkedForBackflush
MatlCompIsTextItem I_ManufacturingOrderComponent MatlCompIsTextItem
MaterialPlanningRelevance I_ManufacturingOrderComponent MaterialPlanningRelevance
MatlCompIsConfigurable I_ManufacturingOrderComponent MatlCompIsConfigurable
MaterialComponentIsClassified I_ManufacturingOrderComponent MaterialComponentIsClassified
MaterialCompIsIntraMaterial I_ManufacturingOrderComponent MaterialCompIsIntraMaterial
MaterialIsDirectlyProduced I_ManufacturingOrderComponent MaterialIsDirectlyProduced
MaterialIsDirectlyProcured I_ManufacturingOrderComponent MaterialIsDirectlyProcured
MaterialComponentIsCreated P_OrderOpCompStatusBasicAggrgn MaterialComponentIsCreated
MaterialComponentIsReleased P_OrderOpCompStatusBasicAggrgn MaterialComponentIsReleased
MaterialComponentIsPrinted P_OrderOpCompStatusBasicAggrgn MaterialComponentIsPrinted
MaterialComponentIsDeleted P_OrderOpCompStatusBasicAggrgn MaterialComponentIsDeleted
MatlCompIsCreatedByOrderSplit P_OrderOpCompStatusBasicAggrgn MatlCompIsCreatedByOrderSplit
MaterialComponentText I_ManufacturingOrderComponent MaterialComponentText
MaterialComponentSecondText I_ManufacturingOrderComponent MaterialComponentSecondText
MaterialComponentHasLongText I_ManufacturingOrderComponent MaterialComponentHasLongText
LongTextLanguage I_ManufacturingOrderComponent LongTextLanguage
MatlCompRequirementDate I_ManufacturingOrderComponent MatlCompRequirementDate
MatlCompRequirementTime I_ManufacturingOrderComponent MatlCompRequirementTime
LatestRequirementDate I_ManufacturingOrderComponent LatestRequirementDate
RequirementType I_ManufacturingOrderComponent RequirementType
SalesOrder I_ManufacturingOrderComponent SalesOrder
SalesOrderItem I_ManufacturingOrderComponent SalesOrderItem
WBSElementInternalID I_ManufacturingOrderComponent WBSElementInternalID
MRPController
ProductConfiguration I_ManufacturingOrderComponent ProductConfiguration
ChangeNumber I_ManufacturingOrderComponent ChangeNumber
MaterialRevisionLevel I_ManufacturingOrderComponent MaterialRevisionLevel
EffectivityParameterVariant I_ManufacturingOrderComponent EffectivityParameterVariant
MatlCompFreeDefinedAttribute I_ManufacturingOrderComponent MatlCompFreeDefinedAttribute
MaterialComponentSortText I_ManufacturingOrderComponent MaterialComponentSortText
ObjectInternalID I_ManufacturingOrderComponent ObjectInternalID
BillOfMaterialCategory I_ManufacturingOrderComponent BillOfMaterialCategory
BillOfMaterialInternalID I_ManufacturingOrderComponent BillOfMaterialInternalID
BillOfMaterialVariantUsage I_ManufacturingOrderComponent BillOfMaterialVariantUsage
BillOfMaterialVariant I_ManufacturingOrderComponent BillOfMaterialVariant
BillOfMaterialItemNodeNumber I_ManufacturingOrderComponent BillOfMaterialItemNodeNumber
BillOfMaterialVersion I_ManufacturingOrderComponent BillOfMaterialVersion
BOMItemInternalChangeCount I_ManufacturingOrderComponent BOMItemInternalChangeCount
InheritedBOMItemNode I_ManufacturingOrderComponent InheritedBOMItemNode
BillOfMaterialItemCategory I_ManufacturingOrderComponent BillOfMaterialItemCategory
BillOfMaterialItemNumber I_ManufacturingOrderComponent BillOfMaterialItemNumber
BOMExplosionDateID I_ManufacturingOrderComponent BOMExplosionDateID
PurchasingInfoRecord
PurchasingGroup I_ManufacturingOrderComponent PurchasingGroup
PurchaseRequisition
PurchaseRequisitionItem
PurchaseOrder
PurchaseOrderItem
PurchaseOrderScheduleLine I_ManufacturingOrderComponent PurchaseOrderScheduleLine
Supplier I_ManufacturingOrderComponent Supplier
DeliveryDurationInDays I_ManufacturingOrderComponent DeliveryDurationInDays
MaterialGoodsReceiptDuration I_ManufacturingOrderComponent MaterialGoodsReceiptDuration
ExternalProcessingPrice
NumberOfOperationPriceUnits I_ManufacturingOrderComponent NumberOfOperationPriceUnits
GoodsMovementIsAllowed I_ManufacturingOrderComponent GoodsMovementIsAllowed
StorageLocation I_ManufacturingOrderComponent StorageLocation
DebitCreditCode I_ManufacturingOrderComponent DebitCreditCode
GoodsMovementType I_ManufacturingOrderComponent GoodsMovementType
InventorySpecialStockType I_ManufacturingOrderComponent InventorySpecialStockType
InventorySpecialStockValnType I_ManufacturingOrderComponent InventorySpecialStockValnType
ConsumptionPosting I_ManufacturingOrderComponent ConsumptionPosting
SupplyArea I_ManufacturingOrderComponent SupplyArea
GoodsRecipientName I_ManufacturingOrderComponent GoodsRecipientName
UnloadingPointName I_ManufacturingOrderComponent UnloadingPointName
MaterialCompCostingRelevancy I_ManufacturingOrderComponent MaterialCompCostingRelevancy
BusinessArea I_ManufacturingOrderComponent BusinessArea
CompanyCode
GLAccount I_ManufacturingOrderComponent GLAccount
FunctionalArea I_ManufacturingOrderComponent FunctionalArea
ControllingArea I_ManufacturingOrderComponent ControllingArea
AccountAssignmentCategory I_ManufacturingOrderComponent AccountAssignmentCategory
EarmarkedFundsDocument I_ManufacturingOrderComponent EarmarkedFundsDocument
EarmarkedFundsDocumentItem
Batch
BatchEntryDeterminationCode
BatchSplitType I_ManufacturingOrderComponent BatchSplitType
BatchMasterReservationItem I_ManufacturingOrderComponent BatchMasterReservationItem
BatchClassification I_ManufacturingOrderComponent BatchClassification
MaterialCompIsVariableSized I_ManufacturingOrderComponent MaterialCompIsVariableSized
VariableSizeItemUnit I_ManufacturingOrderComponent VariableSizeItemUnit
VariableSizeItemQuantity I_ManufacturingOrderComponent VariableSizeItemQuantity
VariableSizeComponentUnit I_ManufacturingOrderComponent VariableSizeComponentUnit
VariableSizeComponentQuantity I_ManufacturingOrderComponent VariableSizeComponentQuantity
VariableSizeDimensionUnit I_ManufacturingOrderComponent VariableSizeDimensionUnit
VariableSizeDimension1 I_ManufacturingOrderComponent VariableSizeDimension1
VariableSizeDimension2 I_ManufacturingOrderComponent VariableSizeDimension2
VariableSizeDimension3 I_ManufacturingOrderComponent VariableSizeDimension3
VariableSizeCompFormulaKey I_ManufacturingOrderComponent VariableSizeCompFormulaKey
MaterialCompIsAlternativeItem I_ManufacturingOrderComponent MaterialCompIsAlternativeItem
AlternativeItemGroup I_ManufacturingOrderComponent AlternativeItemGroup
AlternativeItemStrategy I_ManufacturingOrderComponent AlternativeItemStrategy
AlternativeItemPriority I_ManufacturingOrderComponent AlternativeItemPriority
UsageProbabilityPercent I_ManufacturingOrderComponent UsageProbabilityPercent
AlternativeMstrReservationItem I_ManufacturingOrderComponent AlternativeMstrReservationItem
MaterialComponentIsPhantomItem I_ManufacturingOrderComponent MaterialComponentIsPhantomItem
OrderPathValue I_ManufacturingOrderComponent OrderPathValue
OrderLevelValue I_ManufacturingOrderComponent OrderLevelValue
Assembly I_ManufacturingOrderComponent Assembly
AssemblyOrderPathValue I_ManufacturingOrderComponent AssemblyOrderPathValue
AssemblyOrderLevelValue I_ManufacturingOrderComponent AssemblyOrderLevelValue
DiscontinuationGroup I_ManufacturingOrderComponent DiscontinuationGroup
MatlCompDiscontinuationType I_ManufacturingOrderComponent MatlCompDiscontinuationType
MatlCompIsFollowUpMaterial I_ManufacturingOrderComponent MatlCompIsFollowUpMaterial
FollowUpGroup I_ManufacturingOrderComponent FollowUpGroup
FollowUpMaterial I_ManufacturingOrderComponent FollowUpMaterial
FollowUpMaterialIsActive I_ManufacturingOrderComponent FollowUpMaterialIsActive
DiscontinuationMasterResvnItem I_ManufacturingOrderComponent DiscontinuationMasterResvnItem
MaterialProvisionType I_ManufacturingOrderComponent MaterialProvisionType
MatlComponentSparePartType I_ManufacturingOrderComponent MatlComponentSparePartType
LeadTimeOffset I_ManufacturingOrderComponent LeadTimeOffset
OperationLeadTimeOffsetUnit I_ManufacturingOrderComponent OperationLeadTimeOffsetUnit
OperationLeadTimeOffset I_ManufacturingOrderComponent OperationLeadTimeOffset
QuantityIsFixed I_ManufacturingOrderComponent QuantityIsFixed
IsNetScrap I_ManufacturingOrderComponent IsNetScrap
ComponentScrapInPercent I_ManufacturingOrderComponent ComponentScrapInPercent
OperationScrapInPercent I_ManufacturingOrderComponent OperationScrapInPercent
MaterialQtyToBaseQtyNmrtr I_ManufacturingOrderComponent MaterialQtyToBaseQtyNmrtr
MaterialQtyToBaseQtyDnmntr I_ManufacturingOrderComponent MaterialQtyToBaseQtyDnmntr
BaseUnit
RequiredQuantity I_ManufacturingOrderComponent RequiredQuantity
WithdrawnQuantity I_ManufacturingOrderComponent WithdrawnQuantity
ConfirmedAvailableQuantity I_ManufacturingOrderComponent ConfirmedAvailableQuantity
MaterialCompOriginalQuantity I_ManufacturingOrderComponent MaterialCompOriginalQuantity
EntryUnit
GoodsMovementEntryQty I_ManufacturingOrderComponent GoodsMovementEntryQty
Currency I_ManufacturingOrderComponent Currency
WithdrawnQuantityAmount I_ManufacturingOrderComponent WithdrawnQuantityAmount
StockSegment I_ManufacturingOrderComponent StockSegment
RequirementSegment I_ManufacturingOrderComponent RequirementSegment
CriticalComponentType I_ManufacturingOrderComponent CriticalComponentType
CriticalComponentLevel I_ManufacturingOrderComponent CriticalComponentLevel
_Reservation I_ManufacturingOrderComponent _Reservation
_ReservationItem I_ManufacturingOrderComponent _ReservationItem
_ReservationRecordType I_ManufacturingOrderComponent _ReservationRecordType
_MfgOrder I_ManufacturingOrderComponent _MfgOrder
_MfgOrderCategory I_ManufacturingOrderComponent _MfgOrderCategory
_MfgOrderType I_ManufacturingOrderComponent _MfgOrderType
_MfgOrderOperation I_ManufacturingOrderComponent _MfgOrderOperation
_MfgOrderOperationBySemKey I_ManufacturingOrderComponent _MfgOrderOperationBySemKey
_MfgOrderSequence I_ManufacturingOrderComponent _MfgOrderSequence
_MfgOrderSequenceCategory I_ManufacturingOrderComponent _MfgOrderSequenceCategory
_MfgOrderComponentLongText I_ManufacturingOrderComponent _MfgOrderComponentLongText
_OrderInternalID I_ManufacturingOrderComponent _OrderInternalID
_ProductionPlant I_ManufacturingOrderComponent _ProductionPlant
_AssemblyMRPController I_ManufacturingOrderComponent _AssemblyMRPController
_ProductionSupervisor I_ManufacturingOrderComponent _ProductionSupervisor
_RequirementType I_ManufacturingOrderComponent _RequirementType
_MaterialGroup I_ManufacturingOrderComponent _MaterialGroup
_Material I_ManufacturingOrderComponent _Material
_MaterialPlant _MaterialPlant
_MRPController _MRPController
_Product I_ManufacturingOrderComponent _Product
_ProductPlant I_ManufacturingOrderComponent _ProductPlant
_ProductStorageLocation I_ManufacturingOrderComponent _ProductStorageLocation
_ProductSupplyPlanning I_ManufacturingOrderComponent _ProductSupplyPlanning
_ProductUnitsOfMeasure I_ManufacturingOrderComponent _ProductUnitsOfMeasure
_Plant I_ManufacturingOrderComponent _Plant
_StorageLocation I_ManufacturingOrderComponent _StorageLocation
_Batch I_ManufacturingOrderComponent _Batch
_BatchSplitType I_ManufacturingOrderComponent _BatchSplitType
_DebitCreditCode I_ManufacturingOrderComponent _DebitCreditCode
_GoodsMovementType I_ManufacturingOrderComponent _GoodsMovementType
_InventorySpecialStockType I_ManufacturingOrderComponent _InventorySpecialStockType
_InventorySpecialStockValnType I_ManufacturingOrderComponent _InventorySpecialStockValnType
_ConsumptionPosting I_ManufacturingOrderComponent _ConsumptionPosting
_SupplyArea I_ManufacturingOrderComponent _SupplyArea
_FollowUpMaterial I_ManufacturingOrderComponent _FollowUpMaterial
_DiscontinuationType I_ManufacturingOrderComponent _DiscontinuationType
_ProvisionType I_ManufacturingOrderComponent _ProvisionType
_SparePartType I_ManufacturingOrderComponent _SparePartType
_PhantomAssembly I_ManufacturingOrderComponent _PhantomAssembly
_BOMExplosion I_ManufacturingOrderComponent _BOMExplosion
_BillOfMaterialItem I_ManufacturingOrderComponent _BillOfMaterialItem
_BOMItemCategory I_ManufacturingOrderComponent _BOMItemCategory
_SalesOrder I_ManufacturingOrderComponent _SalesOrder
_SalesOrderItem I_ManufacturingOrderComponent _SalesOrderItem
_WBSElementBasicData I_ManufacturingOrderComponent _WBSElementBasicData
_ChangeNumber I_ManufacturingOrderComponent _ChangeNumber
_MaterialRevisionLevel I_ManufacturingOrderComponent _MaterialRevisionLevel
_PurchasingGroup I_ManufacturingOrderComponent _PurchasingGroup
_PurchasingInfoRecord I_ManufacturingOrderComponent _PurchasingInfoRecord
_PurchaseOrder I_ManufacturingOrderComponent _PurchaseOrder
_PurchaseOrderItem I_ManufacturingOrderComponent _PurchaseOrderItem
_PurchaseRequisition I_ManufacturingOrderComponent _PurchaseRequisition
_PurchaseRequisitionItem I_ManufacturingOrderComponent _PurchaseRequisitionItem
_Supplier I_ManufacturingOrderComponent _Supplier
_SupplierCompanyByPlant I_ManufacturingOrderComponent _SupplierCompanyByPlant
_CompanyCode I_ManufacturingOrderComponent _CompanyCode
_BusinessArea I_ManufacturingOrderComponent _BusinessArea
_GLAccount I_ManufacturingOrderComponent _GLAccount
_ControllingArea I_ManufacturingOrderComponent _ControllingArea
_FunctionalArea I_ManufacturingOrderComponent _FunctionalArea
_AccountAssignmentCategory I_ManufacturingOrderComponent _AccountAssignmentCategory
_EarmarkedFunds I_ManufacturingOrderComponent _EarmarkedFunds
_EarmarkedFundsItem I_ManufacturingOrderComponent _EarmarkedFundsItem
_OpLeadTimeOffsetUnit I_ManufacturingOrderComponent _OpLeadTimeOffsetUnit
_VariableSizeCompUnit I_ManufacturingOrderComponent _VariableSizeCompUnit
_BaseUnit I_ManufacturingOrderComponent _BaseUnit
_EntryUnit I_ManufacturingOrderComponent _EntryUnit
_Currency I_ManufacturingOrderComponent _Currency
_LongTextLanguage I_ManufacturingOrderComponent _LongTextLanguage
_ComponentIsCreatedCode P_OrderOpCompStatusBasicAggrgn _ComponentIsCreatedCode
_ComponentIsReleasedCode P_OrderOpCompStatusBasicAggrgn _ComponentIsReleasedCode
_ComponentIsPrintedCode P_OrderOpCompStatusBasicAggrgn _ComponentIsPrintedCode
_ComponentIsDeletedCode P_OrderOpCompStatusBasicAggrgn _ComponentIsDeletedCode
_CompIsCreatedByOrderSplitCode P_OrderOpCompStatusBasicAggrgn _CompIsCreatedByOrderSplitCode
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #('TRANSACTIONAL_DATA')
@AccessControl.privilegedAssociations: ['_AssemblyMRPController', '_MRPController', '_ProductionSupervisor']
@Analytics.dataCategory: #FACT
@Analytics.technicalName: 'IMFGORDCOMPWSTS'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Manufacturing Order Component with Status'
// Mfg Order Component view with additional component system status indicators


define view entity I_MfgOrderComponentWithStatus
  as select from I_ManufacturingOrderComponent  as comp
      inner join P_OrderOpCompStatusBasicAggrgn as stat on stat.ObjectInternalID = comp.ObjectInternalID

  association [0..1] to I_MRPController           as _MRPController on  $projection.Plant         = _MRPController.Plant
                                                                    and $projection.MRPController = _MRPController.MRPController
  association [0..1] to I_MaterialPlant           as _MaterialPlant on  $projection.Plant    = _MaterialPlant.Plant
                                                                    and $projection.Material = _MaterialPlant.Material
  association [1..1] to E_ReservationDocumentItem as _Extension     on  $projection.Reservation           = _Extension.Reservation
                                                                    and $projection.ReservationItem       = _Extension.ReservationItem
                                                                    and $projection.ReservationRecordType = _Extension.RecordType
{
      // Key

      @ObjectModel.foreignKey.association: '_Reservation'
  key comp.Reservation,
      @ObjectModel.foreignKey.association: '_ReservationItem'
      @ObjectModel.text.element: ['MaterialComponentText']
  key comp.ReservationItem,
      @ObjectModel.foreignKey.association: '_ReservationRecordType'
  key comp.ReservationRecordType,

      //Material data

      @ObjectModel.foreignKey.association: '_MaterialGroup'
      cast(comp.MaterialGroup as matkl preserving type)           as MaterialGroup ,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ProductStdVH', element: 'Product' } } ]
      @ObjectModel.foreignKey.association: '_Material'
      cast(comp.Material as matnr preserving type)                as Material,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_Plant'
      comp.Plant,

      // Order and Operation data

      @ObjectModel.foreignKey.association: '_MfgOrderCategory'
      comp.ManufacturingOrderCategory,
      @ObjectModel.foreignKey.association: '_MfgOrderType'
      cast(comp.ManufacturingOrderType as aufart preserving type) as ManufacturingOrderType,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_MfgOrderStdVH', element: 'ManufacturingOrder' } } ]
      @ObjectModel.foreignKey.association: '_MfgOrder'
      comp.ManufacturingOrder,
      @ObjectModel.foreignKey.association: '_MfgOrderSequence'
      comp. ManufacturingOrderSequence,
      @ObjectModel.foreignKey.association: '_MfgOrderSequenceCategory'
      comp. MfgOrderSequenceCategory,
      @ObjectModel.foreignKey.association: '_MfgOrderOperationBySemKey'
      comp.ManufacturingOrderOperation,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PlantStdVH', element: 'Plant' } } ]
      @ObjectModel.foreignKey.association: '_ProductionPlant'
      comp.ProductionPlant,
      @ObjectModel.foreignKey.association: '_OrderInternalID'
      comp.OrderInternalID,
      @ObjectModel.foreignKey.association: '_MfgOrderOperation'
      comp.OrderOperationInternalID,
      @ObjectModel.foreignKey.association: '_AssemblyMRPController'
      comp.AssemblyMRPController,
      @ObjectModel.foreignKey.association: '_ProductionSupervisor'
      comp.ProductionSupervisor,

      // Attributes

      comp.ReservationItemCreationCode,
      comp.ReservationIsFinallyIssued,
      comp.MatlCompIsMarkedForDeletion,
      comp.MaterialComponentIsMissing,
      comp.IsBulkMaterialComponent,
      comp.MatlCompIsMarkedForBackflush,
      comp.MatlCompIsTextItem,
      comp.MaterialPlanningRelevance,
      comp.MatlCompIsConfigurable,
      comp.MaterialComponentIsClassified,
      comp.MaterialCompIsIntraMaterial,
      comp.MaterialIsDirectlyProduced,
      comp.MaterialIsDirectlyProcured,

      // Status

      stat.MaterialComponentIsCreated,      // I0001

      stat.MaterialComponentIsReleased,     // I0002

      stat.MaterialComponentIsPrinted,      // I0007

      stat.MaterialComponentIsDeleted,      // I0013

      stat.MatlCompIsCreatedByOrderSplit,   // I0487


      // Text

      @Semantics.text: true
      comp.MaterialComponentText,
      @Semantics.text: true
      comp.MaterialComponentSecondText,
      comp.MaterialComponentHasLongText,
      @ObjectModel.foreignKey.association: '_LongTextLanguage'
      comp.LongTextLanguage,

      // Date and Time

      @Semantics.businessDate.at: true
      comp.MatlCompRequirementDate,
      comp.MatlCompRequirementTime,
      comp.LatestRequirementDate,

      // Assignments

      @ObjectModel.foreignKey.association: '_RequirementType'
      comp.RequirementType,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_SalesOrderStdVH', element: 'SalesOrder' } } ]
      @ObjectModel.foreignKey.association: '_SalesOrder'
      comp.SalesOrder,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_SalesOrderItemStdVH', element: 'SalesOrderItem' } } ]
      @ObjectModel.foreignKey.association: '_SalesOrderItem'
      comp.SalesOrderItem,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_WBSElementBasicDataStdVH', element: 'WBSElementInternalID' } } ]
      @ObjectModel.foreignKey.association: '_WBSElementBasicData'
      comp.WBSElementInternalID,
      @ObjectModel.foreignKey.association: '_MRPController'
      cast(_MaterialPlant.MRPController as pph_dispo preserving type) as MRPController,
      comp.ProductConfiguration,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_ChangeMasterStdVH', element: 'ChangeNumber' } } ]
      @ObjectModel.foreignKey.association: '_ChangeNumber'
      comp.ChangeNumber,
      comp.MaterialRevisionLevel,
      comp.EffectivityParameterVariant,
      @API.element.releaseState: #DEPRECATED
      @API.element.successor: 'MaterialComponentSortText'
      comp.MatlCompFreeDefinedAttribute,
      comp.MaterialComponentSortText,
      comp.ObjectInternalID,

      // Assignments BOM

      comp.BillOfMaterialCategory,
      comp.BillOfMaterialInternalID,
      comp.BillOfMaterialVariantUsage,
      comp.BillOfMaterialVariant,
      comp.BillOfMaterialItemNodeNumber,
      comp.BillOfMaterialVersion,
      comp.BOMItemInternalChangeCount,
      comp.InheritedBOMItemNode,
      comp.BillOfMaterialItemCategory,
      comp.BillOfMaterialItemNumber,
      @ObjectModel.foreignKey.association: '_BOMExplosion'
      comp.BOMExplosionDateID,

      // Assignments Purchasing

--    @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PurchasingInfoRecordStdVH', element: 'PurchasingInfoRecord' } } ]    
      comp.PurchasingInfoRecord,
      @ObjectModel.foreignKey.association: '_PurchasingGroup'
      comp.PurchasingGroup,
--    @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PurchaseRequisitionStdVH', element: 'PurchaseRequisition' } } ]
      comp.PurchaseRequisition,
--    @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PurchaseRequisitionItemStdVH', element: 'PurchaseRequisitionItem' } } ]
      comp.PurchaseRequisitionItem,
--    @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PurchaseOrderStdVH', element: 'PurchaseOrder' } } ]
      comp.PurchaseOrder,
--    @Consumption.valueHelpDefinition: [ { entity: { name: 'I_PurchaseOrderItemStdVH', element: 'PurchaseOrderItem' } } ]
      comp.PurchaseOrderItem,
      comp.PurchaseOrderScheduleLine,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_Supplier_VH', element: 'Supplier' } } ]
      @ObjectModel.foreignKey.association: '_Supplier'
      comp.Supplier,
      comp.DeliveryDurationInDays,
      comp.MaterialGoodsReceiptDuration,
      -- Price
      @Aggregation.default: #SUM
      @Semantics.amount.currencyCode: 'Currency'
      comp.ExternalProcessingPrice,
      comp.NumberOfOperationPriceUnits,   

      // Goods Movement data

      comp.GoodsMovementIsAllowed,
      @ObjectModel.foreignKey.association: '_StorageLocation'
      comp.StorageLocation,
      @ObjectModel.foreignKey.association: '_DebitCreditCode'
      comp.DebitCreditCode,
      @ObjectModel.foreignKey.association: '_GoodsMovementType'
      comp.GoodsMovementType,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockType'
      comp.InventorySpecialStockType,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockValnType'
      comp.InventorySpecialStockValnType,
      @ObjectModel.foreignKey.association: '_ConsumptionPosting'
      comp.ConsumptionPosting,
      @ObjectModel.foreignKey.association: '_SupplyArea'
      comp.SupplyArea,
      @Semantics.text: true
      comp.GoodsRecipientName,
      @Semantics.text: true
      comp.UnloadingPointName,

      // Assignments FI/CO

      comp.MaterialCompCostingRelevancy,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BusinessAreaStdVH', element: 'BusinessArea' } } ]
      @ObjectModel.foreignKey.association: '_BusinessArea'
      comp.BusinessArea,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_CompanyCodeStdVH', element: 'CompanyCode' } } ]
      @ObjectModel.foreignKey.association: '_CompanyCode'
      cast(comp.CompanyCode as bukrs preserving type) as CompanyCode,
      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_GLAccountStdVH', element: 'GLAccount' } } ]
      @ObjectModel.foreignKey.association: '_GLAccount'
      comp.GLAccount,
      @ObjectModel.foreignKey.association: '_FunctionalArea'
      comp.FunctionalArea,
      @ObjectModel.foreignKey.association: '_ControllingArea'
      comp.ControllingArea,
      @ObjectModel.foreignKey.association: '_AccountAssignmentCategory'
      comp.AccountAssignmentCategory,
      @ObjectModel.foreignKey.association: '_EarmarkedFunds'
      comp.EarmarkedFundsDocument,
--    @ObjectModel.foreignKey.association: '_EarmarkedFundsItem'
      comp.EarmarkedFundsDocumentItem,

      // Batch data

      @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BatchStdVH', element: 'Batch' } } ]
      @ObjectModel.foreignKey.association: '_Batch'
      cast(comp.Batch as charg_d preserving type) as Batch,
--    @ObjectModel.foreignKey.association: '_BatchEntryDetermination'         
      comp.BatchEntryDeterminationCode,
      @ObjectModel.foreignKey.association: '_BatchSplitType'      
      comp.BatchSplitType,
      comp.BatchMasterReservationItem,
      comp.BatchClassification,

      // Variable-size item data

      comp.MaterialCompIsVariableSized,
      comp.VariableSizeItemUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeItemUnit'
      @Aggregation.default: #SUM
      comp.VariableSizeItemQuantity,   
      comp.VariableSizeComponentUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeComponentUnit'
      @Aggregation.default: #SUM
      comp.VariableSizeComponentQuantity,
      comp.VariableSizeDimensionUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      @Aggregation.default: #MAX
      comp.VariableSizeDimension1,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      @Aggregation.default: #MAX
      comp.VariableSizeDimension2,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      @Aggregation.default: #MAX
      comp.VariableSizeDimension3,
      comp.VariableSizeCompFormulaKey,
 
      // Alternative item data

      comp.MaterialCompIsAlternativeItem,
      comp.AlternativeItemGroup,
      comp.AlternativeItemStrategy,
      comp.AlternativeItemPriority,
      comp.UsageProbabilityPercent,
      comp.AlternativeMstrReservationItem,

      // Phantom assembly

      comp.MaterialComponentIsPhantomItem,
      comp.OrderPathValue,
      comp.OrderLevelValue,
      @ObjectModel.foreignKey.association: '_PhantomAssembly'
      comp.Assembly,
      comp.AssemblyOrderPathValue,
      comp.AssemblyOrderLevelValue,

      // Discontinuation

      comp.DiscontinuationGroup,
      @ObjectModel.foreignKey.association: '_DiscontinuationType'
      comp.MatlCompDiscontinuationType,
      comp.MatlCompIsFollowUpMaterial,
      comp.FollowUpGroup,
      @ObjectModel.foreignKey.association: '_FollowUpMaterial'
      comp.FollowUpMaterial,
      comp.FollowUpMaterialIsActive,
      comp.DiscontinuationMasterResvnItem,

      // Material provision

      @ObjectModel.foreignKey.association: '_ProvisionType'
      comp.MaterialProvisionType,

      // Spare part

      @ObjectModel.foreignKey.association: '_SparePartType'
      comp.MatlComponentSparePartType,

      // Lead-Time offset

      comp.LeadTimeOffset,
      comp.OperationLeadTimeOffsetUnit,
      comp.OperationLeadTimeOffset,

      // Quantities and UoM

      comp.QuantityIsFixed,
      comp.IsNetScrap,
      comp.ComponentScrapInPercent,
      comp.OperationScrapInPercent,
      comp.MaterialQtyToBaseQtyNmrtr,
      comp.MaterialQtyToBaseQtyDnmntr,
      -- Base unit
      comp.BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.RequiredQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.WithdrawnQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.ConfirmedAvailableQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.MaterialCompOriginalQuantity,
      -- Entry unit
      comp.EntryUnit,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      @Aggregation.default: #SUM
      comp.GoodsMovementEntryQty,

      // Amount and Currency

      comp.Currency,
      @Aggregation.default: #SUM
      @Semantics.amount.currencyCode: 'Currency'
      comp.WithdrawnQuantityAmount,

      // Fashion Manufacturing Fields

      comp.StockSegment,
      comp.RequirementSegment,
      comp.CriticalComponentType,
      comp.CriticalComponentLevel,
            
      // Associations

      comp._Reservation,
      comp._ReservationItem,
      comp._ReservationRecordType,
      comp._MfgOrder,
      comp._MfgOrderCategory,
      comp._MfgOrderType,
      comp._MfgOrderOperation,
      comp._MfgOrderOperationBySemKey,
      comp._MfgOrderSequence,
      comp._MfgOrderSequenceCategory,
      comp._MfgOrderComponentLongText,
      @Consumption.hidden: true
      comp._OrderInternalID,
      comp._ProductionPlant,
      comp._AssemblyMRPController,
      comp._ProductionSupervisor,
      comp._RequirementType,
      comp._MaterialGroup,
      comp._Material,
      _MaterialPlant,
      _MRPController,
      comp._Product,
      comp._ProductPlant,
      comp._ProductStorageLocation,
      comp._ProductSupplyPlanning,
      comp._ProductUnitsOfMeasure,
      comp._Plant,
      comp._StorageLocation,
      comp._Batch,
      comp._BatchSplitType,
      comp._DebitCreditCode,
      comp._GoodsMovementType,
      comp._InventorySpecialStockType,
      comp._InventorySpecialStockValnType,
      comp._ConsumptionPosting,
      comp._SupplyArea,
      comp._FollowUpMaterial,
      comp._DiscontinuationType,
      comp._ProvisionType,
      comp._SparePartType,
      comp._PhantomAssembly,
      comp._BOMExplosion,
      comp._BillOfMaterialItem,
      comp._BOMItemCategory,
      comp._SalesOrder,
      comp._SalesOrderItem,
      comp._WBSElementBasicData,
      comp._ChangeNumber,
      comp._MaterialRevisionLevel,
      comp._PurchasingGroup,
      comp._PurchasingInfoRecord,
      comp._PurchaseOrder,
      comp._PurchaseOrderItem,
      comp._PurchaseRequisition,
      comp._PurchaseRequisitionItem,
      comp._Supplier,
      @Consumption.hidden: true
      comp._SupplierCompanyByPlant,
      comp._CompanyCode,
      comp._BusinessArea,
      comp._GLAccount,
      comp._ControllingArea,
      comp._FunctionalArea,
      comp._AccountAssignmentCategory,
      comp._EarmarkedFunds,
      comp._EarmarkedFundsItem,
      comp._OpLeadTimeOffsetUnit,
      comp._VariableSizeCompUnit,
      comp._BaseUnit,
      comp._EntryUnit,
      comp._Currency,
      comp._LongTextLanguage,
      stat._ComponentIsCreatedCode,
      stat._ComponentIsReleasedCode,
      stat._ComponentIsPrintedCode,
      stat._ComponentIsDeletedCode,
      stat._CompIsCreatedByOrderSplitCode
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MANUFACTURINGORDERCOMPONENT",
"I_MATERIALPLANT",
"P_ORDEROPCOMPSTATUSBASICAGGRGN"
],
"ASSOCIATED":
[
"I_ACCOUNTASSIGNMENTCATEGORY",
"I_BATCH",
"I_BATCHSPLITTYPE",
"I_BILLOFMATERIALITEMBASIC",
"I_BILLOFMATERIALITEMCATEGORY",
"I_BOMEXPLOSIONDATE",
"I_BUSINESSAREA",
"I_CHANGEMASTER",
"I_CHANGEMSTROBJTYPEREVISIONLVL",
"I_COMPANYCODE",
"I_CONSUMPTIONPOSTING",
"I_CONTROLLINGAREA",
"I_CURRENCY",
"I_DEBITCREDITCODE",
"I_EARMARKEDFUNDSDOCUMENT",
"I_EARMARKEDFUNDSDOCUMENTITEM",
"I_FUNCTIONALAREA",
"I_GLACCOUNT",
"I_GOODSMOVEMENTTYPE",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_INVTRYSPECIALSTOCKVALNTYPE",
"I_LANGUAGE",
"I_MANUFACTURINGORDER",
"I_MANUFACTURINGORDEROPERATION",
"I_MANUFACTURINGORDERSEQUENCE",
"I_MATERIAL",
"I_MATERIALGROUP",
"I_MATERIALPLANT",
"I_MATERIALREQUIREMENTTYPE",
"I_MATLCOMPDISCONTINUATIONTYPE",
"I_MATLCOMPPROVISIONTYPE",
"I_MATLCOMPSPAREPARTTYPE",
"I_MFGORDERCATEGORY",
"I_MFGORDERCOMPONENTLONGTEXT",
"I_MFGORDEROPERATIONBYSEMKEY",
"I_MFGORDERTYPE",
"I_MRPCONTROLLER",
"I_ORDERINTERNALID",
"I_PLANT",
"I_PRODUCT",
"I_PRODUCTIONSUPERVISOR",
"I_PRODUCTIONSUPPLYAREA",
"I_PRODUCTPLANTBASIC",
"I_PRODUCTSTORAGELOCATIONBASIC",
"I_PRODUCTSUPPLYPLANNING",
"I_PRODUCTUNITSOFMEASURE",
"I_PURCHASEORDERAPI01",
"I_PURCHASEORDERITEMAPI01",
"I_PURCHASEREQUISITION",
"I_PURCHASEREQUISITIONITEMAPI01",
"I_PURCHASINGGROUP",
"I_PURCHASINGINFORECORDAPI01",
"I_RESERVATIONDOCRECORDTYPE",
"I_RESERVATIONDOCUMENTHEADER",
"I_RESERVATIONDOCUMENTITEM",
"I_SALESORDER",
"I_SALESORDERITEM",
"I_SEQUENCECATEGORY",
"I_STATUSCODE",
"I_STORAGELOCATION",
"I_SUPPLIER",
"I_SUPPLIERCOMPANYBYPLANT",
"I_UNITOFMEASURE",
"I_WBSELEMENTBASICDATA"
],
"BASE":
[
"I_MANUFACTURINGORDERCOMPONENT",
"P_ORDEROPCOMPSTATUSBASICAGGRGN"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/