R_MaintOrderOpProdnRsceToolTP
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 58 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, ProdnRsceToolItemNumber. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrderOpProdnRsceTool | MaintOrderOpProdnRsceTool | from |
| I_ProdnRsceToolMasterData | ProdnRsceToolMasterData | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (58)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 | |
| 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 | |
| PlantName | ||||
| 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 | ||
| OrderOperationText | I_MaintOrderOpProdnRsceTool | OrderOperationText | Short Text | |
| MaterialName | ||||
| EquipmentName | ||||
| DocumentDescription | ||||
| MiscProductionResourceToolDesc | ||||
| ProdnRsceToolCategoryName | ||||
| ProdnRsceToolCategoryExtCode | _ProdnRsceToolCategoryText | ProdnRsceToolCategoryExtCode | PRT Cat. Ext. | |
| ProdnRsceToolControlProfile | I_MaintOrderOpProdnRsceTool | ProdnRsceToolControlProfile | PRT Control Profile | |
| ProdnRsceToolControlPrflName | ||||
| ProdnRsceToolStandardTextCode | I_MaintOrderOpProdnRsceTool | ProdnRsceToolStandardTextCode | Std Text Key | |
| ProdnRsceToolStdTextCodeName | ||||
| 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 | |
| ProdnRsceToolQtyCalcFmlaName | ||||
| ProdnRsceToolUsageQtyCalcFmla | I_MaintOrderOpProdnRsceTool | ProdnRsceToolUsageQtyCalcFmla | Formula | |
| PRTUsgeValCalcFormulaName | ||||
| _ProdnRsceToolCategoryText | _ProdnRsceToolCategoryText | |||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _MaintenanceOrderOperation | _MaintenanceOrderOperation |
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,
MaintOrderOpProdnRsceTool.ProductionResourceType AS ProductionResourceType,
MaintOrderOpProdnRsceTool.ProductionResourceInternalID AS ProductionResourceInternalID,
MaterialPRTByInternalKey.Material AS Product,
MiscPRTByInternalKey.MiscProductionResourceTool AS MiscProductionResourceTool,
MaterialPRTByInternalKey.Plant AS Plant,
MaterialPRTByInternalKey._Plant.PlantName AS PlantName,
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.OrderOperationText AS OrderOperationText,
MaterialPRTByInternalKey._Material._Text[ 1: Language = $session.system_language ].MaterialName AS MaterialName,
EquipmentPRTByInternalKey._Equipment._EquipmentText[ 1: Language = $session.system_language ].EquipmentName AS EquipmentName,
DocumentPRTByInternalKey._DocumentInfoRecord._DocDesc[ 1: Language = $session.system_language ].DocumentDescription AS DocumentDescription,
MiscPRTByInternalKey._Text[ 1: Language = $session.system_language ].MiscProductionResourceToolDesc AS MiscProductionResourceToolDesc,
_ProdnRsceToolCategoryText[ 1: Language = $session.system_language ].ProdnRsceToolCategoryName AS ProdnRsceToolCategoryName,
_ProdnRsceToolCategoryText.ProdnRsceToolCategoryExtCode AS ProdnRsceToolCategoryExtCode,
MaintOrderOpProdnRsceTool.ProdnRsceToolControlProfile AS ProdnRsceToolControlProfile,
ProdnRsceToolControlProfile._Text[ 1: Language = $session.system_language ].ProdnRsceToolControlPrflName AS ProdnRsceToolControlPrflName,
MaintOrderOpProdnRsceTool.ProdnRsceToolStandardTextCode AS ProdnRsceToolStandardTextCode,
ProdnRsceToolStandardText._Text[ 1: Language = $session.system_language ].ProdnRsceToolStdTextCodeName AS ProdnRsceToolStdTextCodeName,
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,
ProdnRsceToolMasterData._ProdnRsceToolTotQtyCalcFmla._Text[ 1: Language = $session.system_language ].ProdnRsceToolQtyCalcFmlaName AS ProdnRsceToolQtyCalcFmlaName,
MaintOrderOpProdnRsceTool.ProdnRsceToolUsageQtyCalcFmla AS ProdnRsceToolUsageQtyCalcFmla,
ProdnRsceToolMasterData._ProdnRsceToolUsageQtyCalcFmla._Text[ 1: Language = $session.system_language ].ProdnRsceToolQtyCalcFmlaName AS PRTUsgeValCalcFormulaName
FROM I_MaintOrderOpProdnRsceTool AS MaintOrderOpProdnRsceTool
INNER JOIN I_ProdnRsceToolMasterData AS ProdnRsceToolMasterData ON /* join condition not captured in parsed metadata */
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]
;
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