I_OPACTYINSTANCECOMPONENT

CDS View

Component of an Operation Activity Instance

I_OPACTYINSTANCECOMPONENT is a CDS View in S/4HANA. Component of an Operation Activity Instance. It contains 92 fields. 5 CDS views read from this table.

CDS Views using this table (5)

ViewTypeJoinVDMDescription
P_OpActyInstceComponentDetail view_entity from COMPOSITE
P_OpActyNonTrcblCompAdjdQty view_entity from CONSUMPTION
P_OpActyNonTrcblCompAdjdQty view_entity union_all CONSUMPTION
P_SFIBkflshdReassldComponent view_entity from CONSUMPTION
P_SFINotAssldTrcblComponent1 view_entity from COMPOSITE SFI Not Assembled Traceable Components

Fields (92)

KeyField CDS FieldsUsed in Views
KEY OpActyNtwkElement LeadingOpActyNtwkElement,OpActyNtwkElement 3
KEY OpActyNtwkInstance LeadingOpActyNtwkInstance,OpActyNtwkInstance 3
KEY RecordType LeadingReservationRecordType,RecordType 4
KEY Reservation LeadingReservation,Reservation 4
KEY ReservationItem LeadingReservationItem,ReservationItem 4
_BaseUnit _BaseUnit 1
_Batch _Batch 1
_BOMItemCategory _BOMItemCategory 1
_BOMItmMfgRefStrucItmAssgmt _BOMItmMfgRefStrucItmAssgmt 1
_DebitCreditCode _DebitCreditCode 1
_EntryUnit _EntryUnit 1
_ManufacturingOrder _ManufacturingOrder 1
_Material _Material 1
_MatlCompDiscontinuationType _MatlCompDiscontinuationType 1
_MfgOrderOperation _MfgOrderOperation 1
_MfgRefHierItemWithDetails _MfgRefHierItemWithDetails 1
_MfgRefStrucItemWithDetails _MfgRefStrucItemWithDetails 1
_OpActyNtwkInstance _OpActyNtwkInstance 1
_OpActyNtwkInstanceBasic _OpActyNtwkInstanceBasic 2
_OperationActivityInstance _OperationActivityInstance 2
_OrderInternalID _OrderInternalID 1
_PlannedInventoryUsblyCode _PlannedInventoryUsblyCode 1
_Plant _Plant 1
_Product _Product 1
_ProductPlantBasic _ProductPlantBasic 1
_ReltdOpActyCompAssignment _ReltdOpActyCompAssignment 1
_Reservation _Reservation 1
_ReservationDocRecordType _ReservationDocRecordType 1
_ReservationHeader _ReservationHeader 2
_ReservationItem _ReservationItem 1
_StorageLocation _StorageLocation 1
AlternativeItemGroup AlternativeItemGroup 1
Assembly Assembly 1
AssemblySequenceNumber AssemblySequenceNumber 1
BaseUnit BaseUnit 4
Batch Batch 2
BillOfMaterialCategory BillOfMaterialCategory 1
BillOfMaterialInternalID BillOfMaterialInternalID 1
BillOfMaterialItemNumber BillOfMaterialItemNumber 2
BillOfMaterialVariant BillOfMaterialVariant 2
BillOfMaterialVersion BillOfMaterialVersion 2
BOMItem BOMItem 2
BOMItemCategory BOMItemCategory 2
BOMItemInternalChangeCount BOMItemInternalChangeCount 2
BOOOpBOMItemInternalID BOOOpBOMItemInternalID 1
ComponentAssemblyType ComponentAssemblyType 2
DebitCreditCode DebitCreditCode 1
EffectivityParameterVariant EffectivityParameterVariant 1
EntryUnit EntryUnit 2
FormulaKey FormulaKey 1
GoodsMovementIsAllowed GoodsMovementIsAllowed 1
InheritedBOMItemNode InheritedBOMItemNode 2
IsBulkMaterialComponent IsBulkMaterialComponent 1
LeadingOpActyNtwkElement LeadingOpActyNtwkElement 3
LeadingOpActyNtwkInstance LeadingOpActyNtwkInstance 3
LeadingReservation LeadingReservation 3
LeadingReservationItem LeadingReservationItem 3
LeadingReservationRecordType LeadingReservationRecordType 3
LogicalComponent LogicalComponent 1
ManufacturingOrder ManufacturingOrder 2
Material Material 2
MaterialCompIsVariableSized MaterialCompIsVariableSized 1
MaterialComponentIsMissing MaterialComponentIsMissing 1
MatlCompDiscontinuationType MatlCompDiscontinuationType 1
MatlCompInstceAssyIsRequired MatlCompInstceAssyIsRequired 2
MatlCompIsMarkedForBackflush MatlCompIsMarkedForBackflush 1
MfgOrderComponentUsageNetQty MfgOrderComponentUsageNetQty 1
MfgOrderComponentUsageQuantity MfgOrderComponentUsageQuantity 1
MfgRefStrucBOMLeafAssgmtUUID MfgRefStrucBOMLeafAssgmtUUID 1
MfgRefStrucItmDetIsContextual MfgRefStrucItmDetIsContextual 2
MfgRefStructureItemDetailUUID MfgRefStructureItemDetailUUID 2
OrderIntBillOfOperationsItem OrderIntBillOfOperationsItem 2
OrderInternalBillOfOperations OrderInternalBillOfOperations 1
OriginalReservation OriginalReservation 1
OriginalReservationItem OriginalReservationItem 1
PlannedInventoryUsabilityCode PlannedInventoryUsabilityCode 1
Plant Plant 2
QuantityIsFixed QuantityIsFixed 1
RelatedOpActyNtwkElement RelatedOpActyNtwkElement 2
RelatedOpActyNtwkInstance RelatedOpActyNtwkInstance 2
RelatedRecordType RelatedRecordType 2
RelatedReservation RelatedReservation 2
RelatedReservationItem RelatedReservationItem 2
ReservationIsFinallyIssued ReservationIsFinallyIssued 1
StorageLocation StorageLocation 2
VariableSizeComponentQuantity VariableSizeComponentQuantity 1
VariableSizeComponentUnit VariableSizeComponentUnit 1
VariableSizeDimension1 VariableSizeDimension1 1
VariableSizeDimension2 VariableSizeDimension2 1
VariableSizeDimension3 VariableSizeDimension3 1
VariableSizeDimensionUnit VariableSizeDimensionUnit 1
VariableSizeItemUnit VariableSizeItemUnit 1
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #BASIC
@EndUserText.label: 'Component of an Operation Activity Instance'
define view entity I_OpActyInstanceComponent
  as select from           I_OpActyComponentAssignment as OpActyComponentAssignment
    inner join             resb                        as resb  on  resb.rsnum = OpActyComponentAssignment.Reservation
                                                                and resb.rspos = OpActyComponentAssignment.ReservationItem
                                                                and resb.rsart = OpActyComponentAssignment.RecordType
    left outer to one join tcs03                       as tcs03 on tcs03.agb29 = '29'

  association [1..1] to I_ReservationDocumentHeader   as _Reservation                 on  $projection.Reservation = _Reservation.Reservation
  association [1..1] to I_ReservationDocumentItem     as _ReservationItem             on  $projection.Reservation     = _ReservationItem.Reservation
                                                                                      and $projection.ReservationItem = _ReservationItem.ReservationItem
                                                                                      and $projection.RecordType      = _ReservationItem.RecordType
  association [0..1] to I_ReservationDocRecordType    as _ReservationDocRecordType    on  $projection.RecordType = _ReservationDocRecordType.RecordType
  association [1..1] to I_ManufacturingOrder          as _ManufacturingOrder          on  $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder
  association [1..1] to I_MfgOrderOperationBasic      as _MfgOrderOperation           on  $projection.OrderInternalBillOfOperations = _MfgOrderOperation.OrderInternalBillOfOperations
                                                                                      and $projection.OrderIntBillOfOperationsItem  = _MfgOrderOperation.OrderIntBillOfOperationsItem
  association [1..1] to I_OrderInternalID             as _OrderInternalID             on  $projection.OrderInternalBillOfOperations = _OrderInternalID.OrderInternalID
  association [1..1] to I_Material                    as _Material                    on  $projection.Material = _Material.Material
  association [1..1] to I_Product                     as _Product                     on  $projection.Material = _Product.Product
  association [1..1] to I_Plant                       as _Plant                       on  $projection.Plant = _Plant.Plant
  association [1..1] to I_ProductPlantBasic           as _ProductPlantBasic           on  $projection.Material = _ProductPlantBasic.Product
                                                                                      and $projection.Plant    = _ProductPlantBasic.Plant
  association [0..1] to I_StorageLocation             as _StorageLocation             on  $projection.Plant           = _StorageLocation.Plant
                                                                                      and $projection.StorageLocation = _StorageLocation.StorageLocation
  association [0..1] to I_Batch                       as _Batch                       on  $projection.Plant    = _Batch.Plant
                                                                                      and $projection.Material = _Batch.Material
                                                                                      and $projection.Batch    = _Batch.Batch
  association [0..1] to I_BillOfMaterialItemCategory  as _BOMItemCategory             on  $projection.BOMItemCategory = _BOMItemCategory.BillOfMaterialItemCategory
  association [1..1] to I_UnitOfMeasure               as _BaseUnit                    on  $projection.BaseUnit = _BaseUnit.UnitOfMeasure
  association [1..1] to I_UnitOfMeasure               as _EntryUnit                   on  $projection.EntryUnit = _EntryUnit.UnitOfMeasure
  association [1..1] to I_DebitCreditCode             as _DebitCreditCode             on  $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
  association [0..1] to I_MatlCompDiscontinuationType as _MatlCompDiscontinuationType on  $projection.MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType

{
      @ObjectModel.foreignKey.association: '_OpActyNtwkInstance'
  key OpActyComponentAssignment.OpActyNtwkInstance,
      @ObjectModel.foreignKey.association: '_OperationActivityInstance'
  key OpActyComponentAssignment.OpActyNtwkElement,
      @ObjectModel.foreignKey.association: '_ReservationHeader'
  key OpActyComponentAssignment.Reservation,
  key OpActyComponentAssignment.ReservationItem,
  key OpActyComponentAssignment.RecordType,
      OpActyComponentAssignment.MfgOrderComponentUsageQuantity,
      OpActyComponentAssignment.MfgOrderComponentUsageNetQty,
      OpActyComponentAssignment.AssemblySequenceNumber,
      OpActyComponentAssignment.BOOOpBOMItemInternalID,
      OpActyComponentAssignment.LogicalComponent,
      OpActyComponentAssignment.ComponentAssemblyType,
      OpActyComponentAssignment.RelatedReservation,
      OpActyComponentAssignment.RelatedReservationItem,
      OpActyComponentAssignment.RelatedRecordType,
      OpActyComponentAssignment.RelatedOpActyNtwkInstance,
      OpActyComponentAssignment.RelatedOpActyNtwkElement,
      OpActyComponentAssignment.MatlCompInstceAssyIsRequired,
      OpActyComponentAssignment.PlannedInventoryUsabilityCode,
      OpActyComponentAssignment.LeadingReservation,
      OpActyComponentAssignment.LeadingReservationItem,
      OpActyComponentAssignment.LeadingReservationRecordType,
      OpActyComponentAssignment.LeadingOpActyNtwkInstance,
      OpActyComponentAssignment.LeadingOpActyNtwkElement,
      OpActyComponentAssignment.MfgRefStrucBOMLeafAssgmtUUID,
      OpActyComponentAssignment.MfgRefStructureItemDetailUUID,
      OpActyComponentAssignment.MfgRefStrucItmDetIsContextual,
      resb.aufnr                                              as ManufacturingOrder,
      @ObjectModel.foreignKey.association: '_OrderInternalID'
      cast(resb.aufpl as pph_aufpl preserving type)           as OrderInternalBillOfOperations,
      @ObjectModel.foreignKey.association: '_MfgOrderOperation'
      cast(resb.aplzl as operationinternalid preserving type) as OrderIntBillOfOperationsItem,
      @ObjectModel.foreignKey.association: '_Material'
      resb.matnr                                              as Material,
      @ObjectModel.foreignKey.association: '_Plant'
      resb.werks                                              as Plant,
      resb.lgort                                              as StorageLocation,
      resb.meins                                              as BaseUnit,
      @ObjectModel.foreignKey.association: '_Batch'
      resb.charg                                              as Batch,
      @Semantics.quantity.unitOfMeasure: 'BaseUnit'
      resb.bdmng                                              as RequiredQuantity,
      resb.erfme                                              as EntryUnit,
      @Semantics.quantity.unitOfMeasure: 'EntryUnit'
      cast(resb.erfmg as pph_erfmg preserving type)           as GoodsMovementEntryQty,
      resb.kzear                                              as ReservationIsFinallyIssued,
      resb.fmeng                                              as QuantityIsFixed,
      cast(resb.xloek as pph_xloek preserving type)           as MatlCompIsMarkedForDeletion,
      resb.xfehl                                              as MaterialComponentIsMissing,
      resb.schgt                                              as IsBulkMaterialComponent,
      resb.rgekz                                              as MatlCompIsMarkedForBackflush,
      resb.txtps                                              as MatlCompIsTextItem,
      cast(resb.no_disp as vdm_no_disp preserving type)       as MaterialPlanningRelevance,
      resb.kfpos                                              as MatlCompIsConfigurable,
      @ObjectModel.foreignKey.association: '_DebitCreditCode'
      cast(resb.shkzg as pph_shkzg preserving type)           as DebitCreditCode,
      resb.xwaok                                              as GoodsMovementIsAllowed,
      @ObjectModel.foreignKey.association: '_MatlCompDiscontinuationType'
      resb.kzaus                                              as MatlCompDiscontinuationType,
      resb.techs                                              as EffectivityParameterVariant,
      resb.baugr                                              as Assembly,

      // Variable-size comp. data

      resb.rohps                                              as MaterialCompIsVariableSized,
      cast(case
             when resb.rohps = 'X' then tcs03.roame
             else resb.rohps
      end as vdm_roame)                                       as VariableSizeItemUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeItemUnit'
      cast(resb.roanz as pph_roanz preserving type)           as VariableSizeItemQuantity,
      cast(resb.rokme as pph_rokme preserving type)           as VariableSizeComponentUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeComponentUnit'
      cast(resb.romen as pph_romen preserving type)           as VariableSizeComponentQuantity,
      resb.romei                                              as VariableSizeDimensionUnit,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      resb.roms1                                              as VariableSizeDimension1,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      resb.roms2                                              as VariableSizeDimension2,
      @Semantics.quantity.unitOfMeasure: 'VariableSizeDimensionUnit'
      resb.roms3                                              as VariableSizeDimension3,
      resb.rform                                              as FormulaKey,

      // Assignments BOM

      cast(resb.stlty as pph_stlty preserving type)           as BillOfMaterialCategory,
      cast(resb.stlnr as pph_stnum preserving type)           as BillOfMaterialInternalID,
      resb.stlal                                              as BillOfMaterialVariant,
      cast(resb.stlkn as pph_stlkn preserving type)           as BOMItem,
      resb.bom_versn                                          as BillOfMaterialVersion,
      resb.stpoz                                              as BOMItemInternalChangeCount,
      resb.stvkn                                              as InheritedBOMItemNode,
      cast(resb.postp as pph_postp preserving type)           as BOMItemCategory,
      @ObjectModel.text.element: ['BOMItemDescription']
      cast(resb.posnr as vdm_sposn preserving type)           as BillOfMaterialItemNumber,
      @Semantics.text: true
      resb.potx1                                              as BOMItemDescription,
      @Semantics.text: true
      resb.potx2                                              as BOMItemText2,
      resb.original_rsnum                                     as OriginalReservation,
      resb.original_rspos                                     as OriginalReservationItem,
      cast(resb.alpgr as pph_alpgr preserving type)           as AlternativeItemGroup,

      OpActyComponentAssignment._OpActyNtwkInstance,
      OpActyComponentAssignment._OpActyNtwkInstanceBasic,
      OpActyComponentAssignment._OperationActivityInstance,
      OpActyComponentAssignment._ReservationHeader,
      OpActyComponentAssignment._ReltdOpActyCompAssignment,
      OpActyComponentAssignment._PlannedInventoryUsblyCode,
      OpActyComponentAssignment._BOMItmMfgRefStrucItmAssgmt,
      OpActyComponentAssignment._MfgRefStrucItemWithDetails,
      OpActyComponentAssignment._MfgRefHierItemWithDetails,
      _Reservation,
      _ReservationItem,
      _ReservationDocRecordType,
      _ManufacturingOrder,
      _MfgOrderOperation,
      _OrderInternalID,
      _Product,
      _Material,
      _ProductPlantBasic,
      _Plant,
      _StorageLocation,
      _Batch,
      _BOMItemCategory,
      _BaseUnit,
      _EntryUnit,
      _DebitCreditCode,
      _MatlCompDiscontinuationType
}