I_MaintenanceOrderSubOperation
Maintenance Order Sub-Operation
I_MaintenanceOrderSubOperation is a Basic CDS View that provides data about "Maintenance Order Sub-Operation" in SAP S/4HANA. It reads from 3 data sources (afko, afvc, afvc) and exposes 74 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation. It has 24 associations to related views.
Associations (24)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaintOrderOperPlanningValues | _OperationPlanningValues | $projection.MaintOrderRoutingNumber = _OperationPlanningValues.MaintOrderRoutingNumber and $projection.MaintOrderOperationCounter = _OperationPlanningValues.MaintOrderOperationCounter |
| [0..1] | I_MaintenanceOrderOperation | _MaintenanceOrderOperation | $projection.MaintenanceOrder = _MaintenanceOrderOperation.MaintenanceOrder and $projection.MaintenanceOrderOperation = _MaintenanceOrderOperation.MaintenanceOrderOperation |
| [0..1] | I_MaintenanceOrder | _MaintenanceOrder | $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder |
| [0..*] | I_MaintenanceOrderComponent_2 | _MaintenanceOrderComponent | $projection.MaintenanceOrder = _MaintenanceOrderComponent.MaintenanceOrder and $projection.MaintenanceOrderOperation = _MaintenanceOrderComponent.MaintenanceOrderOperation |
| [0..1] | I_WorkCenter | _WorkCenter | $projection.OperationWorkCenterInternalID = _WorkCenter.WorkCenterInternalID and $projection.OperationWorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode |
| [0..1] | I_Currency | _OpExternalProcessingCurrency | $projection.OpExternalProcessingCurrency = _OpExternalProcessingCurrency.Currency |
| [0..1] | I_StatusObject | _StatusObject | $projection.MaintOrderOperationInternalID = _StatusObject.StatusObject |
| [0..1] | I_OperationControlProfile | _OperationControlKey | $projection.OperationControlKey = _OperationControlKey.OperationControlProfile |
| [0..1] | I_MaintOperationSystCondition | _OperationSystemCondition | $projection.OperationSystemCondition = _OperationSystemCondition.OperationSystemCondition |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_OperationCalculationControl | _OperationCalculationControl | $projection.OperationCalculationControl = _OperationCalculationControl.OperationCalculationControl |
| [0..1] | I_Material | _Assembly | $projection.Assembly = _Assembly.Material |
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [0..1] | I_Indicator | _OperationHasLongText | $projection.OperationHasLongText = _OperationHasLongText.IndicatorValue |
| [0..1] | I_Supplier | _Supplier | $projection.OperationSupplier = _Supplier.Supplier |
| [0..1] | I_PersonWorkAgreement_1 | _PersonResponsible | $projection.OperationPersonResponsible = _PersonResponsible.PersonWorkAgreement |
| [0..1] | I_Equipment | _Equipment | $projection.Equipment = _Equipment.Equipment |
| [0..1] | I_FunctionalLocation | _FunctionalLocation | $projection.FunctionalLocation = _FunctionalLocation.FunctionalLocation |
| [0..1] | I_MaintenanceOrderConfirmation | _MaintenanceOrderConf | $projection.MaintOrderConfirmation = _MaintenanceOrderConf.MaintOrderConf and $projection.MaintOrderConfCntrValue = _MaintenanceOrderConf.MaintOrderConfCntrValue |
| [0..1] | I_PMContactCardEmployee | _PMContactEmployee | $projection.OperationPersonResponsible = _PMContactEmployee.PersonnelNumber |
| [0..1] | I_WorkAssignment | _WorkAssignment | $projection.OperationPersonResponsible = _WorkAssignment.WorkAssignment |
| [1..1] | I_MaintOperationExecStageCode | _MaintOperationExecStageCode | $projection.MaintOperationExecStageCode = _MaintOperationExecStageCode.MaintOperationExecStageCode |
| [0..1] | I_EAMProcessPhase | _EAMProcessPhase | $projection.MaintOrdOpProcessPhaseCode = _EAMProcessPhase.EAMProcessPhaseCode |
| [0..1] | I_EAMProcessSubPhase | _EAMProcessSubPhase | $projection.MaintOrdOpProcessSubPhaseCode = _EAMProcessSubPhase.EAMProcessSubPhaseCode |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMAINTORDSOP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Order Sub-Operation | view | |
| VDM.viewType | #BASIC | view | |
| ObjectModel.representativeKey | MaintenanceOrderSubOperation | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (74)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | afko | aufnr | SettlementOrder |
| KEY | MaintenanceOrderOperation | afvc | vornr | Operation |
| KEY | MaintenanceOrderSubOperation | afvc | vornr | Suboperation |
| MaintOrderRoutingNumber | afvc | aufpl | TaskList No.Ops | |
| MaintOrderOperationCounter | afvc | aplzl | Plan No.f.Oper. | |
| SuperiorOrderIntBillOfOpItem | afvc | sumnr | Sup. Op. Node | |
| OperationControlKey | afvc | steus | Control Key | |
| OperationDescription | afvc | ltxa1 | Short Text | |
| Equipment | afvc | equnr | Equipment | |
| FunctionalLocation | afvc | tplnr | Functional loc. | |
| Plant | afvc | werks | Receiving Plant | |
| OperationWorkCenterTypeCode | ||||
| OperationWorkCenterInternalID | afvc | arbid | WorkCtrGp plan. | |
| OperationPersonResponsible | afvc | pernr | Personnel no. | |
| NumberOfCapacities | afvc | anzzl | Number | |
| OperationPurgInfoRecdSearchTxt | afvc | sortl | Sort Term | |
| OperationRequisitionerName | afvc | afnam | Requisitioner | |
| OperationGoodsRecipientName | afvc | wempf | Recipient | |
| OpExternalProcessingPrice | afvc | preis | Valuation Price | |
| OpExternalProcessingPriceUnit | afvc | peinh | Unit of measure | |
| OpExternalProcessingCurrency | afvc | waers | Transaction Currency | |
| OperationTrackingNumber | afvc | bednr | Tracking Number | |
| OperationPurchasingInfoRecord | afvc | infnr | Info Record | |
| OperationUnloadingPointName | afvc | ablad | Unloading Point | |
| OpPurchaseOutlineAgreement | ||||
| OpPurchaseOutlineAgreementItem | ||||
| OperationSupplier | afvc | lifnr | Vendor no. | |
| Assembly | afvc | istru | Assembly | |
| OperationSystemCondition | afvc | anlzu | SystemCondition | |
| CostCtrActivityType | afvc | larnt | Activity Type | |
| ReqgCostCenterControllingArea | afvc | anfkokrs | Controll. Area | |
| OperationCalculationControl | afvc | indet | Calculation key | |
| OperationWorkPercent | afvc | prznt | Time interval % | |
| CapacityRequirement | afvc | bedid | Id number | |
| CapacityRequirementItem | afvc | bedzl | Counter | |
| PurchaseRequisition | afvc | banfn | Requisition | |
| MaintOrderOperationInternalID | afvc | objnr | Val. Obj. No. | |
| PurchaseRequisitionItem | afvc | bnfpo | Requisn. item | |
| MaterialGroup | afvc | matkl | Product Sold Group | |
| CostElement | afvc | sakto | G/L Account | |
| ExtProcgOperationHasSubcontrg | afvc | frdlb | Subcontracting | |
| PurchasingOrganization | afvc | ekorg | Purchasing Org. | |
| PurchasingGroup | afvc | ekgrp | Sub. purchasing grp | |
| rueckasMaintOrderConfirmation | ||||
| MaintOrderConfCntrValue | afvc | rmzhl | Counter | |
| MaintOrdOpProcessPhaseCode | afvc | maintordopprocessphasecode | Process Phase | |
| MaintOrdOpProcessSubPhaseCode | afvc | maintordopprocesssubphasecode | Process Subphase | |
| MaintOperationExecStageCode | ||||
| Language | ||||
| MaintOperationalChecklistType | afvc | cl_type | Checklist Type | |
| MaintenanceJobVerification | afvc | maintenancejobverification | ||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _MaintenanceOrderOperation | _MaintenanceOrderOperation | |||
| _StatusObject | _StatusObject | |||
| _OpExternalProcessingCurrency | _OpExternalProcessingCurrency | |||
| _OperationPlanningValues | _OperationPlanningValues | |||
| _WorkCenter | _WorkCenter | |||
| _OperationControlKey | _OperationControlKey | |||
| _OperationSystemCondition | _OperationSystemCondition | |||
| _Plant | _Plant | |||
| _OperationCalculationControl | _OperationCalculationControl | |||
| _Assembly | _Assembly | |||
| _Language | _Language | |||
| _OperationHasLongText | _OperationHasLongText | |||
| _Supplier | _Supplier | |||
| _PersonResponsible | _PersonResponsible | |||
| _Equipment | _Equipment | |||
| _FunctionalLocation | _FunctionalLocation | |||
| _MaintenanceOrderConf | _MaintenanceOrderConf | |||
| _PMContactEmployee | _PMContactEmployee | |||
| _WorkAssignment | _WorkAssignment | |||
| _MaintOperationExecStageCode | _MaintOperationExecStageCode | |||
| _EAMProcessPhase | _EAMProcessPhase | |||
| _EAMProcessSubPhase | _EAMProcessSubPhase |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view I_MaintenanceOrderSubOperation.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: IMAINTORDSOP
CREATE VIEW I_MaintenanceOrderSubOperation AS
SELECT
afko.aufnr AS MaintenanceOrder,
afvc_superior.vornr AS MaintenanceOrderOperation,
afvc.vornr AS MaintenanceOrderSubOperation,
afvc.aufpl AS MaintOrderRoutingNumber,
afvc.aplzl AS MaintOrderOperationCounter,
afvc.sumnr AS SuperiorOrderIntBillOfOpItem,
afvc.steus AS OperationControlKey,
afvc.ltxa1 AS OperationDescription,
afvc.equnr AS Equipment,
afvc.tplnr AS FunctionalLocation,
afvc.werks AS Plant,
'A' AS OperationWorkCenterTypeCode,
afvc.arbid AS OperationWorkCenterInternalID,
afvc.pernr AS OperationPersonResponsible,
afvc.anzzl AS NumberOfCapacities,
afvc.sortl AS OperationPurgInfoRecdSearchTxt,
afvc.afnam AS OperationRequisitionerName,
afvc.wempf AS OperationGoodsRecipientName,
afvc.preis AS OpExternalProcessingPrice,
afvc.peinh AS OpExternalProcessingPriceUnit,
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,
afvc.lifnr AS OperationSupplier,
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.bedzl AS CapacityRequirementItem,
afvc.banfn AS PurchaseRequisition,
afvc.objnr AS MaintOrderOperationInternalID,
afvc.bnfpo AS PurchaseRequisitionItem,
afvc.matkl AS MaterialGroup,
afvc.sakto AS CostElement,
afvc.frdlb AS ExtProcgOperationHasSubcontrg,
afvc.ekorg AS PurchasingOrganization,
afvc.ekgrp AS PurchasingGroup,
e.g. activity type afvc.rueck as MaintOrderConfirmation AS rueckasMaintOrderConfirmation,
afvc.rmzhl AS MaintOrderConfCntrValue,
afvc.maintordopprocessphasecode AS MaintOrdOpProcessPhaseCode,
afvc.maintordopprocesssubphasecode AS MaintOrdOpProcessSubPhaseCode,
cast( afvc.maintopexecutionphasecode as eam_premainpost_cds preserving type ) AS MaintOperationExecStageCode,
cast(afvc.txtsp as spras) AS Language,
afvc.cl_type AS MaintOperationalChecklistType,
afvc.maintenancejobverification AS MaintenanceJobVerification
FROM afvc
INNER JOIN afvc AS afvc_superior ON /* join condition not captured in parsed metadata */
INNER JOIN afko ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaintOrderOperPlanningValues AS _OperationPlanningValues ON MaintOrderRoutingNumber = _OperationPlanningValues.MaintOrderRoutingNumber AND MaintOrderOperationCounter = _OperationPlanningValues.MaintOrderOperationCounter -- association [1..1]
LEFT OUTER JOIN I_MaintenanceOrderOperation AS _MaintenanceOrderOperation ON MaintenanceOrder = _MaintenanceOrderOperation.MaintenanceOrder AND MaintenanceOrderOperation = _MaintenanceOrderOperation.MaintenanceOrderOperation -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrderComponent_2 AS _MaintenanceOrderComponent ON MaintenanceOrder = _MaintenanceOrderComponent.MaintenanceOrder AND MaintenanceOrderOperation = _MaintenanceOrderComponent.MaintenanceOrderOperation -- association [0..*]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON OperationWorkCenterInternalID = _WorkCenter.WorkCenterInternalID AND OperationWorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode -- association [0..1]
LEFT OUTER JOIN I_Currency AS _OpExternalProcessingCurrency ON OpExternalProcessingCurrency = _OpExternalProcessingCurrency.Currency -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObject ON MaintOrderOperationInternalID = _StatusObject.StatusObject -- association [0..1]
LEFT OUTER JOIN I_OperationControlProfile AS _OperationControlKey ON OperationControlKey = _OperationControlKey.OperationControlProfile -- association [0..1]
LEFT OUTER JOIN I_MaintOperationSystCondition AS _OperationSystemCondition ON OperationSystemCondition = _OperationSystemCondition.OperationSystemCondition -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_OperationCalculationControl AS _OperationCalculationControl ON OperationCalculationControl = _OperationCalculationControl.OperationCalculationControl -- association [0..1]
LEFT OUTER JOIN I_Material AS _Assembly ON Assembly = _Assembly.Material -- association [0..1]
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _OperationHasLongText ON OperationHasLongText = _OperationHasLongText.IndicatorValue -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON OperationSupplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_PersonWorkAgreement_1 AS _PersonResponsible ON OperationPersonResponsible = _PersonResponsible.PersonWorkAgreement -- association [0..1]
LEFT OUTER JOIN I_Equipment AS _Equipment ON Equipment = _Equipment.Equipment -- association [0..1]
LEFT OUTER JOIN I_FunctionalLocation AS _FunctionalLocation ON FunctionalLocation = _FunctionalLocation.FunctionalLocation -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrderConfirmation AS _MaintenanceOrderConf ON MaintOrderConfirmation = _MaintenanceOrderConf.MaintOrderConf AND MaintOrderConfCntrValue = _MaintenanceOrderConf.MaintOrderConfCntrValue -- association [0..1]
LEFT OUTER JOIN I_PMContactCardEmployee AS _PMContactEmployee ON OperationPersonResponsible = _PMContactEmployee.PersonnelNumber -- association [0..1]
LEFT OUTER JOIN I_WorkAssignment AS _WorkAssignment ON OperationPersonResponsible = _WorkAssignment.WorkAssignment -- association [0..1]
LEFT OUTER JOIN I_MaintOperationExecStageCode AS _MaintOperationExecStageCode ON MaintOperationExecStageCode = _MaintOperationExecStageCode.MaintOperationExecStageCode -- association [1..1]
LEFT OUTER JOIN I_EAMProcessPhase AS _EAMProcessPhase ON MaintOrdOpProcessPhaseCode = _EAMProcessPhase.EAMProcessPhaseCode -- association [0..1]
LEFT OUTER JOIN I_EAMProcessSubPhase AS _EAMProcessSubPhase ON MaintOrdOpProcessSubPhaseCode = _EAMProcessSubPhase.EAMProcessSubPhaseCode -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA