I_MaintOrderOpAndSubOp_2
Maintenance Order Operation and Suboperation
I_MaintOrderOpAndSubOp_2 is a Basic CDS View that provides data about "Maintenance Order Operation and Suboperation" in SAP S/4HANA. It reads from 2 data sources (afko, afvc) and exposes 83 fields with key fields MaintOrderRoutingNumber, MaintenanceOrderRoutingNode. It has 15 associations to related views.
Associations (15)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaintOrderOperPlanningValues | _OperationPlanningValues | $projection.MaintOrderRoutingNumber = _OperationPlanningValues.MaintOrderRoutingNumber and $projection.MaintenanceOrderRoutingNode = _OperationPlanningValues.MaintOrderOperationCounter |
| [0..1] | I_WorkCenter | _WorkCenter | _WorkCenter.WorkCenterInternalID = $projection.OperationWorkCenterInternalID and _WorkCenter.WorkCenterTypeCode = $projection.OperationWorkCenterTypeCode |
| [0..1] | I_Plant | _Plant | _Plant.Plant = $projection.Plant |
| [0..1] | I_OperationControlProfile | _OperationControlKey | _OperationControlKey.OperationControlProfile = $projection.OperationControlKey |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder |
| [0..*] | I_StatusObjectActiveStatus | _StatusObjectActiveStatus | _StatusObjectActiveStatus.StatusObject = $projection.MaintOrdOperationStatusObject |
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [0..*] | I_OrderProdnResourceTool | _MaintOrderProdnRsceTool | _MaintOrderProdnRsceTool.OrderInternalBillOfOperations = $projection.MaintOrderRoutingNumber and _MaintOrderProdnRsceTool.OrderIntBillOfOperationsItem = $projection.MaintenanceOrderRoutingNode |
| [0..*] | I_MaintenanceOrderComponent_2 | _MaintOrderComponent | _MaintOrderComponent.MaintOrderRoutingNumber = $projection.MaintOrderRoutingNumber and _MaintOrderComponent.MaintOrderOperationCounter = $projection.MaintenanceOrderRoutingNode |
| [0..1] | I_WorkforcePerson | _PersonResponsible | $projection.OperationPersonResponsible = _PersonResponsible.PersonExternalID |
| [0..1] | I_Supplier | _Supplier | $projection.OperationSupplier = _Supplier.Supplier |
| [0..1] | I_Currency | _OpExternalProcessingCurrency | $projection.OpExternalProcessingCurrency = _OpExternalProcessingCurrency.Currency |
| [0..1] | I_Material | _Assembly | $projection.Assembly = _Assembly.Material |
| [0..1] | I_StatusObjectStatus | _DeletionFlag | $projection.MaintOrdOperationStatusObject = _DeletionFlag.StatusObject and _DeletionFlag.StatusCode = 'I0013' |
| [1..1] | I_MaintOperationExecStageCode | _MaintOperationExecStageCode | $projection.MaintOperationExecStageCode = _MaintOperationExecStageCode.MaintOperationExecStageCode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMTORDOPSOPR2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Order Operation and Suboperation | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (83)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintOrderRoutingNumber | afvc | aufpl | |
| KEY | MaintenanceOrderRoutingNode | afvc | aplzl | |
| MaintenanceOrder | afko | aufnr | ||
| BillOfOperationsApplication | afko | plnaw | ||
| MaintenanceOrderOperation | ||||
| MaintenanceOrderSubOperation | ||||
| SuperiorOperationInternalID | afvc | sumnr | ||
| MaintOrdOperationStatusObject | afvc | objnr | ||
| OperationControlKey | afvc | steus | ||
| OperationDescription | afvc | ltxa1 | ||
| OperationPersonResponsible | afvc | pernr | ||
| Plant | afvc | werks | ||
| OperationWorkCenterInternalID | afvc | arbid | ||
| OperationWorkCenterTypeCode | ||||
| NumberOfCapacities | afvc | anzzl | ||
| MaintOrderConfirmation | afvc | rueck | ||
| Equipment | afvc | equnr | ||
| FunctionalLocation | afvc | tplnr | ||
| OperationPurgInfoRecdSearchTxt | afvc | sortl | ||
| OperationRequisitionerName | afvc | afnam | ||
| OperationGoodsRecipientName | afvc | wempf | ||
| OpExternalProcessingPrice | afvc | preis | ||
| OpExternalProcessingPriceUnit | afvc | peinh | ||
| OpExternalProcessingCurrency | afvc | waers | ||
| OperationTrackingNumber | afvc | bednr | ||
| OperationPurchasingInfoRecord | afvc | infnr | ||
| OperationUnloadingPointName | afvc | ablad | ||
| OpPurchaseOutlineAgreement | ||||
| OpPurchaseOutlineAgreementItem | ||||
| OperationSupplier | afvc | lifnr | ||
| Assembly | afvc | istru | ||
| OperationSystemCondition | afvc | anlzu | ||
| CostCtrActivityType | afvc | larnt | ||
| ReqgCostCenterControllingArea | afvc | anfkokrs | ||
| OperationCalculationControl | afvc | indet | ||
| OperationWorkPercent | afvc | prznt | ||
| CapacityRequirement | afvc | bedid | ||
| PurchaseRequisition | afvc | banfn | ||
| PurchaseRequisitionItem | afvc | bnfpo | ||
| MaterialGroup | afvc | matkl | ||
| CostElement | afvc | sakto | ||
| PurchasingOrganization | afvc | ekorg | ||
| PurchasingGroup | afvc | ekgrp | ||
| MaintOrdOpProcessPhaseCode | afvc | maintordopprocessphasecode | ||
| MaintOrdOpProcessSubPhaseCode | afvc | maintordopprocesssubphasecode | ||
| MaintOperationExecStageCode | ||||
| Language | ||||
| OperationHasLongText | ||||
| OperationStandardTextCode | afvc | ktsch | ||
| NumberOfTimeTickets | afvc | loanz | ||
| BusinessArea | afvc | gsber | ||
| ProfitCenter | afvc | prctr | ||
| CostingSheet | afvc | kalsm | ||
| TaxJurisdiction | afvc | txjcd | ||
| FunctionalArea | afvc | func_area | ||
| MaintControllingObjectClass | ||||
| WrkCtrIntCapRqmtsDistr | afvc | vertl | ||
| MaintOrdOperationOverheadCode | afvc | zschl | ||
| MaintOrdOpAssgdWBSElmntInt | ||||
| IsMarkedForDeletion | afvc | loekz | ||
| AllMaintOrdCompCmtdQtsAreKept | afvc | allmaintordcompcmtdqtsarekept | ||
| MaintOrderConfCntrValue | afvc | rmzhl | ||
| MaintOrdOpHasNoRemainingWork | afvc | leknw | ||
| MaintOrdOpHasLeanServices | afvc | maintordophasleanservices | ||
| TaskListType | afvc | plnty | ||
| MaintOrdOpDelivDateAdjustment | ||||
| TaskListGroup | afvc | plnnr | ||
| TaskListGroupCounter | afvc | plnal | ||
| _OperationPlanningValues | _OperationPlanningValues | |||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _OperationControlKey | _OperationControlKey | |||
| _Plant | _Plant | |||
| _WorkCenter | _WorkCenter | |||
| _StatusObjectActiveStatus | _StatusObjectActiveStatus | |||
| _Language | _Language | |||
| _PersonResponsible | _PersonResponsible | |||
| _Supplier | _Supplier | |||
| _MaintOrderComponent | _MaintOrderComponent | |||
| _MaintOrderProdnRsceTool | _MaintOrderProdnRsceTool | |||
| _OpExternalProcessingCurrency | _OpExternalProcessingCurrency | |||
| _Assembly | _Assembly | |||
| _DeletionFlag | _DeletionFlag | |||
| _MaintOperationExecStageCode | _MaintOperationExecStageCode |
@AbapCatalog.sqlViewName: 'IMTORDOPSOPR2'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Maintenance Order Operation and Suboperation'
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #XL
define view I_MaintOrderOpAndSubOp_2
as select from afvc
left outer to one join afvc as afvc_superior on afvc.aufpl = afvc_superior.aufpl
and afvc.sumnr = afvc_superior.aplzl
inner join afko as afko on afvc.aufpl = afko.aufpl
and plnaw = 'I'
association [1..1] to I_MaintOrderOperPlanningValues as _OperationPlanningValues on $projection.MaintOrderRoutingNumber = _OperationPlanningValues.MaintOrderRoutingNumber
and $projection.MaintenanceOrderRoutingNode = _OperationPlanningValues.MaintOrderOperationCounter
association [0..1] to I_WorkCenter as _WorkCenter on _WorkCenter.WorkCenterInternalID = $projection.OperationWorkCenterInternalID
and _WorkCenter.WorkCenterTypeCode = $projection.OperationWorkCenterTypeCode
association [0..1] to I_Plant as _Plant on _Plant.Plant = $projection.Plant
association [0..1] to I_OperationControlProfile as _OperationControlKey on _OperationControlKey.OperationControlProfile = $projection.OperationControlKey
association [0..1] to I_MaintenanceOrder as _MaintenanceOrder on _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder
association [0..*] to I_StatusObjectActiveStatus as _StatusObjectActiveStatus on _StatusObjectActiveStatus.StatusObject = $projection.MaintOrdOperationStatusObject
association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
association [0..*] to I_OrderProdnResourceTool as _MaintOrderProdnRsceTool on _MaintOrderProdnRsceTool.OrderInternalBillOfOperations = $projection.MaintOrderRoutingNumber
and _MaintOrderProdnRsceTool.OrderIntBillOfOperationsItem = $projection.MaintenanceOrderRoutingNode
association [0..*] to I_MaintenanceOrderComponent_2 as _MaintOrderComponent on _MaintOrderComponent.MaintOrderRoutingNumber = $projection.MaintOrderRoutingNumber
and _MaintOrderComponent.MaintOrderOperationCounter = $projection.MaintenanceOrderRoutingNode
association [0..1] to I_WorkforcePerson as _PersonResponsible on $projection.OperationPersonResponsible = _PersonResponsible.PersonExternalID
association [0..1] to I_Supplier as _Supplier on $projection.OperationSupplier = _Supplier.Supplier
association [0..1] to I_Currency as _OpExternalProcessingCurrency on $projection.OpExternalProcessingCurrency = _OpExternalProcessingCurrency.Currency
association [0..1] to I_Material as _Assembly on $projection.Assembly = _Assembly.Material
association [0..1] to I_StatusObjectStatus as _DeletionFlag on $projection.MaintOrdOperationStatusObject = _DeletionFlag.StatusObject
and _DeletionFlag.StatusCode = 'I0013'
association [1..1] to I_MaintOperationExecStageCode as _MaintOperationExecStageCode on $projection.MaintOperationExecStageCode = _MaintOperationExecStageCode.MaintOperationExecStageCode
{
key afvc.aufpl as MaintOrderRoutingNumber,
key afvc.aplzl as MaintenanceOrderRoutingNode,
afko.aufnr as MaintenanceOrder,
@Consumption.hidden: true
afko.plnaw as BillOfOperationsApplication,
coalesce( afvc_superior.vornr, afvc.vornr ) as MaintenanceOrderOperation,
case when afvc.sumnr = '00000000' then '' else afvc.vornr end as MaintenanceOrderSubOperation,
afvc.sumnr as SuperiorOperationInternalID,
afvc.objnr as MaintOrdOperationStatusObject,
afvc.steus as OperationControlKey,
afvc.ltxa1 as OperationDescription,
@ObjectModel.foreignKey.association: '_PersonResponsible'
afvc.pernr as OperationPersonResponsible,
@ObjectModel.foreignKey.association: '_Plant'
afvc.werks as Plant,
afvc.arbid as OperationWorkCenterInternalID,
'A' as OperationWorkCenterTypeCode,
afvc.anzzl as NumberOfCapacities,
afvc.rueck as MaintOrderConfirmation,
afvc.equnr as Equipment,
afvc.tplnr as FunctionalLocation, // <-- This is in internal labelling!
afvc.sortl as OperationPurgInfoRecdSearchTxt,
afvc.afnam as OperationRequisitionerName,
afvc.wempf as OperationGoodsRecipientName,
@Semantics.amount.currencyCode: 'OpExternalProcessingCurrency'
@DefaultAggregation: #NONE
afvc.preis as OpExternalProcessingPrice,
afvc.peinh as OpExternalProcessingPriceUnit,
@ObjectModel.foreignKey.association: '_OpExternalProcessingCurrency'
@Semantics.currencyCode: true
afvc.waers as OpExternalProcessingCurrency,
afvc.bednr as OperationTrackingNumber,
afvc.infnr as OperationPurchasingInfoRecord,
afvc.ablad as OperationUnloadingPointName,
cast (afvc.ebeln as konnr) as OpPurchaseOutlineAgreement,
cast (afvc.ebelp as ktpnr) as OpPurchaseOutlineAgreementItem,
@ObjectModel.foreignKey.association: '_Supplier'
afvc.lifnr as OperationSupplier,
@ObjectModel.foreignKey.association: '_Assembly'
afvc.istru as Assembly,
afvc.anlzu as OperationSystemCondition,
afvc.larnt as CostCtrActivityType,
afvc.anfkokrs as ReqgCostCenterControllingArea,
afvc.indet as OperationCalculationControl,
afvc.prznt as OperationWorkPercent,
afvc.bedid as CapacityRequirement,
afvc.banfn as PurchaseRequisition,
afvc.bnfpo as PurchaseRequisitionItem,
afvc.matkl as MaterialGroup,
afvc.sakto as CostElement,
afvc.ekorg as PurchasingOrganization,
afvc.ekgrp as PurchasingGroup,
afvc.maintordopprocessphasecode as MaintOrdOpProcessPhaseCode,
afvc.maintordopprocesssubphasecode as MaintOrdOpProcessSubPhaseCode,
@ObjectModel.foreignKey.association: '_MaintOperationExecStageCode'
cast( afvc.maintopexecutionphasecode as eam_premainpost_cds preserving type ) as MaintOperationExecStageCode,
@ObjectModel.foreignKey.association: '_Language'
cast(afvc.txtsp as spras preserving type) as Language,
cast(case when afvc.txtsp = '' then '' else 'X' end as xfeld) as OperationHasLongText,
afvc.ktsch as OperationStandardTextCode,
afvc.loanz as NumberOfTimeTickets,
afvc.gsber as BusinessArea,
afvc.prctr as ProfitCenter,
afvc.kalsm as CostingSheet,
afvc.txjcd as TaxJurisdiction,
afvc.func_area as FunctionalArea,
cast( afvc.scope as ps_s4_scope_cv preserving type ) as MaintControllingObjectClass,
afvc.vertl as WrkCtrIntCapRqmtsDistr,
afvc.zschl as MaintOrdOperationOverheadCode,
cast( afvc.projn as ps_s4_pspnr preserving type ) as MaintOrdOpAssgdWBSElmntInt,
afvc.loekz as IsMarkedForDeletion,
afvc.allmaintordcompcmtdqtsarekept as AllMaintOrdCompCmtdQtsAreKept,
afvc.rmzhl as MaintOrderConfCntrValue,
afvc.leknw as MaintOrdOpHasNoRemainingWork,
afvc.maintordophasleanservices as MaintOrdOpHasLeanServices,
afvc.plnty as TaskListType,
cast(afvc.sched_end as cc4_delvry_date_adj_oper preserving type) as MaintOrdOpDelivDateAdjustment,
afvc.plnnr as TaskListGroup,
afvc.plnal as TaskListGroupCounter,
_OperationPlanningValues,
_MaintenanceOrder,
_OperationControlKey,
_Plant,
_WorkCenter,
_StatusObjectActiveStatus,
_Language,
_PersonResponsible,
_Supplier,
_MaintOrderComponent,
_MaintOrderProdnRsceTool,
_OpExternalProcessingCurrency,
_Assembly,
_DeletionFlag,
_MaintOperationExecStageCode
}
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