R_MaintOrderOpProdnRsceToolTP

DDL: R_MAINTORDEROPPRODNRSCETOOLTP Type: view_entity TRANSACTIONAL

Maintenance Order Operation PRT TP

R_MaintOrderOpProdnRsceToolTP is a Transactional CDS View that provides data about "Maintenance Order Operation PRT TP" in SAP S/4HANA. It reads from 2 data sources (I_MaintOrderOpProdnRsceTool, I_ProdnRsceToolMasterData) and exposes 56 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, ProdnRsceToolItemNumber. It has 7 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_MaintOrderOpProdnRsceTool MaintOrderOpProdnRsceTool from
I_ProdnRsceToolMasterData ProdnRsceToolMasterData inner

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_ProdnRsceToolQtyCalcFormula _ProdnRsceToolTotQtyCalcFmla $projection.ProdnRsceToolTotQtyCalcFormula = _ProdnRsceToolTotQtyCalcFmla.ProdnRsceToolQtyCalcFormula
[1..1] I_ProdnRsceToolQtyCalcFormula _ProdnRsceToolUsageQtyCalcFmla $projection.ProdnRsceToolUsageQtyCalcFmla = _ProdnRsceToolUsageQtyCalcFmla.ProdnRsceToolQtyCalcFormula
[1..1] I_MiscPRTByInternalKey _MiscPRTByInternalKey $projection.ProductionResourceType = _MiscPRTByInternalKey.ProductionResourceType and $projection.ProductionResourceInternalID = _MiscPRTByInternalKey.ProductionResourceInternalID
[1..1] R_MaintenanceOrderTP _MaintenanceOrder $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder
[0..1] I_ProdnRsceToolCategoryText_2 _ProdnRsceToolCategoryText $projection.ProdnRsceToolCategory = _ProdnRsceToolCategoryText.ProdnRsceToolCategory and _ProdnRsceToolCategoryText.Language = $session.system_language
[0..1] I_ProdnRsceToolStandardText _ProdnRsceToolStandardText _ProdnRsceToolStandardText.ProdnRsceToolStandardTextCode = $projection.ProdnRsceToolStandardTextCode
[0..1] I_ProdnRsceToolControlProfile _ProdnRsceToolControlProfile _ProdnRsceToolControlProfile.ProdnRsceToolControlProfile = $projection.ProdnRsceToolControlProfile

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Maintenance Order Operation PRT TP view
Metadata.ignorePropagatedAnnotations true 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

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY MaintenanceOrder I_MaintOrderOpProdnRsceTool MaintenanceOrder Order
KEY MaintenanceOrderOperation I_MaintOrderOpProdnRsceTool MaintenanceOrderOperation Suboperation
KEY MaintenanceOrderSubOperation I_MaintOrderOpProdnRsceTool MaintenanceOrderSubOperation Suboperation
KEY ProdnRsceToolItemNumber I_MaintOrderOpProdnRsceTool ProdnRsceToolItemNumber Item Number
MaintOrderOperationForEdit
MaintOrderSubOperationForEdit
OrderProdnRsceToolInternalID I_MaintOrderOpProdnRsceTool OrderProdnRsceToolInternalID Test equipment
TextObjectKey I_MaintOrderOpProdnRsceTool TextObjectKey Text Name
OrderInternalBillOfOperations I_MaintOrderOpProdnRsceTool OrderInternalBillOfOperations Order Internal Bill of Operations
ObjectInternalID I_MaintOrderOpProdnRsceTool ObjectInternalID Object number
OrderProdnRsceToolText I_MaintOrderOpProdnRsceTool OrderProdnRsceToolText Text for PRT
ProdnRsceToolCategory I_MaintOrderOpProdnRsceTool ProdnRsceToolCategory PRT Category
ProdnRsceToolCategoryExtCode _ProdnRsceToolCategoryText ProdnRsceToolCategoryExtCode PRT Cat. Ext.
ProductionResourceType I_MaintOrderOpProdnRsceTool ProductionResourceType Object Type
ProductionResourceInternalID I_MaintOrderOpProdnRsceTool ProductionResourceInternalID Object ID
Product MaterialPRTByInternalKey Material Vehicle Model
MiscProductionResourceTool MiscPRTByInternalKey MiscProductionResourceTool
Plant MaterialPRTByInternalKey Plant Valuation Area
Equipment EquipmentPRTByInternalKey Equipment Equipment check
DocumentInfoRecord DocumentPRTByInternalKey DocumentInfoRecord Document
DocumentType DocumentPRTByInternalKey DocumentType Order Type
DocumentPart DocumentPRTByInternalKey DocumentPart Document Part
DocumentVersion DocumentPRTByInternalKey DocumentVersion Docu. Version
MeasuringPoint MsrgPointPRTByInternalKey MeasuringPoint
ProdnRsceToolControlProfile I_MaintOrderOpProdnRsceTool ProdnRsceToolControlProfile PRT Control Profile
ProdnRsceToolStandardTextCode I_MaintOrderOpProdnRsceTool ProdnRsceToolStandardTextCode Std Text Key
ProdnRsceToolStdWorkQtyUnit I_MaintOrderOpProdnRsceTool ProdnRsceToolStdWorkQtyUnit Unit
ProdnRsceToolStandardWorkQty I_MaintOrderOpProdnRsceTool ProdnRsceToolStandardWorkQty Quantity
PlannedProdnRsceToolQtyUnit I_MaintOrderOpProdnRsceTool PlannedProdnRsceToolQtyUnit
PlannedTotalProdnRsceToolQty I_MaintOrderOpProdnRsceTool PlannedTotalProdnRsceToolQty Quantity
ConfirmedProdnRsceToolQtyUnit I_MaintOrderOpProdnRsceTool ConfirmedProdnRsceToolQtyUnit
ConfirmedProdnRsceToolQty I_MaintOrderOpProdnRsceTool ConfirmedProdnRsceToolQty Actual Quantity
RemainingProdnRsceToolQtyUnit I_MaintOrderOpProdnRsceTool RemainingProdnRsceToolQtyUnit
RemainingProdnRsceToolQty I_MaintOrderOpProdnRsceTool RemainingProdnRsceToolQty Remaining
ProdnRsceToolUsageQuantityUnit I_MaintOrderOpProdnRsceTool ProdnRsceToolUsageQuantityUnit Usage Val. Unit
ProdnRsceToolUsageQuantity I_MaintOrderOpProdnRsceTool ProdnRsceToolUsageQuantity Usage Value
PlndProdnRsceToolUsageQtyUnit I_MaintOrderOpProdnRsceTool PlndProdnRsceToolUsageQtyUnit
PlannedProdnRsceToolUsageQty I_MaintOrderOpProdnRsceTool PlannedProdnRsceToolUsageQty Usage Value
ConfdProdnRsceToolUsageQtyUnit I_MaintOrderOpProdnRsceTool ConfdProdnRsceToolUsageQtyUnit
ConfirmedProdnRsceToolUsageQty I_MaintOrderOpProdnRsceTool ConfirmedProdnRsceToolUsageQty Actual
RmngProdnRsceToolUsageQtyUnit I_MaintOrderOpProdnRsceTool RmngProdnRsceToolUsageQtyUnit
RemainingProdnRsceToolUsageQty I_MaintOrderOpProdnRsceTool RemainingProdnRsceToolUsageQty Remaining
ProdnRsceToolTotQtyCalcFormula I_MaintOrderOpProdnRsceTool ProdnRsceToolTotQtyCalcFormula Formula
ProdnRsceToolUsageQtyCalcFmla I_MaintOrderOpProdnRsceTool ProdnRsceToolUsageQtyCalcFmla Formula
_ProdnRsceToolCategoryText _ProdnRsceToolCategoryText
_MaintenanceOrder _MaintenanceOrder
_MaintenanceOrderOperation _MaintenanceOrderOperation
_Material MaterialPRTByInternalKey _Material
_Plant MaterialPRTByInternalKey _Plant
_Equipment EquipmentPRTByInternalKey _Equipment
_DocumentInfoRecord DocumentPRTByInternalKey _DocumentInfoRecord
_ProdnRsceToolControlProfile _ProdnRsceToolControlProfile
_ProdnRsceToolStandardText _ProdnRsceToolStandardText
_ProdnRsceToolTotQtyCalcFmla _ProdnRsceToolTotQtyCalcFmla
_ProdnRsceToolUsageQtyCalcFmla _ProdnRsceToolUsageQtyCalcFmla
_MiscPRTByInternalKey _MiscPRTByInternalKey

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_MaintOrderOpProdnRsceToolTP.
-- 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_MaintOrderOpProdnRsceToolTP AS
SELECT
  MaintOrderOpProdnRsceTool.MaintenanceOrder AS MaintenanceOrder,
  MaintOrderOpProdnRsceTool.MaintenanceOrderOperation AS MaintenanceOrderOperation,
  MaintOrderOpProdnRsceTool.MaintenanceOrderSubOperation AS MaintenanceOrderSubOperation,
  MaintOrderOpProdnRsceTool.ProdnRsceToolItemNumber AS ProdnRsceToolItemNumber,
  cast( MaintOrderOpProdnRsceTool.MaintenanceOrderOperation as maintenanceorderoperation preserving type ) AS MaintOrderOperationForEdit,
  cast( MaintOrderOpProdnRsceTool.MaintenanceOrderSubOperation as maintenanceordersuboperation preserving type ) AS MaintOrderSubOperationForEdit,
  MaintOrderOpProdnRsceTool.OrderProdnRsceToolInternalID AS OrderProdnRsceToolInternalID,
  MaintOrderOpProdnRsceTool.TextObjectKey AS TextObjectKey,
  MaintOrderOpProdnRsceTool.OrderInternalBillOfOperations AS OrderInternalBillOfOperations,
  MaintOrderOpProdnRsceTool.ObjectInternalID AS ObjectInternalID,
  MaintOrderOpProdnRsceTool.OrderProdnRsceToolText AS OrderProdnRsceToolText,
  MaintOrderOpProdnRsceTool.ProdnRsceToolCategory AS ProdnRsceToolCategory,
  _ProdnRsceToolCategoryText.ProdnRsceToolCategoryExtCode AS ProdnRsceToolCategoryExtCode,
  MaintOrderOpProdnRsceTool.ProductionResourceType AS ProductionResourceType,
  MaintOrderOpProdnRsceTool.ProductionResourceInternalID AS ProductionResourceInternalID,
  MaterialPRTByInternalKey.Material AS Product,
  MiscPRTByInternalKey.MiscProductionResourceTool AS MiscProductionResourceTool,
  MaterialPRTByInternalKey.Plant AS Plant,
  EquipmentPRTByInternalKey.Equipment AS Equipment,
  DocumentPRTByInternalKey.DocumentInfoRecord AS DocumentInfoRecord,
  DocumentPRTByInternalKey.DocumentType AS DocumentType,
  DocumentPRTByInternalKey.DocumentPart AS DocumentPart,
  DocumentPRTByInternalKey.DocumentVersion AS DocumentVersion,
  MsrgPointPRTByInternalKey.MeasuringPoint AS MeasuringPoint,
  MaintOrderOpProdnRsceTool.ProdnRsceToolControlProfile AS ProdnRsceToolControlProfile,
  MaintOrderOpProdnRsceTool.ProdnRsceToolStandardTextCode AS ProdnRsceToolStandardTextCode,
  MaintOrderOpProdnRsceTool.ProdnRsceToolStdWorkQtyUnit AS ProdnRsceToolStdWorkQtyUnit,
  MaintOrderOpProdnRsceTool.ProdnRsceToolStandardWorkQty AS ProdnRsceToolStandardWorkQty,
  MaintOrderOpProdnRsceTool.PlannedProdnRsceToolQtyUnit AS PlannedProdnRsceToolQtyUnit,
  MaintOrderOpProdnRsceTool.PlannedTotalProdnRsceToolQty AS PlannedTotalProdnRsceToolQty,
  MaintOrderOpProdnRsceTool.ConfirmedProdnRsceToolQtyUnit AS ConfirmedProdnRsceToolQtyUnit,
  MaintOrderOpProdnRsceTool.ConfirmedProdnRsceToolQty AS ConfirmedProdnRsceToolQty,
  MaintOrderOpProdnRsceTool.RemainingProdnRsceToolQtyUnit AS RemainingProdnRsceToolQtyUnit,
  MaintOrderOpProdnRsceTool.RemainingProdnRsceToolQty AS RemainingProdnRsceToolQty,
  MaintOrderOpProdnRsceTool.ProdnRsceToolUsageQuantityUnit AS ProdnRsceToolUsageQuantityUnit,
  MaintOrderOpProdnRsceTool.ProdnRsceToolUsageQuantity AS ProdnRsceToolUsageQuantity,
  MaintOrderOpProdnRsceTool.PlndProdnRsceToolUsageQtyUnit AS PlndProdnRsceToolUsageQtyUnit,
  MaintOrderOpProdnRsceTool.PlannedProdnRsceToolUsageQty AS PlannedProdnRsceToolUsageQty,
  MaintOrderOpProdnRsceTool.ConfdProdnRsceToolUsageQtyUnit AS ConfdProdnRsceToolUsageQtyUnit,
  MaintOrderOpProdnRsceTool.ConfirmedProdnRsceToolUsageQty AS ConfirmedProdnRsceToolUsageQty,
  MaintOrderOpProdnRsceTool.RmngProdnRsceToolUsageQtyUnit AS RmngProdnRsceToolUsageQtyUnit,
  MaintOrderOpProdnRsceTool.RemainingProdnRsceToolUsageQty AS RemainingProdnRsceToolUsageQty,
  MaintOrderOpProdnRsceTool.ProdnRsceToolTotQtyCalcFormula AS ProdnRsceToolTotQtyCalcFormula,
  MaintOrderOpProdnRsceTool.ProdnRsceToolUsageQtyCalcFmla AS ProdnRsceToolUsageQtyCalcFmla,
  MaterialPRTByInternalKey._Material AS _Material,
  MaterialPRTByInternalKey._Plant AS _Plant,
  EquipmentPRTByInternalKey._Equipment AS _Equipment,
  DocumentPRTByInternalKey._DocumentInfoRecord AS _DocumentInfoRecord
FROM I_MaintOrderOpProdnRsceTool AS MaintOrderOpProdnRsceTool
INNER JOIN I_ProdnRsceToolMasterData AS ProdnRsceToolMasterData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProdnRsceToolQtyCalcFormula AS _ProdnRsceToolTotQtyCalcFmla ON ProdnRsceToolTotQtyCalcFormula = _ProdnRsceToolTotQtyCalcFmla.ProdnRsceToolQtyCalcFormula  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolQtyCalcFormula AS _ProdnRsceToolUsageQtyCalcFmla ON ProdnRsceToolUsageQtyCalcFmla = _ProdnRsceToolUsageQtyCalcFmla.ProdnRsceToolQtyCalcFormula  -- association [1..1]
LEFT OUTER JOIN I_MiscPRTByInternalKey AS _MiscPRTByInternalKey ON ProductionResourceType = _MiscPRTByInternalKey.ProductionResourceType AND ProductionResourceInternalID = _MiscPRTByInternalKey.ProductionResourceInternalID  -- association [1..1]
LEFT OUTER JOIN R_MaintenanceOrderTP AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder  -- association [1..1]
LEFT OUTER JOIN I_ProdnRsceToolCategoryText_2 AS _ProdnRsceToolCategoryText ON ProdnRsceToolCategory = _ProdnRsceToolCategoryText.ProdnRsceToolCategory AND _ProdnRsceToolCategoryText.Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_ProdnRsceToolStandardText AS _ProdnRsceToolStandardText ON _ProdnRsceToolStandardText.ProdnRsceToolStandardTextCode = ProdnRsceToolStandardTextCode  -- association [0..1]
LEFT OUTER JOIN I_ProdnRsceToolControlProfile AS _ProdnRsceToolControlProfile ON _ProdnRsceToolControlProfile.ProdnRsceToolControlProfile = ProdnRsceToolControlProfile  -- association [0..1]
;