I_OpActyInstanceComponent
Component of an Operation Activity Instance
I_OpActyInstanceComponent is a Basic CDS View that provides data about "Component of an Operation Activity Instance" in SAP S/4HANA. It reads from 2 data sources (I_OpActyComponentAssignment, resb) and exposes 97 fields with key fields OpActyNtwkInstance, OpActyNtwkElement, Reservation, ReservationItem, RecordType. It has 17 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_OpActyComponentAssignment | OpActyComponentAssignment | from |
| resb | resb | inner |
Associations (17)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ReservationDocumentHeader | _Reservation | $projection.Reservation = _Reservation.Reservation |
| [1..1] | I_ReservationDocumentItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation and $projection.ReservationItem = _ReservationItem.ReservationItem and $projection.RecordType = _ReservationItem.RecordType |
| [0..1] | I_ReservationDocRecordType | _ReservationDocRecordType | $projection.RecordType = _ReservationDocRecordType.RecordType |
| [1..1] | I_ManufacturingOrder | _ManufacturingOrder | $projection.ManufacturingOrder = _ManufacturingOrder.ManufacturingOrder |
| [1..1] | I_MfgOrderOperationBasic | _MfgOrderOperation | $projection.OrderInternalBillOfOperations = _MfgOrderOperation.OrderInternalBillOfOperations and $projection.OrderIntBillOfOperationsItem = _MfgOrderOperation.OrderIntBillOfOperationsItem |
| [1..1] | I_OrderInternalID | _OrderInternalID | $projection.OrderInternalBillOfOperations = _OrderInternalID.OrderInternalID |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [1..1] | I_Product | _Product | $projection.Material = _Product.Product |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_ProductPlantBasic | _ProductPlantBasic | $projection.Material = _ProductPlantBasic.Product and $projection.Plant = _ProductPlantBasic.Plant |
| [0..1] | I_StorageLocation | _StorageLocation | $projection.Plant = _StorageLocation.Plant and $projection.StorageLocation = _StorageLocation.StorageLocation |
| [0..1] | I_Batch | _Batch | $projection.Plant = _Batch.Plant and $projection.Material = _Batch.Material and $projection.Batch = _Batch.Batch |
| [0..1] | I_BillOfMaterialItemCategory | _BOMItemCategory | $projection.BOMItemCategory = _BOMItemCategory.BillOfMaterialItemCategory |
| [1..1] | I_UnitOfMeasure | _BaseUnit | $projection.BaseUnit = _BaseUnit.UnitOfMeasure |
| [1..1] | I_UnitOfMeasure | _EntryUnit | $projection.EntryUnit = _EntryUnit.UnitOfMeasure |
| [1..1] | I_DebitCreditCode | _DebitCreditCode | $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode |
| [0..1] | I_MatlCompDiscontinuationType | _MatlCompDiscontinuationType | $projection.MatlCompDiscontinuationType = _MatlCompDiscontinuationType.MatlCompDiscontinuationType |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | Component of an Operation Activity Instance | view |
Fields (97)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OpActyNtwkInstance | I_OpActyComponentAssignment | OpActyNtwkInstance | |
| KEY | OpActyNtwkElement | I_OpActyComponentAssignment | OpActyNtwkElement | |
| KEY | Reservation | I_OpActyComponentAssignment | Reservation | |
| KEY | ReservationItem | I_OpActyComponentAssignment | ReservationItem | |
| KEY | RecordType | I_OpActyComponentAssignment | RecordType | |
| MfgOrderComponentUsageQuantity | I_OpActyComponentAssignment | MfgOrderComponentUsageQuantity | ||
| MfgOrderComponentUsageNetQty | I_OpActyComponentAssignment | MfgOrderComponentUsageNetQty | ||
| AssemblySequenceNumber | I_OpActyComponentAssignment | AssemblySequenceNumber | ||
| BOOOpBOMItemInternalID | I_OpActyComponentAssignment | BOOOpBOMItemInternalID | ||
| LogicalComponent | I_OpActyComponentAssignment | LogicalComponent | ||
| ComponentAssemblyType | I_OpActyComponentAssignment | ComponentAssemblyType | ||
| RelatedReservation | I_OpActyComponentAssignment | RelatedReservation | ||
| RelatedReservationItem | I_OpActyComponentAssignment | RelatedReservationItem | ||
| RelatedRecordType | I_OpActyComponentAssignment | RelatedRecordType | ||
| RelatedOpActyNtwkInstance | I_OpActyComponentAssignment | RelatedOpActyNtwkInstance | ||
| RelatedOpActyNtwkElement | I_OpActyComponentAssignment | RelatedOpActyNtwkElement | ||
| MatlCompInstceAssyIsRequired | I_OpActyComponentAssignment | MatlCompInstceAssyIsRequired | ||
| PlannedInventoryUsabilityCode | I_OpActyComponentAssignment | PlannedInventoryUsabilityCode | ||
| LeadingReservation | I_OpActyComponentAssignment | LeadingReservation | ||
| LeadingReservationItem | I_OpActyComponentAssignment | LeadingReservationItem | ||
| LeadingReservationRecordType | I_OpActyComponentAssignment | LeadingReservationRecordType | ||
| LeadingOpActyNtwkInstance | I_OpActyComponentAssignment | LeadingOpActyNtwkInstance | ||
| LeadingOpActyNtwkElement | I_OpActyComponentAssignment | LeadingOpActyNtwkElement | ||
| MfgRefStrucBOMLeafAssgmtUUID | I_OpActyComponentAssignment | MfgRefStrucBOMLeafAssgmtUUID | ||
| MfgRefStructureItemDetailUUID | I_OpActyComponentAssignment | MfgRefStructureItemDetailUUID | ||
| MfgRefStrucItmDetIsContextual | I_OpActyComponentAssignment | MfgRefStrucItmDetIsContextual | ||
| ManufacturingOrder | resb | aufnr | ||
| OrderInternalBillOfOperations | ||||
| OrderIntBillOfOperationsItem | ||||
| Material | resb | matnr | ||
| Plant | resb | werks | ||
| StorageLocation | resb | lgort | ||
| BaseUnit | resb | meins | ||
| Batch | resb | charg | ||
| RequiredQuantity | resb | bdmng | ||
| EntryUnit | resb | erfme | ||
| GoodsMovementEntryQty | ||||
| ReservationIsFinallyIssued | resb | kzear | ||
| QuantityIsFixed | resb | fmeng | ||
| MatlCompIsMarkedForDeletion | ||||
| MaterialComponentIsMissing | resb | xfehl | ||
| IsBulkMaterialComponent | resb | schgt | ||
| MatlCompIsMarkedForBackflush | resb | rgekz | ||
| MatlCompIsTextItem | resb | txtps | ||
| MaterialPlanningRelevance | ||||
| MatlCompIsConfigurable | resb | kfpos | ||
| DebitCreditCode | ||||
| GoodsMovementIsAllowed | resb | xwaok | ||
| MatlCompDiscontinuationType | resb | kzaus | ||
| EffectivityParameterVariant | resb | techs | ||
| Assembly | resb | baugr | ||
| MaterialCompIsVariableSized | resb | rohps | ||
| VariableSizeItemQuantity | ||||
| VariableSizeComponentUnit | ||||
| VariableSizeComponentQuantity | ||||
| VariableSizeDimensionUnit | resb | romei | ||
| VariableSizeDimension1 | resb | roms1 | ||
| VariableSizeDimension2 | resb | roms2 | ||
| VariableSizeDimension3 | resb | roms3 | ||
| FormulaKey | resb | rform | ||
| BillOfMaterialCategory | ||||
| BillOfMaterialInternalID | ||||
| BillOfMaterialVariant | resb | stlal | ||
| BOMItem | ||||
| BillOfMaterialVersion | resb | bom_versn | ||
| BOMItemInternalChangeCount | resb | stpoz | ||
| InheritedBOMItemNode | resb | stvkn | ||
| BOMItemCategory | ||||
| BillOfMaterialItemNumber | ||||
| BOMItemDescription | resb | potx1 | ||
| BOMItemText2 | resb | potx2 | ||
| _OpActyNtwkInstance | I_OpActyComponentAssignment | _OpActyNtwkInstance | ||
| _OpActyNtwkInstanceBasic | I_OpActyComponentAssignment | _OpActyNtwkInstanceBasic | ||
| _OperationActivityInstance | I_OpActyComponentAssignment | _OperationActivityInstance | ||
| _ReservationHeader | I_OpActyComponentAssignment | _ReservationHeader | ||
| _ReltdOpActyCompAssignment | I_OpActyComponentAssignment | _ReltdOpActyCompAssignment | ||
| _PlannedInventoryUsblyCode | I_OpActyComponentAssignment | _PlannedInventoryUsblyCode | ||
| _BOMItmMfgRefStrucItmAssgmt | I_OpActyComponentAssignment | _BOMItmMfgRefStrucItmAssgmt | ||
| _MfgRefStrucItemWithDetails | I_OpActyComponentAssignment | _MfgRefStrucItemWithDetails | ||
| _MfgRefHierItemWithDetails | I_OpActyComponentAssignment | _MfgRefHierItemWithDetails | ||
| _Reservation | _Reservation | |||
| _ReservationItem | _ReservationItem | |||
| _ReservationDocRecordType | _ReservationDocRecordType | |||
| _ManufacturingOrder | _ManufacturingOrder | |||
| _MfgOrderOperation | _MfgOrderOperation | |||
| _OrderInternalID | _OrderInternalID | |||
| _Product | _Product | |||
| _Material | _Material | |||
| _ProductPlantBasic | _ProductPlantBasic | |||
| _Plant | _Plant | |||
| _StorageLocation | _StorageLocation | |||
| _Batch | _Batch | |||
| _BOMItemCategory | _BOMItemCategory | |||
| _BaseUnit | _BaseUnit | |||
| _EntryUnit | _EntryUnit | |||
| _DebitCreditCode | _DebitCreditCode | |||
| _MatlCompDiscontinuationType | _MatlCompDiscontinuationType |
@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,
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
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OPACTYCOMPONENTASSIGNMENT",
"RESB",
"TCS03"
],
"ASSOCIATED":
[
"I_BATCH",
"I_BILLOFMATERIALITEMCATEGORY",
"I_BOMITMMFGREFSTRUCITMASSGMT",
"I_DEBITCREDITCODE",
"I_MANUFACTURINGORDER",
"I_MATERIAL",
"I_MATLCOMPDISCONTINUATIONTYPE",
"I_MFGORDEROPERATIONBASIC",
"I_MFGREFHIERITEMWITHDETAILS",
"I_MFGREFSTRUCITEMWITHDETAILS",
"I_OPACTYCOMPONENTASSIGNMENT",
"I_OPACTYNTWKINSTANCE",
"I_OPACTYNTWKINSTANCEBASIC",
"I_OPERATIONACTIVITYINSTANCE",
"I_ORDERINTERNALID",
"I_PLANNEDINVENTORYUSBLYCODE",
"I_PLANT",
"I_PRODUCT",
"I_PRODUCTPLANTBASIC",
"I_RESERVATIONDOCRECORDTYPE",
"I_RESERVATIONDOCUMENTHEADER",
"I_RESERVATIONDOCUMENTITEM",
"I_STORAGELOCATION",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_OPACTYCOMPONENTASSIGNMENT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA