I_MaintenanceOrderComponent_2

DDL: I_MAINTENANCEORDERCOMPONENT_2 Type: view_entity BASIC

Maintenance Order Component

I_MaintenanceOrderComponent_2 is a Basic CDS View that provides data about "Maintenance Order Component" in SAP S/4HANA. It reads from 1 data source (resb) and exposes 117 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintOrderComponentInternalID. It has 22 associations to related views.

Data Sources (1)

SourceAliasJoin Type
resb resb from

Associations (22)

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_MaintCompItemCategoryTxt _ItemCategoryText _ItemCategoryText.MaintComponentItemCategory = $projection.MaintComponentItemCategory
[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_ReservationDocumentItem _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
[0..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.ResponsiblePurchaseOrg = _PurchasingOrganization.PurchasingOrganization

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Maintenance Order Component view
VDM.viewType #BASIC view
Analytics.technicalName IMAINTORDCOMP2 view
ObjectModel.representativeKey MaintOrderComponentInternalID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (117)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder resb aufnr SettlementOrder
KEY MaintenanceOrderOperation
KEY MaintenanceOrderSubOperation
KEY MaintOrderComponentInternalID resb objnr Val. Obj. No.
Reservation resb rsnum Reservation
ReservationItem resb rspos Item no.
ReservationType resb rsart Risk type
MaintenanceOrderComponent
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
StorageBin resb lgpla Storage Bin
MaintOrderRoutingNumber resb aufpl TaskList No.Ops
MaintOrderOperationCounter resb aplzl Plan No.f.Oper.
MaintComponentItemCategory resb postp Item Category
MaterialGroup resb matkl Product Sold Group
xloekasIsDeleted
QuantityWithdrawnInBaseUnit resb enmng Withdrawal Qty
ReservationIsFinallyIssued resb kzear Final Issue
PurchaseRequisition rsdb_banfn banfn Requisition
PurchaseRequisitionItem rsdb_banfn bnfpo Requisn. item
ResvnPurchasingDocumentNumber rsdb_banfn rsinz Index counter
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_banfn zeinh Time unit/meas.
OpRelshpOffsetDuration rsdb_banfn 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
PlantName _Plant PlantName Plant Name
FldLogsSupProcVersion resb fldlogsversion Version
rsposastdobnameasTextObjectKey
_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
_PurchasingGroup _PurchasingGroup
_PurchasingOrganization _PurchasingOrganization

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_2.
-- 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.

CREATE VIEW I_MaintenanceOrderComponent_2 AS
SELECT
  resb.aufnr AS MaintenanceOrder,
  cast( resb.vornr as maintenanceorderoperation preserving type ) AS MaintenanceOrderOperation,
  cast( resb.uvorn as maintenanceordersuboperation preserving type ) AS MaintenanceOrderSubOperation,
  resb.objnr AS MaintOrderComponentInternalID,
  resb.rsnum AS Reservation,
  resb.rspos AS ReservationItem,
  resb.rsart AS ReservationType,
  cast( resb.posnr as maintenanceordercomponent preserving type ) AS MaintenanceOrderComponent,
  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.lgpla AS StorageBin,
  resb.aufpl AS MaintOrderRoutingNumber,
  resb.aplzl AS MaintOrderOperationCounter,
  resb.postp AS MaintComponentItemCategory,
  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,
  rsdb_banfn.rsinz AS ResvnPurchasingDocumentNumber,
  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,
  _Plant.PlantName AS PlantName,
  resb.fldlogsversion AS FldLogsSupProcVersion,
  cast( concat( concat( $session.client, resb.rsnum ), resb.rspos ) as tdobname ) as TextObjectKey AS rsposastdobnameasTextObjectKey
FROM resb
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_MaintCompItemCategoryTxt AS _ItemCategoryText ON _ItemCategoryText.MaintComponentItemCategory = MaintComponentItemCategory  -- 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_ReservationDocumentItem 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..*]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON ResponsiblePurchaseOrg = _PurchasingOrganization.PurchasingOrganization  -- association [1..1]
;