P_ShopFloorItemComponent

DDL: P_SHOPFLOORITEMCOMPONENT SQL: PMPESFICMP Type: view CONSUMPTION

P_ShopFloorItemComponent is a Consumption CDS View in SAP S/4HANA. It reads from 5 data sources (I_MfgOrderCompAssemblyAggrgn, I_OpActyComponentAssignment, I_OpActyNtwkInstanceBasic, I_ReservationItem, I_ShopFloorItemStatus) and exposes 77 fields with key fields Reservation, ReservationItem, RecordType, OpActyNtwkInstance, OpActyNtwkElement. It has 5 associations to related views.

Data Sources (5)

SourceAliasJoin Type
I_MfgOrderCompAssemblyAggrgn MfgOrderCompAssemblyAggrgn from
I_OpActyComponentAssignment OpActyComponentAssignment inner
I_OpActyNtwkInstanceBasic OpActyNtwkInstanceBasic inner
I_ReservationItem ReservationItem inner
I_ShopFloorItemStatus ShopFloorItemStatus union_all

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[0..1] I_ProductPlant _ProductPlant $projection.Material = _ProductPlant.Product and $projection.Plant = _ProductPlant.Plant
[1..1] I_OpActyNtwkInstance _OpActyNtwkInstance $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance
[1..1] I_OperationActivityInstance _OperationActivityInstance $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement
[1..1] I_Material _Material $projection.Material = _Material.Material

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMPESFICMP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (77)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_MfgOrderCompAssemblyAggrgn Reservation
KEY ReservationItem I_MfgOrderCompAssemblyAggrgn ReservationItem
KEY RecordType I_MfgOrderCompAssemblyAggrgn RecordType
KEY OpActyNtwkInstance I_MfgOrderCompAssemblyAggrgn OpActyNtwkInstance
KEY OpActyNtwkElement I_MfgOrderCompAssemblyAggrgn OpActyNtwkElement
KEY AssemblyShopFloorItem I_MfgOrderCompAssemblyAggrgn AssemblyShopFloorItem
KEY ShopFloorItem I_MfgOrderCompAssemblyAggrgn ShopFloorItem
KEY Batch I_MfgOrderCompAssemblyAggrgn Batch
KEY Material I_MfgOrderCompAssemblyAggrgn Material
KEY Plant I_MfgOrderCompAssemblyAggrgn Plant
KEY OriglDgtlMockUpCharcsUUID I_MfgOrderCompAssemblyAggrgn OriglDgtlMockUpCharcsUUID
dec1343asco_mengeasRequiredQuantity
MaterialComponentQuantity I_MfgOrderCompAssemblyAggrgn MaterialComponentQuantity
MaterialBaseUnit I_MfgOrderCompAssemblyAggrgn MaterialBaseUnit
ManufacturingOrder OpActyNtwkInstance ManufacturingOrder
OrderInternalID OpActyNtwkInstance OrderInternalID
OrderOperationInternalID OpActyNtwkInstance OrderOperationInternalID
OperationActivityNetwork OpActyNtwkInstance OperationActivityNetwork
OpActyNtwkVersionCounter OpActyNtwkInstance OpActyNtwkVersionCounter
SerialNumber
DgtlMockUpCharcsUUID I_MfgOrderCompAssemblyAggrgn DgtlMockUpCharcsUUID
ReferenceDesignatorValue I_MfgOrderCompAssemblyAggrgn ReferenceDesignatorValue
MatlCompIsMarkedForBackflush
DebitCreditCode I_MfgOrderCompAssemblyAggrgn DebitCreditCode
RelatedOpActyNtwkElement I_OpActyComponentAssignment RelatedOpActyNtwkElement
RelatedOpActyNtwkInstance I_OpActyComponentAssignment RelatedOpActyNtwkInstance
RelatedRecordType I_OpActyComponentAssignment RelatedRecordType
RelatedReservation I_OpActyComponentAssignment RelatedReservation
RelatedReservationItem I_OpActyComponentAssignment RelatedReservationItem
LeadingOpActyNtwkElement I_OpActyComponentAssignment LeadingOpActyNtwkElement
LeadingOpActyNtwkInstance I_OpActyComponentAssignment LeadingOpActyNtwkInstance
LeadingReservationRecordType I_OpActyComponentAssignment LeadingReservationRecordType
LeadingReservation I_OpActyComponentAssignment LeadingReservation
LeadingReservationItem I_OpActyComponentAssignment LeadingReservationItem
_Material I_MfgOrderCompAssemblyAggrgn _Material
_Plant _Plant
_ProductPlant _ProductPlant
_OpActyNtwkInstance _OpActyNtwkInstance
Reservation
KEY ReservationItem I_OpActyComponentAssignment ReservationItem
KEY RecordType I_OpActyComponentAssignment RecordType
KEY OpActyNtwkInstance I_OpActyComponentAssignment OpActyNtwkInstance
KEY OpActyNtwkElement I_OpActyComponentAssignment OpActyNtwkElement
KEY AssemblyShopFloorItem I_ShopFloorItemStatus ShopFloorItem
KEY ShopFloorItem 0
KEY Batch
KEY Material I_ReservationItem Material
KEY Plant I_ReservationItem Plant
KEY OriglDgtlMockUpCharcsUUID
dec1343asco_mengeasRequiredQuantity
MaterialComponentQuantity I_OpActyComponentAssignment MfgOrderComponentUsageQuantity
MaterialBaseUnit I_ReservationItem BaseUnit
ManufacturingOrder I_OpActyNtwkInstanceBasic ManufacturingOrder
OrderInternalID I_OpActyNtwkInstanceBasic OrderInternalID
OrderOperationInternalID I_OpActyNtwkInstanceBasic OrderOperationInternalID
OperationActivityNetwork I_OpActyNtwkInstanceBasic OperationActivityNetwork
OpActyNtwkVersionCounter I_OpActyNtwkInstanceBasic OpActyNtwkVersionCounter
SerialNumber
DgtlMockUpCharcsUUID
ReferenceDesignatorValue
MatlCompIsMarkedForBackflush
DebitCreditCode I_ReservationItem DebitCreditCode
RelatedOpActyNtwkElement I_OpActyComponentAssignment RelatedOpActyNtwkElement
RelatedOpActyNtwkInstance I_OpActyComponentAssignment RelatedOpActyNtwkInstance
RelatedRecordType I_OpActyComponentAssignment RelatedRecordType
RelatedReservation I_OpActyComponentAssignment RelatedReservation
RelatedReservationItem I_OpActyComponentAssignment RelatedReservationItem
LeadingOpActyNtwkElement I_OpActyComponentAssignment LeadingOpActyNtwkElement
LeadingOpActyNtwkInstance I_OpActyComponentAssignment LeadingOpActyNtwkInstance
LeadingReservationRecordType I_OpActyComponentAssignment LeadingReservationRecordType
LeadingReservation I_OpActyComponentAssignment LeadingReservation
LeadingReservationItem I_OpActyComponentAssignment LeadingReservationItem
_Material _Material
_Plant _Plant
_ProductPlant _ProductPlant
_OpActyNtwkInstance _OpActyNtwkInstance
_OperationActivityInstance _OperationActivityInstance
@AbapCatalog.sqlViewName: 'PMPESFICMP'
@AbapCatalog.compiler.compareFilter:true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #D, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #CONSUMPTION
@VDM.private: true
define view P_ShopFloorItemComponent
  as select from           I_MfgOrderCompAssemblyAggrgn as MfgOrderCompAssemblyAggrgn
    left outer to one join I_OpActyNtwkInstanceBasic    as OpActyNtwkInstance        on OpActyNtwkInstance.OpActyNtwkInstance = MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance
    left outer to one join I_OpActyComponentAssignment  as OpActyComponentAssignment on  OpActyComponentAssignment.OpActyNtwkInstance = MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance
                                                                                     and OpActyComponentAssignment.OpActyNtwkElement  = MfgOrderCompAssemblyAggrgn.OpActyNtwkElement
                                                                                     and OpActyComponentAssignment.Reservation        = MfgOrderCompAssemblyAggrgn.Reservation
                                                                                     and OpActyComponentAssignment.ReservationItem    = MfgOrderCompAssemblyAggrgn.ReservationItem
                                                                                     and OpActyComponentAssignment.RecordType         = MfgOrderCompAssemblyAggrgn.RecordType
  association [0..1] to I_Plant                     as _Plant                     on  $projection.Plant = _Plant.Plant
  association [0..1] to I_ProductPlant              as _ProductPlant              on  $projection.Material = _ProductPlant.Product
                                                                                  and $projection.Plant    = _ProductPlant.Plant
  association [1..1] to I_OpActyNtwkInstance        as _OpActyNtwkInstance        on  $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance
  association [1..1] to I_OperationActivityInstance as _OperationActivityInstance on  $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance
                                                                                  and $projection.OpActyNtwkElement  = _OperationActivityInstance.OpActyNtwkElement
{
  key MfgOrderCompAssemblyAggrgn.Reservation,
  key MfgOrderCompAssemblyAggrgn.ReservationItem,
  key MfgOrderCompAssemblyAggrgn.RecordType,
      @ObjectModel.foreignKey.association: '_OpActyNtwkInstance'
  key MfgOrderCompAssemblyAggrgn.OpActyNtwkInstance,
      @ObjectModel.foreignKey.association: '_OperationActivityInstance'
  key MfgOrderCompAssemblyAggrgn.OpActyNtwkElement,
  key MfgOrderCompAssemblyAggrgn.AssemblyShopFloorItem,
  key MfgOrderCompAssemblyAggrgn.ShopFloorItem,
  key MfgOrderCompAssemblyAggrgn.Batch,
  key MfgOrderCompAssemblyAggrgn.Material,
      @ObjectModel.foreignKey.association: '_Plant'
  key MfgOrderCompAssemblyAggrgn.Plant,
  key MfgOrderCompAssemblyAggrgn.OriglDgtlMockUpCharcsUUID,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      cast(round(fltp_to_dec( OpActyComponentAssignment.MfgOrderComponentUsageNetQty as abap.dec(13,4) ), 3)
        as co_menge )                                       as RequiredQuantity,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      MfgOrderCompAssemblyAggrgn.MaterialComponentQuantity,
      @Semantics.unitOfMeasure: true
      MfgOrderCompAssemblyAggrgn.MaterialBaseUnit,
      OpActyNtwkInstance.ManufacturingOrder,
      OpActyNtwkInstance.OrderInternalID,
      OpActyNtwkInstance.OrderOperationInternalID,
      OpActyNtwkInstance.OperationActivityNetwork,
      OpActyNtwkInstance.OpActyNtwkVersionCounter,
      MfgOrderCompAssemblyAggrgn._ShopFloorItem.SerialNumber,
      MfgOrderCompAssemblyAggrgn.DgtlMockUpCharcsUUID,
      MfgOrderCompAssemblyAggrgn.ReferenceDesignatorValue,
      cast('' as mpe_comp_is_for_backflush preserving type) as MatlCompIsMarkedForBackflush,
      MfgOrderCompAssemblyAggrgn.DebitCreditCode            as DebitCreditCode,
      OpActyComponentAssignment.RelatedOpActyNtwkElement,
      OpActyComponentAssignment.RelatedOpActyNtwkInstance,
      OpActyComponentAssignment.RelatedRecordType,
      OpActyComponentAssignment.RelatedReservation,
      OpActyComponentAssignment.RelatedReservationItem,
      OpActyComponentAssignment.LeadingOpActyNtwkElement,
      OpActyComponentAssignment.LeadingOpActyNtwkInstance,
      OpActyComponentAssignment.LeadingReservationRecordType,
      OpActyComponentAssignment.LeadingReservation,
      OpActyComponentAssignment.LeadingReservationItem,

      MfgOrderCompAssemblyAggrgn._Material,
      _Plant,
      _ProductPlant,
      _OpActyNtwkInstance,
      _OperationActivityInstance

}

-- add backflushed components

union all

select from  I_ShopFloorItemStatus       as ShopFloorItemStatus
  inner join I_OpActyNtwkInstanceBasic   as OpActyNtwkInstanceBasic   on OpActyNtwkInstanceBasic.OpActyNtwkInstance = ShopFloorItemStatus.OpActyNtwkInstance
  inner join I_OpActyComponentAssignment as OpActyComponentAssignment on  OpActyComponentAssignment.OpActyNtwkInstance = ShopFloorItemStatus.OpActyNtwkInstance
                                                                      and OpActyComponentAssignment.OpActyNtwkElement  = ShopFloorItemStatus.OpActyNtwkElement
  inner join I_ReservationItem           as ReservationItem           on  ReservationItem.Reservation                  = OpActyComponentAssignment.Reservation
                                                                      and ReservationItem.ReservationItem              = OpActyComponentAssignment.ReservationItem
                                                                      and ReservationItem.RecordType                   = OpActyComponentAssignment.RecordType
                                                                      and ReservationItem.MatlCompIsMarkedForBackflush = 'X' --backflushed
association [0..1] to I_Plant                     as _Plant                     on  $projection.Plant = _Plant.Plant
association [1..1] to I_Material                  as _Material                  on  $projection.Material = _Material.Material
association [0..1] to I_ProductPlant              as _ProductPlant              on  $projection.Material = _ProductPlant.Product
                                                                                and $projection.Plant    = _ProductPlant.Plant
association [1..1] to I_OpActyNtwkInstance        as _OpActyNtwkInstance        on  $projection.OpActyNtwkInstance = _OpActyNtwkInstance.OpActyNtwkInstance
association [1..1] to I_OperationActivityInstance as _OperationActivityInstance on  $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance
                                                                                and $projection.OpActyNtwkElement  = _OperationActivityInstance.OpActyNtwkElement
{
      @UI.hidden:true
  key OpActyComponentAssignment.Reservation,
  key OpActyComponentAssignment.ReservationItem,
  key OpActyComponentAssignment.RecordType,
      @ObjectModel.foreignKey.association: '_OpActyNtwkInstance'
  key OpActyComponentAssignment.OpActyNtwkInstance,
      @ObjectModel.foreignKey.association: '_OperationActivityInstance'
  key OpActyComponentAssignment.OpActyNtwkElement,
  key ShopFloorItemStatus.ShopFloorItem                                                 as AssemblyShopFloorItem,
  key 0                                                                                 as ShopFloorItem,
  key cast('' as charg_d)                                                               as Batch,
  key ReservationItem.Material,
      @ObjectModel.foreignKey.association: '_Plant'
  key ReservationItem.Plant,
  key cast(hextobin('00000000000000000000000000000000') as dmu_guid16 preserving type ) as OriglDgtlMockUpCharcsUUID,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      cast(round(fltp_to_dec( OpActyComponentAssignment.MfgOrderComponentUsageNetQty as abap.dec(13,4) ), 3)
        as co_menge )                                                                   as RequiredQuantity,
      @Semantics.quantity.unitOfMeasure: 'MaterialBaseUnit'
      OpActyComponentAssignment.MfgOrderComponentUsageQuantity                          as MaterialComponentQuantity,
      @Semantics.unitOfMeasure: true
      ReservationItem.BaseUnit                                                          as MaterialBaseUnit,
      OpActyNtwkInstanceBasic.ManufacturingOrder,
      OpActyNtwkInstanceBasic.OrderInternalID,
      OpActyNtwkInstanceBasic.OrderOperationInternalID,
      OpActyNtwkInstanceBasic.OperationActivityNetwork,
      OpActyNtwkInstanceBasic.OpActyNtwkVersionCounter,
      cast('' as gernr)                                                                 as SerialNumber,
      cast(hextobin('00000000000000000000000000000000') as dmu_guid16 preserving type ) as DgtlMockUpCharcsUUID,
      cast('' as char128)                                                               as ReferenceDesignatorValue,
      cast('X' as mpe_comp_is_for_backflush preserving type)                            as MatlCompIsMarkedForBackflush,
      ReservationItem.DebitCreditCode                                                   as DebitCreditCode,
      OpActyComponentAssignment.RelatedOpActyNtwkElement                                as RelatedOpActyNtwkElement,
      OpActyComponentAssignment.RelatedOpActyNtwkInstance                               as RelatedOpActyNtwkInstance,
      OpActyComponentAssignment.RelatedRecordType                                       as RelatedRecordType,
      OpActyComponentAssignment.RelatedReservation                                      as RelatedReservation,
      OpActyComponentAssignment.RelatedReservationItem                                  as RelatedReservationItem,
      OpActyComponentAssignment.LeadingOpActyNtwkElement                                as LeadingOpActyNtwkElement,
      OpActyComponentAssignment.LeadingOpActyNtwkInstance                               as LeadingOpActyNtwkInstance,
      OpActyComponentAssignment.LeadingReservationRecordType                            as LeadingReservationRecordType,
      OpActyComponentAssignment.LeadingReservation                                      as LeadingReservation,
      OpActyComponentAssignment.LeadingReservationItem                                  as LeadingReservationItem,
      _Material,
      _Plant,
      _ProductPlant,
      _OpActyNtwkInstance,
      _OperationActivityInstance
}
where
        ShopFloorItemStatus._SASStatus.SASStatusCategory = 3 -- Completed
  or(
        ShopFloorItemStatus._SASStatus.SASStatusCategory = 7 -- Scrapped
    and ShopFloorItemStatus._SASStatus.SASStatusCategory = 2 -- from In Process
  )
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MFGORDERCOMPASSEMBLYAGGRGN",
"I_OPACTYCOMPONENTASSIGNMENT",
"I_OPACTYNTWKINSTANCEBASIC",
"I_RESERVATIONITEM",
"I_SASSTATUS",
"I_SHOPFLOORITEM",
"I_SHOPFLOORITEMSTATUS"
],
"ASSOCIATED":
[
"I_MATERIAL",
"I_OPACTYNTWKINSTANCE",
"I_OPERATIONACTIVITYINSTANCE",
"I_PLANT",
"I_PRODUCTPLANT"
],
"BASE":
[
"I_MFGORDERCOMPASSEMBLYAGGRGN"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/