P_OpActyInstanceAssembledComp2

DDL: P_OPACTYINSTANCEASSEMBLEDCOMP2 SQL: PMPEOAIAMAT2 Type: view COMPOSITE

P_OpActyInstanceAssembledComp2 is a Composite CDS View in SAP S/4HANA. It reads from 5 data sources (I_LogisticsOrderBasic, I_MatlPlntCompAssembleControl, P_OpActyInstanceAssembledComp, I_OpActyInstceNtwkElmntBasic, I_OrderOperationBasic) and exposes 67 fields with key fields OpActyNtwkInstance, OpActyNtwkElement, Reservation, ReservationItem, RecordType. It has 12 associations to related views.

Data Sources (5)

SourceAliasJoin Type
I_LogisticsOrderBasic LogisticsOrderBasic inner
I_MatlPlntCompAssembleControl MfgOrderProductPlant inner
P_OpActyInstanceAssembledComp OpActyInstanceAssembledComp from
I_OpActyInstceNtwkElmntBasic OpActyInstceOpActyNtwkElmnt inner
I_OrderOperationBasic OrderOperationBasic inner

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_ReservationDocumentHeader _Reservation $projection.Reservation = _Reservation.Reservation
[1..1] I_Material _Material $projection.Material = _Material.Material
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_StorageLocation _StorageLocation $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation
[0..*] I_OpActyCompInstceAssignment _OpActyCompInstceAssignment $projection.Reservation = _OpActyCompInstceAssignment.Reservation and $projection.ReservationItem = _OpActyCompInstceAssignment.ReservationItem and $projection.RecordType = _OpActyCompInstceAssignment.RecordType and $projection.OpActyNtwkInstance = _OpActyCompInstceAssignment.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OpActyCompInstceAssignment.OpActyNtwkElement
[0..*] I_OpActyBOOOpBOMIndivItmAssgmt _OpActyBOOOpBOMIndivItmAssgmt $projection.OperationActivity = _OpActyBOOOpBOMIndivItmAssgmt.OperationActivity and $projection.OperationActyVersionCounter = _OpActyBOOOpBOMIndivItmAssgmt.OperationActyVersionCounter and $projection.BillOfOperationsType = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsType and $projection.BillOfOperationsGroup = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsGroup and $projection.BOOOpBOMItemInternalID = _OpActyBOOOpBOMIndivItmAssgmt.BOOOpBOMItemInternalID
[0..*] C_MfgOrderCompAssemblyAggrgn _MfgOrderCompAssemblyAggrgn $projection.Reservation = _MfgOrderCompAssemblyAggrgn.Reservation and $projection.ReservationItem = _MfgOrderCompAssemblyAggrgn.ReservationItem and $projection.RecordType = _MfgOrderCompAssemblyAggrgn.RecordType and $projection.OpActyNtwkInstance = _MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance and $projection.OpActyNtwkElement = _MfgOrderCompAssemblyAggrgn.OpActyNtwkElement and $projection.Material = _MfgOrderCompAssemblyAggrgn.Material and _MfgOrderCompAssemblyAggrgn.AssemblyShopFloorItem = 0
[1..1] I_MatlCompAssembleControl _MatlCompAssembleControl $projection.MatlCompAssembleControl = _MatlCompAssembleControl.MatlCompAssembleControl
[0..1] I_OrderComponent _OrderComponent $projection.Reservation = _OrderComponent.Reservation and $projection.ReservationItem = _OrderComponent.ReservationItem and $projection.RecordType = _OrderComponent.RecordType
[0..1] I_BOMItmMfgRefStrucItmAssgmt _BOMItmMfgRefStrucItmAssgmt $projection.MfgRefStrucBOMLeafAssgmtUUID = _BOMItmMfgRefStrucItmAssgmt.MfgRefStrucBOMLeafAssgmtUUID
[0..1] I_MfgRefStrucItemWithDetails _MfgRefStrucItemWithDetails $projection.MfgRefStructureItemDetailUUID = _MfgRefStrucItemWithDetails.MfgRefStructureItemUUID and $projection.MfgRefStrucItmDetIsContextual = ''
[0..1] I_MfgRefHierItemWithDetails _MfgRefHierItemWithDetails $projection.MfgRefStructureItemDetailUUID = _MfgRefHierItemWithDetails.MfgRefHierarchyItemUUID and $projection.MfgRefStrucItmDetIsContextual = 'X'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMPEOAIAMAT2 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (67)

KeyFieldSource TableSource FieldDescription
KEY OpActyNtwkInstance I_OpActyInstceNtwkElmntBasic OpActyNtwkInstance
KEY OpActyNtwkElement I_OpActyInstceNtwkElmntBasic OpActyNtwkElement
KEY Reservation P_OpActyInstanceAssembledComp Reservation
KEY ReservationItem P_OpActyInstanceAssembledComp ReservationItem
KEY RecordType P_OpActyInstanceAssembledComp RecordType
KEY Material P_OpActyInstanceAssembledComp Material
KEY Plant P_OpActyInstanceAssembledComp Plant
StorageLocation P_OpActyInstanceAssembledComp StorageLocation
BOOOpBOMItemInternalID P_OpActyInstanceAssembledComp BOOOpBOMItemInternalID
MfgOrderComponentUsageNetQty P_OpActyInstanceAssembledComp MfgOrderComponentUsageNetQty
RequiredQuantity
ResvnItmWithdrawnQtyInBaseUnit
BaseUnit P_OpActyInstanceAssembledComp BaseUnit
EntryUnit P_OpActyInstanceAssembledComp EntryUnit
MatlCompIsMarkedForBackflush P_OpActyInstanceAssembledComp MatlCompIsMarkedForBackflush
GoodsMovementIsAllowed P_OpActyInstanceAssembledComp GoodsMovementIsAllowed
MatlCompInstceAssyIsRequired P_OpActyInstanceAssembledComp MatlCompInstceAssyIsRequired
ManufacturingOrder I_OpActyInstceNtwkElmntBasic ManufacturingOrder
ManufacturingOrderOperation
MfgOrderOperationText I_OrderOperationBasic OperationText
OperationActivity I_OpActyInstceNtwkElmntBasic OperationActivity
OperationActyVersionCounter I_OpActyInstceNtwkElmntBasic OperationActyVersionCounter
OpActyNtwkElementElement I_OpActyInstceNtwkElmntBasic OpActyNtwkElementElement
OpActyNtwkElementElmntVersCntr I_OpActyInstceNtwkElmntBasic OpActyNtwkElementElmntVersCntr
BillOfOperationsType I_OpActyInstceNtwkElmntBasic BillOfOperationsType
BillOfOperationsGroup I_OpActyInstceNtwkElmntBasic BillOfOperationsGroup
SerialNumberProfile I_MatlPlntCompAssembleControl SerialNumberProfile
SerialNumberIsRqdForAssembly I_MatlPlntCompAssembleControl SerialNumberIsRqdForAssembly
IsBatchManagementRequired I_MatlPlntCompAssembleControl IsBatchManagementRequired
StockCheckMessageType I_MatlPlntCompAssembleControl StockCheckMessageType
BillOfMaterialCategory _OrderComponent BillOfMaterialCategory
BillOfMaterialVariant _OrderComponent BillOfMaterialVariant
BillOfMaterialVersion _OrderComponent BillOfMaterialVersion
InheritedBOMItemNode _OrderComponent InheritedBOMItemNode
BillOfMaterialInternalID
BOMItem _OrderComponent BOMItem
BOMItemInternalChangeCount _OrderComponent BOMItemInternalChangeCount
BOMItemCategory _OrderComponent BOMItemCategory
MaterialCompIsVariableSized
VariableSizeItemUnit
FormulaKey _OrderComponent FormulaKey
VariableSizeDimension1 _OrderComponent VariableSizeDimension1
VariableSizeDimension2 _OrderComponent VariableSizeDimension2
VariableSizeDimension3 _OrderComponent VariableSizeDimension3
VariableSizeDimensionUnit _OrderComponent VariableSizeDimensionUnit
VariableSizeComponentQuantity _OrderComponent VariableSizeComponentQuantity
VariableSizeComponentUnit _OrderComponent VariableSizeComponentUnit
MfgRefStrucBOMLeafAssgmtUUID P_OpActyInstanceAssembledComp MfgRefStrucBOMLeafAssgmtUUID
MfgRefStructureItemDetailUUID P_OpActyInstanceAssembledComp MfgRefStructureItemDetailUUID
MfgRefStrucItmDetIsContextual P_OpActyInstanceAssembledComp MfgRefStrucItmDetIsContextual
_OpActyNtwkInstance I_OpActyInstceNtwkElmntBasic _OpActyNtwkInstance
_OperationActivityInstance I_OpActyInstceNtwkElmntBasic _OperationActivityInstance
_OperationActivityText I_OpActyInstceNtwkElmntBasic _OperationActivityText
_MfgOrder I_OpActyInstceNtwkElmntBasic _MfgOrder
_Reservation _Reservation
_Material _Material
_Plant _Plant
_StorageLocation _StorageLocation
_OpActyCompInstceAssignment _OpActyCompInstceAssignment
_OpActyBOOOpBOMIndivItmAssgmt _OpActyBOOOpBOMIndivItmAssgmt
_MfgOrderCompAssemblyAggrgn _MfgOrderCompAssemblyAggrgn
_MatlCompAssembleControl _MatlCompAssembleControl
_OrderComponent _OrderComponent
_BOMItemCategory _OrderComponent _BOMItemCategory
_BOMItmMfgRefStrucItmAssgmt _BOMItmMfgRefStrucItmAssgmt
_MfgRefStrucItemWithDetails _MfgRefStrucItemWithDetails
_MfgRefHierItemWithDetails _MfgRefHierItemWithDetails
@AbapCatalog.sqlViewName: 'PMPEOAIAMAT2'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_OpActyInstanceAssembledComp2
  as select from P_OpActyInstanceAssembledComp as OpActyInstanceAssembledComp
    inner join   I_OpActyInstceNtwkElmntBasic  as OpActyInstceOpActyNtwkElmnt on  OpActyInstanceAssembledComp.OpActyNtwkInstance = OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance
                                                                              and OpActyInstanceAssembledComp.OpActyNtwkElement  = OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement
    inner join   I_LogisticsOrderBasic         as LogisticsOrderBasic         on LogisticsOrderBasic.OrderID = OpActyInstceOpActyNtwkElmnt.ManufacturingOrder
    inner join   I_MatlPlntCompAssembleControl as MfgOrderProductPlant        on  OpActyInstanceAssembledComp.Material = MfgOrderProductPlant.Product
                                                                              and OpActyInstanceAssembledComp.Plant    = MfgOrderProductPlant.Plant
    inner join   I_OrderOperationBasic         as OrderOperationBasic         on  OrderOperationBasic.OrderInternalID          = OpActyInstceOpActyNtwkElmnt.OrderInternalID
                                                                              and OrderOperationBasic.OrderOperationInternalID = OpActyInstceOpActyNtwkElmnt.OrderOperationInternalID

  association [0..1] to I_ReservationDocumentHeader    as _Reservation                  on  $projection.Reservation = _Reservation.Reservation
  association [1..1] to I_Material                     as _Material                     on  $projection.Material = _Material.Material
  association [0..1] to I_Plant                        as _Plant                        on  $projection.Plant = _Plant.Plant
  association [0..1] to I_StorageLocation              as _StorageLocation              on  $projection.Plant           = _StorageLocation.Plant
                                                                                        and $projection.StorageLocation = _StorageLocation.StorageLocation
  association [0..*] to I_OpActyCompInstceAssignment   as _OpActyCompInstceAssignment   on  $projection.Reservation        = _OpActyCompInstceAssignment.Reservation
                                                                                        and $projection.ReservationItem    = _OpActyCompInstceAssignment.ReservationItem
                                                                                        and $projection.RecordType         = _OpActyCompInstceAssignment.RecordType
                                                                                        and $projection.OpActyNtwkInstance = _OpActyCompInstceAssignment.OpActyNtwkInstance
                                                                                        and $projection.OpActyNtwkElement  = _OpActyCompInstceAssignment.OpActyNtwkElement
  association [0..*] to I_OpActyBOOOpBOMIndivItmAssgmt as _OpActyBOOOpBOMIndivItmAssgmt on  $projection.OperationActivity           = _OpActyBOOOpBOMIndivItmAssgmt.OperationActivity
                                                                                        and $projection.OperationActyVersionCounter = _OpActyBOOOpBOMIndivItmAssgmt.OperationActyVersionCounter
                                                                                        and $projection.BillOfOperationsType        = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsType
                                                                                        and $projection.BillOfOperationsGroup       = _OpActyBOOOpBOMIndivItmAssgmt.BillOfOperationsGroup
                                                                                        and $projection.BOOOpBOMItemInternalID      = _OpActyBOOOpBOMIndivItmAssgmt.BOOOpBOMItemInternalID
  association [0..*] to C_MfgOrderCompAssemblyAggrgn   as _MfgOrderCompAssemblyAggrgn   on  $projection.Reservation                           = _MfgOrderCompAssemblyAggrgn.Reservation
                                                                                        and $projection.ReservationItem                       = _MfgOrderCompAssemblyAggrgn.ReservationItem
                                                                                        and $projection.RecordType                            = _MfgOrderCompAssemblyAggrgn.RecordType
                                                                                        and $projection.OpActyNtwkInstance                    = _MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance
                                                                                        and $projection.OpActyNtwkElement                     = _MfgOrderCompAssemblyAggrgn.OpActyNtwkElement
                                                                                        and $projection.Material                              = _MfgOrderCompAssemblyAggrgn.Material
                                                                                        and _MfgOrderCompAssemblyAggrgn.AssemblyShopFloorItem = 0
  association [1..1] to I_MatlCompAssembleControl      as _MatlCompAssembleControl      on  $projection.MatlCompAssembleControl = _MatlCompAssembleControl.MatlCompAssembleControl

  association [0..1] to I_OrderComponent               as _OrderComponent               on  $projection.Reservation     = _OrderComponent.Reservation
                                                                                        and $projection.ReservationItem = _OrderComponent.ReservationItem
                                                                                        and $projection.RecordType      = _OrderComponent.RecordType
  association [0..1] to I_BOMItmMfgRefStrucItmAssgmt   as _BOMItmMfgRefStrucItmAssgmt   on  $projection.MfgRefStrucBOMLeafAssgmtUUID = _BOMItmMfgRefStrucItmAssgmt.MfgRefStrucBOMLeafAssgmtUUID
  association [0..1] to I_MfgRefStrucItemWithDetails   as _MfgRefStrucItemWithDetails   on  $projection.MfgRefStructureItemDetailUUID = _MfgRefStrucItemWithDetails.MfgRefStructureItemUUID
                                                                                        and $projection.MfgRefStrucItmDetIsContextual = ''
  association [0..1] to I_MfgRefHierItemWithDetails    as _MfgRefHierItemWithDetails    on  $projection.MfgRefStructureItemDetailUUID = _MfgRefHierItemWithDetails.MfgRefHierarchyItemUUID
                                                                                        and $projection.MfgRefStrucItmDetIsContextual = 'X'
{
  key OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance,
  key OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement,
  key OpActyInstanceAssembledComp.Reservation,
  key OpActyInstanceAssembledComp.ReservationItem,
  key OpActyInstanceAssembledComp.RecordType,
  key OpActyInstanceAssembledComp.Material,
  key OpActyInstanceAssembledComp.Plant,
      OpActyInstanceAssembledComp.StorageLocation,
      OpActyInstanceAssembledComp.BOOOpBOMItemInternalID,
      OpActyInstanceAssembledComp.MfgOrderComponentUsageNetQty,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      cast( LogisticsOrderBasic.OrderPlannedTotalQty as esmng ) * OpActyInstanceAssembledComp.MfgOrderComponentUsageNetQty as RequiredQuantity,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      cast(case _OrderComponent.MaterialCompIsVariableSized
      -- Variable-size item: Assembly typically has to be done in PC, but base unit e.g. is square meter
          when 'X' then OpActyInstanceAssembledComp.QuantityInEntryUnit
          else OpActyInstanceAssembledComp.MaterialComponentQuantity
        end as mpe_consumed_qty preserving type)                                                                           as MaterialComponentQuantity,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      cast(OpActyInstanceAssembledComp.MaterialComponentQuantity as mpe_consumed_qty_in_base_unit preserving type)         as ResvnItmWithdrawnQtyInBaseUnit,
      @Semantics.unitOfMeasure: true
      OpActyInstanceAssembledComp.BaseUnit,
      @Semantics.unitOfMeasure: true
      OpActyInstanceAssembledComp.EntryUnit,
      OpActyInstanceAssembledComp.MatlCompIsMarkedForBackflush,
      OpActyInstanceAssembledComp.GoodsMovementIsAllowed,
      OpActyInstanceAssembledComp.MatlCompInstceAssyIsRequired,
      OpActyInstceOpActyNtwkElmnt.ManufacturingOrder,
      cast( OrderOperationBasic.Operation as mpe_vornr_char  preserving type )                                             as ManufacturingOrderOperation,
      OrderOperationBasic.OperationText                                                                                    as MfgOrderOperationText,
      OpActyInstceOpActyNtwkElmnt.OperationActivity,
      OpActyInstceOpActyNtwkElmnt.OperationActyVersionCounter,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElement,
      OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElmntVersCntr,
      OpActyInstceOpActyNtwkElmnt.BillOfOperationsType,
      OpActyInstceOpActyNtwkElmnt.BillOfOperationsGroup,
      cast(case OpActyInstanceAssembledComp.MatlCompIsMarkedForBackflush
        when 'X' then 4
        else MfgOrderProductPlant.MatlCompAssembleControl
      end as mpe_comp_assemble_control preserving type )                                                                   as MatlCompAssembleControl,
      MfgOrderProductPlant.SerialNumberProfile,
      MfgOrderProductPlant.SerialNumberIsRqdForAssembly,
      MfgOrderProductPlant.IsBatchManagementRequired,
      MfgOrderProductPlant.StockCheckMessageType,
      _OrderComponent.BillOfMaterialCategory                                                                               as BillOfMaterialCategory,
      _OrderComponent.BillOfMaterialVariant                                                                                as BillOfMaterialVariant,
      _OrderComponent.BillOfMaterialVersion                                                                                as BillOfMaterialVersion,
      _OrderComponent.InheritedBOMItemNode                                                                                 as InheritedBOMItemNode,
      cast( _OrderComponent.BillOfMaterialInternalID as mpe_exec_stnum preserving type )                                   as BillOfMaterialInternalID,
      _OrderComponent.BOMItem,
      _OrderComponent.BOMItemInternalChangeCount,
      _OrderComponent.BOMItemCategory                                                                                      as BOMItemCategory,
      -- Variable-Size Item Fields
      _OrderComponent.MaterialCompIsVariableSized,
      -- _OrderComponent.VariableSizeItemUnit,
      _OrderComponent.FormulaKey,
      _OrderComponent.VariableSizeDimension1,
      _OrderComponent.VariableSizeDimension2,
      _OrderComponent.VariableSizeDimension3,
      _OrderComponent.VariableSizeDimensionUnit,
      _OrderComponent.VariableSizeComponentQuantity,
      _OrderComponent.VariableSizeComponentUnit,

      OpActyInstanceAssembledComp.MfgRefStrucBOMLeafAssgmtUUID,
      OpActyInstanceAssembledComp.MfgRefStructureItemDetailUUID,
      OpActyInstanceAssembledComp.MfgRefStrucItmDetIsContextual,

      OpActyInstceOpActyNtwkElmnt._OpActyNtwkInstance,
      OpActyInstceOpActyNtwkElmnt._OperationActivityInstance,
      OpActyInstceOpActyNtwkElmnt._OperationActivityText,
      OpActyInstceOpActyNtwkElmnt._MfgOrder,
      _Reservation,
      _Material,
      _Plant,
      _StorageLocation,
      _OpActyCompInstceAssignment,
      _OpActyBOOOpBOMIndivItmAssgmt,
      _MfgOrderCompAssemblyAggrgn,
      _MatlCompAssembleControl,
      _OrderComponent,
      _OrderComponent._BOMItemCategory,
      _BOMItmMfgRefStrucItmAssgmt,
      _MfgRefStrucItemWithDetails,
      _MfgRefHierItemWithDetails
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LOGISTICSORDERBASIC",
"I_MATLPLNTCOMPASSEMBLECONTROL",
"I_OPACTYINSTCENTWKELMNTBASIC",
"I_ORDERCOMPONENT",
"I_ORDEROPERATIONBASIC",
"P_OPACTYINSTANCEASSEMBLEDCOMP"
],
"ASSOCIATED":
[
"C_MFGORDERCOMPASSEMBLYAGGRGN",
"I_BILLOFMATERIALITEMCATEGORY",
"I_BOMITMMFGREFSTRUCITMASSGMT",
"I_MATERIAL",
"I_MATLCOMPASSEMBLECONTROL",
"I_MFGORDER",
"I_MFGREFHIERITEMWITHDETAILS",
"I_MFGREFSTRUCITEMWITHDETAILS",
"I_OPACTYBOOOPBOMINDIVITMASSGMT",
"I_OPACTYCOMPINSTCEASSIGNMENT",
"I_OPACTYNTWKINSTANCE",
"I_OPERATIONACTIVITYINSTANCE",
"I_OPERATIONACTIVITYTEXT",
"I_ORDERCOMPONENT",
"I_PLANT",
"I_RESERVATIONDOCUMENTHEADER",
"I_STORAGELOCATION"
],
"BASE":
[
"I_OPACTYINSTCENTWKELMNTBASIC",
"I_ORDERCOMPONENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/