I_MaintOrderOpProdnRsceTool
Maintenance Order Operation PRT
I_MaintOrderOpProdnRsceTool is a Basic CDS View that provides data about "Maintenance Order Operation PRT" in SAP S/4HANA. It reads from 4 data sources (affh, afih, afvc, crfh) and exposes 34 fields with key fields MaintenanceOrder, MaintenanceOrderOperation, MaintenanceOrderSubOperation, ProdnRsceToolItemNumber. It has 1 association to related views.
Data Sources (4)
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaintenanceOrder | _MaintenanceOrder | $projection.MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMAINTOPPRT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Maintenance Order Operation PRT | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintenanceOrder | afih | aufnr | SettlementOrder |
| KEY | MaintenanceOrderOperation | |||
| KEY | MaintenanceOrderSubOperation | |||
| KEY | ProdnRsceToolItemNumber | affh | psnfh | Item Number |
| OrderProdnRsceToolInternalID | affh | pzlfh | Test equipment | |
| TextObjectKey | ||||
| OrderProdnRsceToolText | affh | txtz1 | Text for PRT | |
| ProductionResourceType | affh | objty | Prj. Obj. Type | |
| ProductionResourceInternalID | affh | objid | Work Center | |
| ProdnRsceToolControlProfile | affh | steuf | PRT Control Profile | |
| ProdnRsceToolCategory | ||||
| ProdnRsceToolStandardWorkQty | affh | mgvgw | Quantity | |
| ProdnRsceToolStdWorkQtyUnit | affh | mgeinh | Unit | |
| OrderInternalBillOfOperations | affh | aufpl | TaskList No.Ops | |
| OrderOperationText | afvc | ltxa1 | Short Text | |
| ProdnRsceToolStandardTextCode | affh | ktsch | Std Text Key | |
| ObjectInternalID | affh | objnr | Val. Obj. No. | |
| PlannedProdnRsceToolQtyUnit | ||||
| PlannedTotalProdnRsceToolQty | affh | mgsol | Quantity | |
| ConfirmedProdnRsceToolQtyUnit | ||||
| ConfirmedProdnRsceToolQty | affh | mgist | Actual Quantity | |
| RemainingProdnRsceToolQtyUnit | ||||
| RemainingProdnRsceToolQty | affh | mgrst | Remaining | |
| ProdnRsceToolUsageQuantityUnit | affh | eweinh | Usage Val. Unit | |
| ProdnRsceToolUsageQuantity | affh | ewvgw | Usage Value | |
| PlndProdnRsceToolUsageQtyUnit | ||||
| PlannedProdnRsceToolUsageQty | affh | ewsol | Usage Value | |
| ConfdProdnRsceToolUsageQtyUnit | ||||
| ConfirmedProdnRsceToolUsageQty | affh | ewist | Actual | |
| RmngProdnRsceToolUsageQtyUnit | ||||
| RemainingProdnRsceToolUsageQty | affh | ewrst | Remaining | |
| ProdnRsceToolTotQtyCalcFormula | affh | mgform | Formula | |
| ProdnRsceToolUsageQtyCalcFmla | affh | ewform | Formula | |
| _MaintenanceOrder | _MaintenanceOrder |
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_MaintOrderOpProdnRsceTool.
-- 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: IMAINTOPPRT
CREATE VIEW I_MaintOrderOpProdnRsceTool AS
SELECT
afih.aufnr AS MaintenanceOrder,
cast( afvc.vornr as maintenanceorderoperation preserving type ) AS MaintenanceOrderOperation,
cast( ' ' as maintenanceordersuboperation preserving type ) AS MaintenanceOrderSubOperation,
affh.psnfh AS ProdnRsceToolItemNumber,
affh.pzlfh AS OrderProdnRsceToolInternalID,
cast(concat(concat(affh.mandt,affh.aufpl),affh.pzlfh) as tdobname ) AS TextObjectKey,
affh.txtz1 AS OrderProdnRsceToolText,
affh.objty AS ProductionResourceType,
affh.objid AS ProductionResourceInternalID,
affh.steuf AS ProdnRsceToolControlProfile,
cast( crfh.fhmar as mpe_fhmar preserving type ) AS ProdnRsceToolCategory,
affh.mgvgw AS ProdnRsceToolStandardWorkQty,
affh.mgeinh AS ProdnRsceToolStdWorkQtyUnit,
affh.aufpl AS OrderInternalBillOfOperations,
afvc.ltxa1 AS OrderOperationText,
affh.ktsch AS ProdnRsceToolStandardTextCode,
affh.objnr AS ObjectInternalID,
cast(affh.mgsoleh as pph_mgsoleh preserving type) AS PlannedProdnRsceToolQtyUnit,
affh.mgsol AS PlannedTotalProdnRsceToolQty,
cast(affh.mgisteh as pph_mgisteh preserving type) AS ConfirmedProdnRsceToolQtyUnit,
affh.mgist AS ConfirmedProdnRsceToolQty,
cast(affh.mgrsteh as pph_mgrsteh preserving type) AS RemainingProdnRsceToolQtyUnit,
affh.mgrst AS RemainingProdnRsceToolQty,
affh.eweinh AS ProdnRsceToolUsageQuantityUnit,
affh.ewvgw AS ProdnRsceToolUsageQuantity,
cast(affh.ewsoleh as vdm_ewsoleh preserving type) AS PlndProdnRsceToolUsageQtyUnit,
affh.ewsol AS PlannedProdnRsceToolUsageQty,
cast(affh.ewisteh as vdm_ewisteh preserving type) AS ConfdProdnRsceToolUsageQtyUnit,
affh.ewist AS ConfirmedProdnRsceToolUsageQty,
cast(affh.ewrsteh as vdm_ewrsteh preserving type) AS RmngProdnRsceToolUsageQtyUnit,
affh.ewrst AS RemainingProdnRsceToolUsageQty,
affh.mgform AS ProdnRsceToolTotQtyCalcFormula,
affh.ewform AS ProdnRsceToolUsageQtyCalcFmla
FROM afih
INNER JOIN afvc ON /* join condition not captured in parsed metadata */
INNER JOIN affh ON /* join condition not captured in parsed metadata */
INNER JOIN crfh ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MaintenanceOrder AS _MaintenanceOrder ON MaintenanceOrder = _MaintenanceOrder.MaintenanceOrder -- association [1..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