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

R_MaintOrderOpComponentTP

DDL: R_MAINTORDEROPCOMPONENTTP Type: view_entity TRANSACTIONAL

Maintenance Order Operation Component TP

R_MaintOrderOpComponentTP is a Transactional CDS View that provides data about "Maintenance Order Operation Component TP" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderComponent) and exposes 101 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, MaintenanceOrderComponent. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MaintenanceOrderComponent I_MaintenanceOrderComponent from

Associations (6)

CardinalityTargetAliasCondition
[1..1] R_MaintenanceOrderTP _MaintenanceOrder $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder
[0..1] I_WBSElementBasicData _WBSElement _WBSElement.WBSElementInternalID = $projection.MaintOrdOpCompAssgdWBSElmntInt
[0..1] I_MaterialGroup _MaterialGroup _MaterialGroup.MaterialGroup = $projection.MaterialGroup
[0..1] I_PurchasingOrganization _PurchasingOrganization _PurchasingOrganization.PurchasingOrganization = $projection.ResponsiblePurchaseOrg
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Supplier
[0..*] R_MaintOrderOpCompLongTextTP _MaintOrderOpCompLongText

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
EndUserText.label Maintenance Order Operation Component TP view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor R_MaintOrderOpComponentTP_2 view

Fields (101)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder MaintenanceOrder Order
KEY MaintenanceOrderOperation Suboperation
KEY MaintenanceOrderSubOperation Suboperation
KEY MaintenanceOrderComponent BOM item
MaintOrderOperationForEdit Suboperation
MaintOrderSubOperationForEdit Suboperation
MaintOrderComponentForEdit BOM item
Reservation Reservation Reservation
ReservationItem ReservationItem Reservation Item
ReservationType ReservationType Record type
MaintOrderRoutingNumber MaintOrderRoutingNumber Plan No.f.Oper.
MaintOrderOperationCounter MaintOrderOperationCounter Counter
Product Material Vehicle Model
BaseUnit BaseUnit Unit of Measure
UnitOfEntry UnitOfEntry Unit of Entry
clientNULLendasRequirementDate
clientNULLendasRequirementTime
Plant Plant Valuation Area
StorageLocation StorageLocation StorageLocation
MaintOrdOpCompItemCategory ItemCategory Item Category
GoodsMovementType GoodsMovementType Movement Type
ReservationIsFinallyIssued ReservationIsFinallyIssued Res Final Issue
MaterialGroupendasMaterialGroup
MaintOrdOpCompIsMRPRelevant PurReqnOrResvnGeneration Purchase Reqn. / Resvn. Generation
MaterialCompIsProcuredDirectly MaterialCompIsProcuredDirectly Checkbox
ProductTypeCode ProductTypeCode Product Type Group
ServicePerformer ServicePerformer Service Performer
clientNULLendasPerformancePeriodEndDate
clientNULLendasPerformancePeriodEndTime
LeanServiceDuration LeanServiceDuration Service Duration
LeanServiceDurationUnit LeanServiceDurationUnit Serv. Dur. Unit
DistributionFunction DistributionFunction Function
MaintOrdCompDeliveryDateAdjmt MaintOrdCompDeliveryDateAdjmt Align Req. Date
SrvcSchedgIsAlignedWthOpWrkCtr SrvcSchedgIsAlignedWthOpWrkCtr Align with Work Center
MaintOrderCompDebitCreditCode MaintOrderCompDebitCreditCode Debit/Credit
GoodsMovementIsAllowed GoodsMovementIsAllowed Mvt Allowed
MaintenanceOrderComponentBatch MaintenanceOrderComponentBatch Batch
MaintOrderComponentInternalID MaintOrderComponentInternalID Object number
QuantityIsFixed QuantityIsFixed Qty. is fixed
MaintOrdOpComponentCurrency MaintOrdOpComponentCurrency Currency
MaintOrdOpComponentGLAccount MaintOrdOpComponentGLAccount G/L Account
MaintOrdOpCompCostingRelevancy MaintOrdOpCompCostingRelevancy CostingRelevncy
MaintCompAltvProdUsgeRateInPct MaintCompAltvProdUsgeRateInPct Usage Prob.
MaintOrderOpComponentSortText MaintOrderOpComponentSortText Sort String
MaintOrdOpCompIsBulkProduct MaintOrdOpCompIsBulkProduct Bulk material
MaterialProvisionType MaterialProvisionType Material Provision Type
MaintOrdOpCompAssgdWBSElmntInt MaintOrdOpCompAssgdWBSElmntInt WBS Internal ID
WBSElement
MaintOrderOpComponentPrice MaintOrderOpComponentPrice Price/currency
MaintOrdOpCompPriceUnitQty MaintOrdOpCompPriceUnitQty Price unit
MatlCompIsMarkedForBackflush MatlCompIsMarkedForBackflush Backflush
PurchasingGroup PurchasingGroup Purchasing Group
DeliveryTimeInDays DeliveryTimeInDays Delivery Time in Days
MaintOrdOpCompGdsRecipientName MaintOrdOpCompGdsRecipientName Recipient
MaintOrdOpCompUnloadingPtTxt MaintOrdOpCompUnloadingPtTxt Unloading Point
GoodsReceiptDurationInWorkDays GoodsReceiptDurationInWorkDays GR proc. time
PurchasingInfoRecord PurchasingInfoRecord Info Record
OperationLeadTimeOffset OperationLeadTimeOffset Oper. LT offset
OpsLeadTimeOffsetUnit OpsLeadTimeOffsetUnit Oper. LTO unit
MaintOrdOpCompRequisitioner MaintOrdOpCompRequisitioner Requisitioner
MaintOrdOpCompProcmtTrckgNmbr MaintOrdOpCompProcmtTrckgNmbr Tracking Number
PurchaseRequisition PurchaseRequisition Requisition
PurchaseRequisitionItem PurchaseRequisitionItem Requisn. item
OverallLimitAmount OverallLimitAmount Overall Limit
ExpectedOverallLimitAmount ExpectedOverallLimitAmount Expected Value
MaintOrdOpCompSpecialStockType MaintOrdOpCompSpecialStockType Special Stock
VariableSizeDimension1 VariableSizeDimension1 Size 1
VariableSizeDimensionUnit VariableSizeDimensionUnit Size unit
VariableSizeCompFormulaKey VariableSizeCompFormulaKey VSI Formula
VariableSizeDimension2 VariableSizeDimension2 Size 2
NumberOfVariableSizeItem NumberOfVariableSizeItem Number Required
VariableSizeDimension3 VariableSizeDimension3 Size 3
VariableSizeItemQuantity VariableSizeItemQuantity VSI Quantity
VariableSizeComponentUnit VariableSizeComponentUnit VSI UoM
RqmtDateIsEnteredManually RqmtDateIsEnteredManually Man. Reqmt Date
SupplierProduct SupplierProduct Supp.Pro.No.
MaintOrdCompCmtdQtyIsKept MaintOrdCompCmtdQtyIsKept Keep Committed Qties
MaintOrdOpCompPurOutlineAgrmt MaintOrdOpCompPurOutlineAgrmt Purchasing Doc.
MaintOrdCompPurOutlineAgrmtItm MaintOrdCompPurOutlineAgrmtItm Item
IsDeleted IsDeleted TRUE
MaintOrdOpCompProcmtCatalog MaintOrdOpCompProcmtCatalog Catalog ID
MaintOrdOpCompProcmtCatalogItm MaintOrdOpCompProcmtCatalogItm Product ID
QuantityWithdrawnInBaseUnit QuantityWithdrawnInBaseUnit Withdrawal Qty
ConfirmedAvailableQuantity ConfirmedAvailableQuantity Available Quantity
RecipientLocationCode _ReservationItem RecipientLocationCode Recipient Loc.
ControllingArea _MaintenanceOrder ControllingArea Controlling Area
_MaintenanceOrder _MaintenanceOrder
_MaintenanceOrderOperation _MaintenanceOrderOperation
_ReservationItem _ReservationItem
_UnitOfMeasure _UnitOfMeasure
_UnitOfMeasureEntry _UnitOfMeasureEntry
_Plant _Plant
_StorageLocation _StorageLocation
_ItemCategoryText _ItemCategoryText
_ProductTypeCode _ProductTypeCode
_ReservationIsFinallyIssued _ReservationIsFinallyIssued
_MaterialGroup _MaterialGroup
_PurReqnOrResvnGeneration _PurReqnOrResvnGeneration
_Supplier _Supplier
_MaintOrderOpCompLongText _MaintOrderOpCompLongText
_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 R_MaintOrderOpComponentTP.
-- 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 R_MaintOrderOpComponentTP AS
SELECT
  MaintenanceOrder,
  cast( MaintenanceOrderOperation as maintenanceorderoperation preserving type ) AS MaintenanceOrderOperation,
  cast( MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) AS MaintenanceOrderSubOperation,
  cast( MaintenanceOrderComponent as maintenanceordercomponent preserving type ) AS MaintenanceOrderComponent,
  cast( MaintenanceOrderOperation as maintenanceorderoperation preserving type ) AS MaintOrderOperationForEdit,
  cast( MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) AS MaintOrderSubOperationForEdit,
  cast( MaintenanceOrderComponent as maintenanceordercomponent preserving type ) AS MaintOrderComponentForEdit,
  Reservation,
  ReservationItem,
  ReservationType,
  MaintOrderRoutingNumber,
  MaintOrderOperationCounter,
  Material AS Product,
  BaseUnit,
  UnitOfEntry,
  case RequirementTime when '240000' then tstmp_to_dats( dats_tims_to_tstmp(dats_add_days( RequirementDate, 1, 'NULL'), cast( '000000' as abap.tims ), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) else tstmp_to_dats( dats_tims_to_tstmp(RequirementDate, RequirementTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) end as RequirementDate AS clientNULLendasRequirementDate,
  case RequirementTime when '240000' then tstmp_to_tims( dats_tims_to_tstmp(dats_add_days( RequirementDate, 1, 'NULL'), cast( '000000' as abap.tims ), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) else tstmp_to_tims( dats_tims_to_tstmp(RequirementDate, RequirementTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) end as RequirementTime AS clientNULLendasRequirementTime,
  Plant,
  StorageLocation,
  ItemCategory AS MaintOrdOpCompItemCategory,
  GoodsMovementType,
  ReservationIsFinallyIssued,
  case when PurchaseRequisition is null or PurchaseRequisition is initial then MaterialGroup else _PurchaseRequisitionItem.MaterialGroup end as MaterialGroup AS MaterialGroupendasMaterialGroup,
  PurReqnOrResvnGeneration AS MaintOrdOpCompIsMRPRelevant,
  MaterialCompIsProcuredDirectly,
  ProductTypeCode,
  ServicePerformer,
  case PerformancePeriodEndTime when '240000' then tstmp_to_dats( dats_tims_to_tstmp(dats_add_days( PerformancePeriodEndDate, 1, 'NULL'), cast( '000000' as abap.tims ), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) else tstmp_to_dats( dats_tims_to_tstmp(PerformancePeriodEndDate, PerformancePeriodEndTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) end as PerformancePeriodEndDate AS clientNULLendasPerformancePeriodEndDate,
  case PerformancePeriodEndTime when '240000' then tstmp_to_tims( dats_tims_to_tstmp(dats_add_days( PerformancePeriodEndDate, 1, 'NULL'), cast( '000000' as abap.tims ), abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) else tstmp_to_tims( dats_tims_to_tstmp(PerformancePeriodEndDate, PerformancePeriodEndTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL'), 'UTC', $session.client, 'NULL' ) end as PerformancePeriodEndTime AS clientNULLendasPerformancePeriodEndTime,
  LeanServiceDuration,
  LeanServiceDurationUnit,
  DistributionFunction,
  MaintOrdCompDeliveryDateAdjmt,
  SrvcSchedgIsAlignedWthOpWrkCtr,
  MaintOrderCompDebitCreditCode,
  GoodsMovementIsAllowed,
  MaintenanceOrderComponentBatch,
  MaintOrderComponentInternalID,
  QuantityIsFixed,
  MaintOrdOpComponentCurrency,
  MaintOrdOpComponentGLAccount,
  MaintOrdOpCompCostingRelevancy,
  MaintCompAltvProdUsgeRateInPct,
  MaintOrderOpComponentSortText,
  MaintOrdOpCompIsBulkProduct,
  MaterialProvisionType,
  MaintOrdOpCompAssgdWBSElmntInt,
  cast ( _WBSElement.WBSElement as vdm_ps_posid preserving type ) AS WBSElement,
  MaintOrderOpComponentPrice,
  MaintOrdOpCompPriceUnitQty,
  MatlCompIsMarkedForBackflush,
  PurchasingGroup,
  DeliveryTimeInDays,
  MaintOrdOpCompGdsRecipientName,
  MaintOrdOpCompUnloadingPtTxt,
  GoodsReceiptDurationInWorkDays,
  PurchasingInfoRecord,
  OperationLeadTimeOffset,
  OpsLeadTimeOffsetUnit,
  MaintOrdOpCompRequisitioner,
  MaintOrdOpCompProcmtTrckgNmbr,
  PurchaseRequisition,
  PurchaseRequisitionItem,
  OverallLimitAmount,
  ExpectedOverallLimitAmount,
  MaintOrdOpCompSpecialStockType,
  VariableSizeDimension1,
  VariableSizeDimensionUnit,
  VariableSizeCompFormulaKey,
  VariableSizeDimension2,
  NumberOfVariableSizeItem,
  VariableSizeDimension3,
  VariableSizeItemQuantity,
  VariableSizeComponentUnit,
  RqmtDateIsEnteredManually,
  SupplierProduct,
  MaintOrdCompCmtdQtyIsKept,
  MaintOrdOpCompPurOutlineAgrmt,
  MaintOrdCompPurOutlineAgrmtItm,
  IsDeleted,
  MaintOrdOpCompProcmtCatalog,
  MaintOrdOpCompProcmtCatalogItm,
  QuantityWithdrawnInBaseUnit,
  ConfirmedAvailableQuantity,
  _ReservationItem.RecipientLocationCode AS RecipientLocationCode,
  _MaintenanceOrder.ControllingArea AS ControllingArea
FROM I_MaintenanceOrderComponent
LEFT OUTER JOIN R_MaintenanceOrderTP AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder  -- association [1..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElement ON _WBSElement.WBSElementInternalID = MaintOrdOpCompAssgdWBSElmntInt  -- association [0..1]
LEFT OUTER JOIN I_MaterialGroup AS _MaterialGroup ON _MaterialGroup.MaterialGroup = MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON _PurchasingOrganization.PurchasingOrganization = ResponsiblePurchaseOrg  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN R_MaintOrderOpCompLongTextTP AS _MaintOrderOpCompLongText ON /* condition not available in parsed metadata */  -- association [0..*]
;