Deprecated
This CDS view is deprecated in S/4HANA. Use I_MaintenanceOrderComponent_2 instead. View all deprecated CDS views →

I_MaintenanceOrderComponent

DDL: I_MAINTENANCEORDERCOMPONENT SQL: IMAINTORDCOMP Type: view BASIC

Maintenance Order Component

I_MaintenanceOrderComponent is a Basic CDS View that provides data about "Maintenance Order Component" in SAP S/4HANA. It reads from 3 data sources (resb, rsadd, rsdb) and exposes 111 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderComponent. It has 20 associations to related views.

Data Sources (3)

SourceAliasJoin Type
resb resb from
rsadd rsadd left_outer
rsdb rsdb_banfn left_outer

Associations (20)

CardinalityTargetAliasCondition
[0..1] I_MaintenanceOrder _MaintenanceOrder _MaintenanceOrder.MaintenanceOrder = $projection.MaintenanceOrder
[0..1] I_MaintenanceOrderOperation _MaintenanceOrderOperation _MaintenanceOrderOperation.MaintenanceOrder = $projection.MaintenanceOrder and _MaintenanceOrderOperation.MaintOrderRoutingNumber = $projection.MaintOrderRoutingNumber and _MaintenanceOrderOperation.MaintOrderOperationCounter = $projection.MaintOrderOperationCounter
[0..1] I_Material _Material _Material.Material = $projection.Material
[0..*] I_MaterialText _MaterialText _MaterialText.Material = $projection.Material
[0..1] I_MaterialGroup _MaterialGroup _MaterialGroup.MaterialGroup = $projection.MaterialGroup
[0..1] I_StorageLocation _StorageLocation _StorageLocation.Plant = $projection.Plant and _StorageLocation.StorageLocation = $projection.StorageLocation
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Supplier
[0..1] I_StatusObject _StatusObject _StatusObject.StatusObject = $projection.MaintOrderComponentInternalID
[0..1] I_Plant _Plant _Plant.Plant = $projection.Plant
[0..1] I_PMUnitOfMeasureVH _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.BaseUnit
[0..1] I_PMUnitOfMeasureVH _UnitOfMeasureEntry _UnitOfMeasureEntry.UnitOfMeasure = $projection.UnitOfEntry
[0..1] I_SafetyRelevance _SafetyRelevance _SafetyRelevance.SafetyRelevantObjectType = 'MA' and _SafetyRelevance.SafetyRelevantObject = $projection.Material
[0..*] I_BomItemCategoryText _ItemCategoryText _ItemCategoryText.BillOfMaterialItemCategory = $projection.ItemCategory
[0..1] I_Purchaserequisitionitem _PurchaseRequisitionItem _PurchaseRequisitionItem.PurchaseRequisition = $projection.PurchaseRequisition and _PurchaseRequisitionItem.PurchaseRequisitionItem = $projection.PurchaseRequisitionItem
[0..1] I_Indicator _ReservationIsFinallyIssued $projection.ReservationIsFinallyIssued = _ReservationIsFinallyIssued.IndicatorValue
[0..1] I_ProductTypeCode _ProductTypeCode _ProductTypeCode.ProductTypeCode = $projection.ProductTypeCode
[0..1] I_ReservationItem _ReservationItem _ReservationItem.Reservation = $projection.Reservation and _ReservationItem.ReservationItem = $projection.ReservationItem and _ReservationItem.RecordType = $projection.ReservationType
[0..1] I_PurReqnOrResvnGeneration _PurReqnOrResvnGeneration $projection.PurReqnOrResvnGeneration = _PurReqnOrResvnGeneration.PurReqnOrResvnGeneration
[0..*] I_StatusObjectActiveStatus _StatusObjectActiveStatus $projection.MaintOrderComponentInternalID = _StatusObjectActiveStatus.StatusObject
[0..*] I_MaintOrdCompDelivDateAdjmtT _MaintOrdCompDelivDateAdjmtT $projection.MaintOrdCompDeliveryDateAdjmt = _MaintOrdCompDelivDateAdjmtT.MaintOrdCompDeliveryDateAdjmt

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IMAINTORDCOMP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Order Component view
VDM.viewType #BASIC view
ObjectModel.representativeKey MaintenanceOrderComponent view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor I_MaintenanceOrderComponent_2 view

Fields (111)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder resb aufnr SettlementOrder
KEY MaintenanceOrderOperation resb vornr Operation
KEY MaintenanceOrderComponent resb posnr WBS Element
Reservation resb rsnum Reservation
ReservationItem resb rspos Item no.
ReservationType resb rsart Risk type
MaintenanceOrderSubOperation resb uvorn Suboperation
Material resb matnr Vehicle Model
ComponentDescription resb potx1 Item Text
RequirementQuantityInBaseUnit resb bdmng Threshold value
BaseUnit resb meins Valuation Unit
QuantityInUnitOfEntry resb erfmg Quantity in UnE
UnitOfEntry resb erfme Unit of Entry
RequirementDate resb bdter Reqmts date
RequirementTime resb bdztp Time qty req'd
Supplier resb lifnr Vendor no.
Plant resb werks Receiving Plant
StorageLocation resb lgort Sublocation
MaintOrderRoutingNumber resb aufpl TaskList No.Ops
MaintOrderOperationCounter resb aplzl Plan No.f.Oper.
MaintOrderComponentInternalID resb objnr Val. Obj. No.
ItemCategory resb postp Item Category
MaterialGroup resb matkl Product Sold Group
xloekasIsDeleted
QuantityWithdrawnInBaseUnit resb enmng Withdrawal Qty
ReservationIsFinallyIssued resb kzear Final Issue
PurchaseRequisition rsdb banfn Requisition
PurchaseRequisitionItem rsdb bnfpo Requisn. item
ProductTypeCode resb producttype Product Type Group
PerformancePeriodStartDate resb startdate Valid From
PerformancePeriodEndDate resb enddate Term to
PerformancePeriodStartTime resb performanceperiodstarttime Start Time
PerformancePeriodEndTime resb performanceperiodendtime End Time
LeanServiceDuration resb serviceduration Work Duration
LeanServiceDurationUnit resb servicedurationunit Unit
DistributionFunction resb funct Function
SrvcSchedgIsAlignedWthOpWrkCtr resb operationworkcenteralignment Align with Work Center
ServicePerformer resb serviceperformer Service Performer
GoodsMovementType resb bwart Valuation Type
WithdrawnQuantity
ConfirmedAvailableQuantity
MaintOrderCompDebitCreditCode resb shkzg Returns
FldLogsSupplyProcess resb fldlogssupplyprocess Supply Process
GoodsMovementIsAllowed resb xwaok Mvt Allowed
MaintenanceOrderComponentBatch resb charg Chargeable Proc.
QuantityIsFixed resb fmeng Qty. is fixed
MaintOrdOpComponentCurrency resb waers Transaction Currency
MaintOrdOpComponentGLAccount resb saknr G/L Account
MaintOrdOpCompCostingRelevancy resb sanka CostingRelevncy
MaintCompAltvProdUsgeRateInPct resb ewahr Usg Probability
MaintOrderOpComponentSortText resb sortf Sort string
MaintOrdOpCompIsBulkProduct resb schgt Bulk material
MaterialProvisionType resb beikz Mat. Prov. Ind.
MaintOrdOpCompAssgdWBSElmntInt
MaintOrderOpComponentPrice resb gpreis Price/LCurrency
MaintOrdOpCompPriceUnitQty resb peinh Unit of measure
MatlCompIsMarkedForBackflush resb rgekz Backflushing
PurchasingGroup resb ekgrp Sub. purchasing grp
DeliveryTimeInDays resb lifzt Del time (days)
MaintOrdOpCompGdsRecipientName resb wempf Recipient
MaintOrdOpCompUnloadingPtTxt resb ablad Unloading Point
GoodsReceiptDurationInWorkDays resb webaz GR Proc. Time
PurchasingInfoRecord resb infnr Info Record
OperationLeadTimeOffset resb nlfzv Oper. LT offset
OpsLeadTimeOffsetUnit resb nlfmv Oper. LTO unit
MaintOrdOpCompProcmtTrckgNmbr rsadd bednr Tracking Number
ResponsiblePurchaseOrg rsadd ekorg Purchasing Org.
MaintOrdOpCompPurOutlineAgrmt resb ebeln Source PurchDoc
MaintOrdCompPurOutlineAgrmtItm resb ebelp Item pur. doc.
OrderOpRelationshipIntType
OpRelshpOffsetDurationUnit rsdb zeinh Time unit/meas.
OpRelshpOffsetDuration rsdb dauer Time Interval
MaintOrdCompIsDirectlyProcured resb dbskz Direct procure.
MaintOrdOpCompSpecialStockType resb sobkz Special Stock
VariableSizeDimension1 resb roms1 Size 1
VariableSizeDimensionUnit resb romei Size unit
VariableSizeCompFormulaKey resb rform VSI Formula
VariableSizeDimension2 resb roms2 Size 2
NumberOfVariableSizeItem
VariableSizeDimension3 resb roms3 Size 3
VariableSizeItemQuantity resb romen VSI Quantity
VariableSizeComponentUnit resb rokme VSI UoM
RqmtDateIsEnteredManually resb kzmpf Man. Reqmt Date
SupplierProduct rsadd idnlf Vendor Material
MaintOrdOpCompRequisitioner rsadd afnam Requisitioner
OverallLimitAmount rsadd overalllimitamount Overall Limit
ExpectedOverallLimitAmount rsadd expectedoveralllimitamount Expected Value
MaintOrdCompCmtdQtyIsKept resb maintordcompcmtdqtyiskept Keep Committed Qties
MaintOrdOpCompProcmtCatalog rsadd catalogid Catalog ID
MaintOrdOpCompProcmtCatalogItm rsadd catalog_prod_id Product ID
FldLogsSupProcVersion resb fldlogsversion Version
_MaintenanceOrder _MaintenanceOrder
_MaintenanceOrderOperation _MaintenanceOrderOperation
_Material _Material
_MaterialText _MaterialText
_MaterialGroup _MaterialGroup
_StorageLocation _StorageLocation
_Plant _Plant
_ItemCategoryText _ItemCategoryText
_UnitOfMeasure _UnitOfMeasure
_UnitOfMeasureEntry _UnitOfMeasureEntry
_StatusObject _StatusObject
_SafetyRelevance _SafetyRelevance
_Supplier _Supplier
_PurchaseRequisitionItem _PurchaseRequisitionItem
_ReservationIsFinallyIssued _ReservationIsFinallyIssued
_ProductTypeCode _ProductTypeCode
_ReservationItem _ReservationItem
_PurReqnOrResvnGeneration _PurReqnOrResvnGeneration
_StatusObjectActiveStatus _StatusObjectActiveStatus
_MaintOrdCompDelivDateAdjmtT _MaintOrdCompDelivDateAdjmtT

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_MaintenanceOrderComponent.
-- 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: IMAINTORDCOMP

CREATE VIEW I_MaintenanceOrderComponent AS
SELECT
  resb.aufnr AS MaintenanceOrder,
  resb.vornr AS MaintenanceOrderOperation,
  resb.posnr AS MaintenanceOrderComponent,
  resb.rsnum AS Reservation,
  resb.rspos AS ReservationItem,
  resb.rsart AS ReservationType,
  resb.uvorn AS MaintenanceOrderSubOperation,
  resb.matnr AS Material,
  resb.potx1 AS ComponentDescription,
  resb.bdmng AS RequirementQuantityInBaseUnit,
  resb.meins AS BaseUnit,
  resb.erfmg AS QuantityInUnitOfEntry,
  resb.erfme AS UnitOfEntry,
  resb.bdter AS RequirementDate,
  resb.bdztp AS RequirementTime,
  resb.lifnr AS Supplier,
  resb.werks AS Plant,
  resb.lgort AS StorageLocation,
  resb.aufpl AS MaintOrderRoutingNumber,
  resb.aplzl AS MaintOrderOperationCounter,
  resb.objnr AS MaintOrderComponentInternalID,
  resb.postp AS ItemCategory,
  resb.matkl AS MaterialGroup,
  where we check the system status resb.xloek as IsDeleted AS xloekasIsDeleted,
  resb.enmng AS QuantityWithdrawnInBaseUnit,
  resb.kzear AS ReservationIsFinallyIssued,
  rsdb_banfn.banfn AS PurchaseRequisition,
  rsdb_banfn.bnfpo AS PurchaseRequisitionItem,
  resb.producttype AS ProductTypeCode,
  resb.startdate AS PerformancePeriodStartDate,
  resb.enddate AS PerformancePeriodEndDate,
  resb.performanceperiodstarttime AS PerformancePeriodStartTime,
  resb.performanceperiodendtime AS PerformancePeriodEndTime,
  resb.serviceduration AS LeanServiceDuration,
  resb.servicedurationunit AS LeanServiceDurationUnit,
  resb.funct AS DistributionFunction,
  resb.operationworkcenteralignment AS SrvcSchedgIsAlignedWthOpWrkCtr,
  resb.serviceperformer AS ServicePerformer,
  resb.bwart AS GoodsMovementType,
  cast(resb.enmng as pph_enmng preserving type) AS WithdrawnQuantity,
  cast(resb.vmeng as pph_vmeng preserving type) AS ConfirmedAvailableQuantity,
  resb.shkzg AS MaintOrderCompDebitCreditCode,
  resb.fldlogssupplyprocess AS FldLogsSupplyProcess,
  resb.xwaok AS GoodsMovementIsAllowed,
  resb.charg AS MaintenanceOrderComponentBatch,
  resb.fmeng AS QuantityIsFixed,
  resb.waers AS MaintOrdOpComponentCurrency,
  resb.saknr AS MaintOrdOpComponentGLAccount,
  resb.sanka AS MaintOrdOpCompCostingRelevancy,
  resb.ewahr AS MaintCompAltvProdUsgeRateInPct,
  resb.sortf AS MaintOrderOpComponentSortText,
  resb.schgt AS MaintOrdOpCompIsBulkProduct,
  resb.beikz AS MaterialProvisionType,
  cast( resb.pspel as ps_s4_pspnr preserving type ) AS MaintOrdOpCompAssgdWBSElmntInt,
  resb.gpreis AS MaintOrderOpComponentPrice,
  resb.peinh AS MaintOrdOpCompPriceUnitQty,
  resb.rgekz AS MatlCompIsMarkedForBackflush,
  resb.ekgrp AS PurchasingGroup,
  resb.lifzt AS DeliveryTimeInDays,
  resb.wempf AS MaintOrdOpCompGdsRecipientName,
  resb.ablad AS MaintOrdOpCompUnloadingPtTxt,
  resb.webaz AS GoodsReceiptDurationInWorkDays,
  resb.infnr AS PurchasingInfoRecord,
  resb.nlfzv AS OperationLeadTimeOffset,
  resb.nlfmv AS OpsLeadTimeOffsetUnit,
  rsadd.bednr AS MaintOrdOpCompProcmtTrckgNmbr,
  rsadd.ekorg AS ResponsiblePurchaseOrg,
  resb.ebeln AS MaintOrdOpCompPurOutlineAgrmt,
  resb.ebelp AS MaintOrdCompPurOutlineAgrmtItm,
  cast( rsdb_banfn.aobar as ps_s4_aobar preserving type ) AS OrderOpRelationshipIntType,
  rsdb_banfn.zeinh AS OpRelshpOffsetDurationUnit,
  rsdb_banfn.dauer AS OpRelshpOffsetDuration,
  resb.dbskz AS MaintOrdCompIsDirectlyProcured,
  resb.sobkz AS MaintOrdOpCompSpecialStockType,
  resb.roms1 AS VariableSizeDimension1,
  resb.romei AS VariableSizeDimensionUnit,
  resb.rform AS VariableSizeCompFormulaKey,
  resb.roms2 AS VariableSizeDimension2,
  cast(resb.roanz as vdm_roanz) AS NumberOfVariableSizeItem,
  resb.roms3 AS VariableSizeDimension3,
  resb.romen AS VariableSizeItemQuantity,
  resb.rokme AS VariableSizeComponentUnit,
  resb.kzmpf AS RqmtDateIsEnteredManually,
  rsadd.idnlf AS SupplierProduct,
  rsadd.afnam AS MaintOrdOpCompRequisitioner,
  rsadd.overalllimitamount AS OverallLimitAmount,
  rsadd.expectedoveralllimitamount AS ExpectedOverallLimitAmount,
  resb.maintordcompcmtdqtyiskept AS MaintOrdCompCmtdQtyIsKept,
  rsadd.catalogid AS MaintOrdOpCompProcmtCatalog,
  rsadd.catalog_prod_id AS MaintOrdOpCompProcmtCatalogItm,
  resb.fldlogsversion AS FldLogsSupProcVersion
FROM resb
LEFT OUTER JOIN rsdb AS rsdb_banfn ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN rsadd ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON _MaintenanceOrder.MaintenanceOrder = MaintenanceOrder  -- association [0..1]
LEFT OUTER JOIN I_MaintenanceOrderOperation AS _MaintenanceOrderOperation ON _MaintenanceOrderOperation.MaintenanceOrder = MaintenanceOrder AND _MaintenanceOrderOperation.MaintOrderRoutingNumber = MaintOrderRoutingNumber AND _MaintenanceOrderOperation.MaintOrderOperationCounter = MaintOrderOperationCounter  -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON _Material.Material = Material  -- association [0..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = Material  -- association [0..*]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON _MaterialGroup.MaterialGroup = MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_StorageLocation AS _StorageLocation ON _StorageLocation.Plant = Plant AND _StorageLocation.StorageLocation = StorageLocation  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_StatusObject AS _StatusObject ON _StatusObject.StatusObject = MaintOrderComponentInternalID  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON _Plant.Plant = Plant  -- association [0..1]
LEFT OUTER JOIN I_PMUnitOfMeasureVH AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = BaseUnit  -- association [0..1]
LEFT OUTER JOIN I_PMUnitOfMeasureVH AS _UnitOfMeasureEntry ON _UnitOfMeasureEntry.UnitOfMeasure = UnitOfEntry  -- association [0..1]
LEFT OUTER JOIN I_SafetyRelevance AS _SafetyRelevance ON _SafetyRelevance.SafetyRelevantObjectType = 'MA' AND _SafetyRelevance.SafetyRelevantObject = Material  -- association [0..1]
LEFT OUTER JOIN I_BomItemCategoryText AS _ItemCategoryText ON _ItemCategoryText.BillOfMaterialItemCategory = ItemCategory  -- association [0..*]
LEFT OUTER JOIN I_Purchaserequisitionitem AS _PurchaseRequisitionItem ON _PurchaseRequisitionItem.PurchaseRequisition = PurchaseRequisition AND _PurchaseRequisitionItem.PurchaseRequisitionItem = PurchaseRequisitionItem  -- association [0..1]
LEFT OUTER JOIN I_Indicator AS _ReservationIsFinallyIssued ON ReservationIsFinallyIssued = _ReservationIsFinallyIssued.IndicatorValue  -- association [0..1]
LEFT OUTER JOIN I_ProductTypeCode AS _ProductTypeCode ON _ProductTypeCode.ProductTypeCode = ProductTypeCode  -- association [0..1]
LEFT OUTER JOIN I_ReservationItem AS _ReservationItem ON _ReservationItem.Reservation = Reservation AND _ReservationItem.ReservationItem = ReservationItem AND _ReservationItem.RecordType = ReservationType  -- association [0..1]
LEFT OUTER JOIN I_PurReqnOrResvnGeneration AS _PurReqnOrResvnGeneration ON PurReqnOrResvnGeneration = _PurReqnOrResvnGeneration.PurReqnOrResvnGeneration  -- association [0..1]
LEFT OUTER JOIN I_StatusObjectActiveStatus AS _StatusObjectActiveStatus ON MaintOrderComponentInternalID = _StatusObjectActiveStatus.StatusObject  -- association [0..*]
LEFT OUTER JOIN I_MaintOrdCompDelivDateAdjmtT AS _MaintOrdCompDelivDateAdjmtT ON MaintOrdCompDeliveryDateAdjmt = _MaintOrdCompDelivDateAdjmtT.MaintOrdCompDeliveryDateAdjmt  -- association [0..*]
;