I_MfgOrderOperationCompWithSts

DDL: I_MFGORDEROPERATIONCOMPWITHSTS SQL: IMFGORDOPCOMPWST Type: view COMPOSITE

Manufacturing Order Component with Header Status

I_MfgOrderOperationCompWithSts is a Composite CDS View that provides data about "Manufacturing Order Component with Header Status" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderOperationComponent) and exposes 115 fields with key fields Reservation, ReservationItem, RecordType. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MfgOrderOperationComponent comp from

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
[0..1] I_WBSElementBasicData _WBSElementBasic $projection.WBSElementInternalID = _WBSElementBasic.WBSElementInternalID

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IMFGORDOPCOMPWST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT 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 Header Status view

Fields (115)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderOperationComponent Reservation
KEY ReservationItem I_MfgOrderOperationComponent ReservationItem
KEY RecordType I_MfgOrderOperationComponent RecordType
ManufacturingOrderCategory I_MfgOrderOperationComponent ManufacturingOrderCategory
ManufacturingOrderType I_MfgOrderOperationComponent ManufacturingOrderType
ManufacturingOrder I_MfgOrderOperationComponent ManufacturingOrder
ManufacturingOrderSequence I_MfgOrderOperationComponent ManufacturingOrderSequence
ManufacturingOrderOperation I_MfgOrderOperationComponent ManufacturingOrderOperation
ManufacturingOrderOperation_2 I_MfgOrderOperationComponent ManufacturingOrderOperation_2
ProductionPlant I_MfgOrderOperationComponent ProductionPlant
ProductionSupervisor I_MfgOrderOperationComponent ProductionSupervisor
OrderIsReleased
OrderIsConfirmed
OrderIsDeleted
OrderIsTechnicallyCompleted
OrderIsClosed
OrderIsMarkedForDeletion
MatlCompRequirementDate I_MfgOrderOperationComponent MatlCompRequirementDate
MatlCompRequirementTime I_MfgOrderOperationComponent MatlCompRequirementTime
ReservationIsFinallyIssued I_MfgOrderOperationComponent ReservationIsFinallyIssued
MatlCompIsMarkedForDeletion I_MfgOrderOperationComponent MatlCompIsMarkedForDeletion
MaterialComponentIsMissing I_MfgOrderOperationComponent MaterialComponentIsMissing
IsBulkMaterialComponent I_MfgOrderOperationComponent IsBulkMaterialComponent
MatlCompIsMarkedForBackflush I_MfgOrderOperationComponent MatlCompIsMarkedForBackflush
MatlCompIsTextItem I_MfgOrderOperationComponent MatlCompIsTextItem
MaterialComponentIsPhantomItem I_MfgOrderOperationComponent MaterialComponentIsPhantomItem
MaterialCompIsVariableSized I_MfgOrderOperationComponent MaterialCompIsVariableSized
MatlCompIsConfigurable I_MfgOrderOperationComponent MatlCompIsConfigurable
MatlCompDiscontinuationType I_MfgOrderOperationComponent MatlCompDiscontinuationType
MatlCompIsFollowUpMaterial I_MfgOrderOperationComponent MatlCompIsFollowUpMaterial
LongTextLanguageCode I_MfgOrderOperationComponent LongTextLanguageCode
LongTextExists I_MfgOrderOperationComponent LongTextExists
RequirementType I_MfgOrderOperationComponent RequirementType
MaterialGroup I_MfgOrderOperationComponent MaterialGroup
Material I_MfgOrderOperationComponent Material
Plant I_MfgOrderOperationComponent Plant
MRPController
SalesOrder I_MfgOrderOperationComponent SalesOrder
SalesOrderItem I_MfgOrderOperationComponent SalesOrderItem
WBSElementInternalID I_MfgOrderOperationComponent WBSElementInternalID_2
Assembly I_MfgOrderOperationComponent Assembly
BillOfMaterialCategory I_MfgOrderOperationComponent BillOfMaterialCategory
BillOfMaterial
BillOfMaterialInternalID I_MfgOrderOperationComponent BillOfMaterialInternalID_2
BOMItemInternalChangeCount I_MfgOrderOperationComponent BOMItemInternalChangeCount
BillOfMaterialItemNodeNumber I_MfgOrderOperationComponent BOMItem
BillOfMaterialItemCategory I_MfgOrderOperationComponent BOMItemCategory
BOMItemDescription I_MfgOrderOperationComponent BOMItemDescription
BOMExplosionDateID I_MfgOrderOperationComponent BOMExplosionDateID
GoodsMovementIsAllowed I_MfgOrderOperationComponent GoodsMovementIsAllowed
StorageLocation I_MfgOrderOperationComponent StorageLocation
Batch I_MfgOrderOperationComponent Batch
DebitCreditCode I_MfgOrderOperationComponent DebitCreditCode
GoodsMovementType I_MfgOrderOperationComponent GoodsMovementType
InventorySpecialStockType I_MfgOrderOperationComponent InventorySpecialStockType
SupplyArea I_MfgOrderOperationComponent SupplyArea
StockSegment I_MfgOrderOperationComponent StockSegment
RequirementSegment I_MfgOrderOperationComponent RequirementSegment
BusinessArea I_MfgOrderOperationComponent BusinessArea
CompanyCode I_MfgOrderOperationComponent CompanyCode
BatchSplitType I_MfgOrderOperationComponent BatchSplitType
BatchMasterReservationItem I_MfgOrderOperationComponent BatchMasterReservationItem
QuantityIsFixed I_MfgOrderOperationComponent QuantityIsFixed
IsNetScrap I_MfgOrderOperationComponent IsNetScrap
ComponentScrapInPercent I_MfgOrderOperationComponent ComponentScrapInPercent
OperationScrapInPercent I_MfgOrderOperationComponent OperationScrapInPercent
BaseUnit I_MfgOrderOperationComponent BaseUnit
RequiredQuantity
WithdrawnQuantity I_MfgOrderOperationComponent WithdrawnQuantity
OpenQuantity
DeviationQuantity
ConfirmedAvailableQuantity I_MfgOrderOperationComponent ConfirmedAvailableQuantity
MaterialCompOriginalQuantity I_MfgOrderOperationComponent MaterialCompOriginalQuantity
EntryUnit I_MfgOrderOperationComponent EntryUnit
GoodsMovementEntryQty I_MfgOrderOperationComponent GoodsMovementEntryQty
EffectivityParameterVariant I_MfgOrderOperationComponent EffectivityParameterVariant
BillOfMaterialVariant I_MfgOrderOperationComponent BillOfMaterialVariant
BillOfMaterialVersion I_MfgOrderOperationComponent BillOfMaterialVersion
InheritedBOMItemNode I_MfgOrderOperationComponent InheritedBOMItemNode
_Reservation I_MfgOrderOperationComponent _Reservation
_ReservationItem I_MfgOrderOperationComponent _ReservationItem
_ReservationDocRecordType I_MfgOrderOperationComponent _ReservationDocRecordType
_ManufacturingOrder I_MfgOrderOperationComponent _ManufacturingOrder
_MfgOrder I_MfgOrderOperationComponent _MfgOrder
_MfgOrderSequence I_MfgOrderOperationComponent _MfgOrderSequence
_MfgOrderOperation I_MfgOrderOperationComponent _MfgOrderOperationBySemKey
_MfgOrderComponentLongText I_MfgOrderOperationComponent _MfgOrderComponentLongText
_MfgOrderCategory I_MfgOrderOperationComponent _MfgOrderCategory
_MfgOrderType I_MfgOrderOperationComponent _MfgOrderType
_ProductionPlant I_MfgOrderOperationComponent _ProductionPlant
_ProductionSupervisor I_MfgOrderOperationComponent _ProductionSupervisor
_RequirementType I_MfgOrderOperationComponent _RequirementType
_MaterialGroup I_MfgOrderOperationComponent _MaterialGroup
_Material I_MfgOrderOperationComponent _Material
_MaterialPlant _MaterialPlant
_Plant I_MfgOrderOperationComponent _Plant
_MRPController _MRPController
_StorageLocation I_MfgOrderOperationComponent _StorageLocation
_Batch I_MfgOrderOperationComponent _Batch
_BatchSplitType I_MfgOrderOperationComponent _BatchSplitType
_DebitCreditCode I_MfgOrderOperationComponent _DebitCreditCode
_GoodsMovementType I_MfgOrderOperationComponent _GoodsMovementType
_InventorySpecialStockType I_MfgOrderOperationComponent _InventorySpecialStockType
_SupplyArea I_MfgOrderOperationComponent _SupplyArea
_BOMExplosion I_MfgOrderOperationComponent _BOMExplosion
_BOMItemCategory I_MfgOrderOperationComponent _BOMItemCategory
_SalesOrder I_MfgOrderOperationComponent _SalesOrder
_SalesOrderItem I_MfgOrderOperationComponent _SalesOrderItem
_WBSElementBasic _WBSElementBasic
_CompanyCode I_MfgOrderOperationComponent _CompanyCode
_BusinessArea I_MfgOrderOperationComponent _BusinessArea
_BaseUnit I_MfgOrderOperationComponent _BaseUnit
_EntryUnit I_MfgOrderOperationComponent _EntryUnit
_LongText I_MfgOrderOperationComponent _LongText
_LongTextLanguage I_MfgOrderOperationComponent _LongTextLanguage
@AbapCatalog.sqlViewName: 'IMFGORDOPCOMPWST'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@AccessControl.privilegedAssociations: ['_MRPController', '_ProductionSupervisor', '_LongText']
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@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 Header Status'
// Mfg Order Operation Component view with additional header system status


define view I_MfgOrderOperationCompWithSts
  as select from I_MfgOrderOperationComponent as comp
  left outer to one join I_StatusObjectStatusBasic as _isReleased   on _isReleased.StatusObject   = comp.OrderObjectInternalID and _isReleased.StatusCode   = 'I0002' and _isReleased.StatusIsInactive     = ''
  left outer to one join I_StatusObjectStatusBasic as _isConfirmed  on _isConfirmed.StatusObject  = comp.OrderObjectInternalID and _isConfirmed.StatusCode  = 'I0009' and _isConfirmed.StatusIsInactive    = ''
  left outer to one join I_StatusObjectStatusBasic as _isDeleted    on _isDeleted.StatusObject    = comp.OrderObjectInternalID and _isDeleted.StatusCode    = 'I0013' and _isDeleted.StatusIsInactive      = ''
  left outer to one join I_StatusObjectStatusBasic as _isTechCompl  on _isTechCompl.StatusObject  = comp.OrderObjectInternalID and _isTechCompl.StatusCode  = 'I0045' and _isTechCompl.StatusIsInactive    = ''
  left outer to one join I_StatusObjectStatusBasic as _isClosed     on _isClosed.StatusObject     = comp.OrderObjectInternalID and _isClosed.StatusCode     = 'I0046' and _isClosed.StatusIsInactive       = ''
  left outer to one join I_StatusObjectStatusBasic as _isMarkedDel  on _isMarkedDel.StatusObject  = comp.OrderObjectInternalID and _isMarkedDel.StatusCode  = 'I0076' and _isMarkedDel.StatusIsInactive    = ''

  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 [0..1] to I_WBSElementBasicData as _WBSElementBasic on  $projection.WBSElementInternalID = _WBSElementBasic.WBSElementInternalID
{
      // Key

      @ObjectModel.foreignKey.association: '_Reservation'
  key comp.Reservation,
      @ObjectModel.text.element: ['BOMItemDescription']
  key comp.ReservationItem,
      @ObjectModel.foreignKey.association: '_ReservationDocRecordType'
  key comp.RecordType,

      // Order and operation data

      @ObjectModel.foreignKey.association: '_MfgOrderCategory'
      comp.ManufacturingOrderCategory,
      @ObjectModel.foreignKey.association: '_MfgOrderType'
      comp.ManufacturingOrderType,
      @ObjectModel.foreignKey.association: '_MfgOrder'
      comp.ManufacturingOrder,
      @ObjectModel.foreignKey.association: '_MfgOrderSequence'
      comp.ManufacturingOrderSequence,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'ManufacturingOrderOperation_2'
      comp.ManufacturingOrderOperation,
      comp.ManufacturingOrderOperation_2,  // no conv. exit

      @ObjectModel.foreignKey.association: '_ProductionPlant'
      comp.ProductionPlant,
      @ObjectModel.foreignKey.association: '_ProductionSupervisor'
      comp.ProductionSupervisor,

      //Order Header Status

      @Semantics.booleanIndicator
      case when _isReleased.StatusCode     is null then '' else 'X' end as OrderIsReleased,
      @Semantics.booleanIndicator
      case when _isConfirmed.StatusCode    is null then '' else 'X' end as OrderIsConfirmed,
      @Semantics.booleanIndicator
      case when _isDeleted.StatusCode      is null then '' else 'X' end as OrderIsDeleted,
      @Semantics.booleanIndicator
      case when _isTechCompl.StatusCode    is null then '' else 'X' end as OrderIsTechnicallyCompleted,
      @Semantics.booleanIndicator
      case when _isClosed.StatusCode       is null then '' else 'X' end as OrderIsClosed,
      @Semantics.booleanIndicator
      case when _isMarkedDel.StatusCode    is null then '' else 'X' end as OrderIsMarkedForDeletion,

      // Date and Time

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

      // Attributes

      comp.ReservationIsFinallyIssued,
      @Semantics.booleanIndicator
      comp.MatlCompIsMarkedForDeletion,
      comp.MaterialComponentIsMissing,
      comp.IsBulkMaterialComponent,
      comp.MatlCompIsMarkedForBackflush,
      comp.MatlCompIsTextItem,
      comp.MaterialComponentIsPhantomItem,
      comp.MaterialCompIsVariableSized,
      comp.MatlCompIsConfigurable,
      comp.MatlCompDiscontinuationType,
      comp.MatlCompIsFollowUpMaterial,

      // Long Text

      @ObjectModel.foreignKey.association: '_LongTextLanguage'
      comp.LongTextLanguageCode,
      comp.LongTextExists,

      // Assignments

      @ObjectModel.foreignKey.association: '_RequirementType'
      comp.RequirementType,
      @ObjectModel.foreignKey.association: '_MaterialGroup'
      comp.MaterialGroup,
      @ObjectModel.foreignKey.association: '_Material'
      comp.Material,
      @ObjectModel.foreignKey.association: '_Plant'
      comp.Plant,
      @ObjectModel.foreignKey.association: '_MRPController'
      cast(_MaterialPlant.MRPController as pph_dispo preserving type)       as MRPController,
      @ObjectModel.foreignKey.association: '_SalesOrder'
      comp.SalesOrder,
      @ObjectModel.foreignKey.association: '_SalesOrderItem'
      comp.SalesOrderItem,
      @ObjectModel.foreignKey.association: '_WBSElementBasic'
      comp.WBSElementInternalID_2                                           as WBSElementInternalID,
      comp.Assembly,

      // Assignments BOM

      comp.BillOfMaterialCategory,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: 'BillOfMaterialInternalID'
      cast(comp.BillOfMaterialInternalID as mpe_exec_stnum preserving type) as BillOfMaterial,
      comp.BillOfMaterialInternalID_2                                       as BillOfMaterialInternalID,
      comp.BOMItemInternalChangeCount                                       as BOMItemInternalChangeCount,
      @ObjectModel.text.element: ['BOMItemDescription']
      comp.BOMItem                                                          as BillOfMaterialItemNodeNumber,
      @ObjectModel.foreignKey.association: '_BOMItemCategory'      
      comp.BOMItemCategory                                                  as BillOfMaterialItemCategory,
      @Semantics.text: true
      comp.BOMItemDescription,
      @ObjectModel.foreignKey.association: '_BOMExplosion'
      comp.BOMExplosionDateID,

      // Goods Movement data

      comp.GoodsMovementIsAllowed,
      @ObjectModel.foreignKey.association: '_StorageLocation'
      comp.StorageLocation,
      comp.Batch,
      @ObjectModel.foreignKey.association: '_DebitCreditCode'
      comp.DebitCreditCode,
      @ObjectModel.foreignKey.association: '_GoodsMovementType'
      comp.GoodsMovementType,
      @ObjectModel.foreignKey.association: '_InventorySpecialStockType'
      comp.InventorySpecialStockType,
      @ObjectModel.foreignKey.association: '_SupplyArea'
      comp.SupplyArea,
      comp.StockSegment,
      comp.RequirementSegment,

      // Assignments FI/CO

      @ObjectModel.foreignKey.association: '_BusinessArea'
      comp.BusinessArea,
      @ObjectModel.foreignKey.association: '_CompanyCode'
      comp.CompanyCode,

      // Batch split data

      @ObjectModel.foreignKey.association: '_BatchSplitType'      
      comp.BatchSplitType,
      comp.BatchMasterReservationItem,

      // Quantities and UoM

      comp.QuantityIsFixed,
      comp.IsNetScrap,
      @Aggregation.default: #MAX
      comp.ComponentScrapInPercent,
      @Aggregation.default: #MAX
      comp.OperationScrapInPercent,
      @Semantics.unitOfMeasure: true
      comp.BaseUnit,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      cast(comp.RequiredQuantity as requirementquantity preserving type)          as RequiredQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.WithdrawnQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      (comp.RequiredQuantity - comp.WithdrawnQuantity)                            as OpenQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      cast((comp.WithdrawnQuantity - comp.RequiredQuantity) as deviationquantity) as DeviationQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.ConfirmedAvailableQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      @Aggregation.default: #SUM
      comp.MaterialCompOriginalQuantity,

      @Semantics.unitOfMeasure: true
      comp.EntryUnit,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      @Aggregation.default: #SUM
      comp.GoodsMovementEntryQty,
      
      comp.EffectivityParameterVariant,
      
      comp.BillOfMaterialVariant,
      comp.BillOfMaterialVersion,
      comp.InheritedBOMItemNode,

      // Associations

      comp._Reservation,
      comp._ReservationItem,
      comp._ReservationDocRecordType,
      comp._ManufacturingOrder,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_ManufacturingOrder'
      comp._MfgOrder,
      comp._MfgOrderSequence,
      comp._MfgOrderOperationBySemKey as _MfgOrderOperation,
      comp._MfgOrderComponentLongText,
      comp._MfgOrderCategory,
      comp._MfgOrderType,
      comp._ProductionPlant,
      comp._ProductionSupervisor,
      comp._RequirementType,
      comp._MaterialGroup,
      comp._Material,
      _MaterialPlant,
      comp._Plant,
      _MRPController,
      comp._StorageLocation,
      comp._Batch,
      comp._BatchSplitType,
      comp._DebitCreditCode,
      comp._GoodsMovementType,
      comp._InventorySpecialStockType,
      comp._SupplyArea,
      comp._BOMExplosion,
      comp._BOMItemCategory,
      comp._SalesOrder,
      comp._SalesOrderItem,
      _WBSElementBasic,
      comp._CompanyCode,
      comp._BusinessArea,
      comp._BaseUnit,
      comp._EntryUnit,
      @VDM.lifecycle.status: #DEPRECATED
      @VDM.lifecycle.successor: '_MfgOrderComponentLongText'
      comp._LongText,
      comp._LongTextLanguage
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MATERIALPLANT",
"I_MFGORDEROPERATIONCOMPONENT",
"I_STATUSOBJECTSTATUSBASIC"
],
"ASSOCIATED":
[
"I_BATCH",
"I_BATCHSPLITTYPE",
"I_BILLOFMATERIALITEMCATEGORY",
"I_BOMEXPLOSIONDATE",
"I_BUSINESSAREA",
"I_COMPANYCODE",
"I_DEBITCREDITCODE",
"I_GOODSMOVEMENTTYPE",
"I_INVENTORYSPECIALSTOCKTYPE",
"I_LANGUAGE",
"I_MANUFACTURINGORDER",
"I_MATERIAL",
"I_MATERIALGROUP",
"I_MATERIALPLANT",
"I_MATERIALREQUIREMENTTYPE",
"I_MFGORDER",
"I_MFGORDERCATEGORY",
"I_MFGORDERCOMPONENTLONGTEXT",
"I_MFGORDEROPERATIONBYSEMKEY",
"I_MFGORDERSEQUENCE",
"I_MFGORDERTYPE",
"I_MRPCONTROLLER",
"I_ORDERCOMPONENTLONGTEXT",
"I_PLANT",
"I_PRODUCTIONSUPERVISOR",
"I_PRODUCTIONSUPPLYAREA",
"I_RESERVATIONDOCRECORDTYPE",
"I_RESERVATIONDOCUMENTHEADER",
"I_RESERVATIONDOCUMENTITEM",
"I_SALESORDER",
"I_SALESORDERITEM",
"I_STORAGELOCATION",
"I_UNITOFMEASURE",
"I_WBSELEMENTBASICDATA"
],
"BASE":
[
"I_MFGORDEROPERATIONCOMPONENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/