P_MaintenanceOrderConfirmation
Maintenance Order Confirmation
P_MaintenanceOrderConfirmation is a Basic CDS View that provides data about "Maintenance Order Confirmation" in SAP S/4HANA. It reads from 3 data sources (afru, afvc, afvc) and exposes 52 fields with key fields MaintOrderConf, MaintOrderConfCntrValue. It has 3 associations to related views.
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Language | _Language | $projection.Language = _Language.Language |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | tz1appl | _TimeZoneConfig | _TimeZoneConfig.appl = 'PM_WOC' |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMAINTORDCONF | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Maintenance Order Confirmation | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MaintOrderConf | afru | rueck | Return Agmt |
| KEY | MaintOrderConfCntrValue | afru | rmzhl | Counter |
| MaintOrderConfirmationEntryDte | ||||
| EnteredByUser | ||||
| LastChangeDate | afru | laeda | Last Change | |
| LastChangedByUser | afru | aenam | User Name | |
| PostingDate | ||||
| WorkCenterInternalID | afru | arbid | WorkCtrGp plan. | |
| Plant | afru | werks | Receiving Plant | |
| ConfirmationText | afru | ltxa1 | Short Text | |
| Language | ||||
| ActualWorkQuantity | afru | ismnw | Actual work | |
| ActualWorkQuantityUnit | afru | ismne | Unit for work | |
| ActivityType | afru | learr | Activity Type | |
| ActualDuration | afru | idaur | Actual Duration | |
| ActualDurationUnit | afru | idaue | Un/actual dur. | |
| EmployeeWageType | afru | loart | Wage type | |
| EmployeeWageGroup | afru | logrp | Wage Group | |
| ConfirmationYieldQuantity | afru | lmnga | Yield Quantity | |
| ConfirmationScrapQuantity | afru | xmnga | Scrap Quantity | |
| ConfirmationUnit | afru | meinh | Unit of Measure | |
| VarianceReasonCode | ||||
| PersonnelNumber | afru | pernr | Personnel no. | |
| OperationConfirmedStartDate | afru | isdd | Start Execution | |
| OperationConfirmedStartTime | afru | isdz | Execution Start Time | |
| OperationConfirmedEndDate | afru | iedd | Finish Execut. | |
| OperationConfirmedEndTime | afru | iedz | Execution End Time | |
| ActyConfFcstdEndDate | afru | pedd | Forecast finish | |
| ActyConfFcstdEndTime | afru | pedz | Forecast End | |
| MaterialDocument | afru | wablnr | Material Doc. | |
| OpenReservationsIsCleared | afru | ausor | Open Reservs. | |
| MaintOrderRoutingNumber | afru | aufpl | TaskList No.Ops | |
| MaintOrderOperationCounter | afru | aplzl | Plan No.f.Oper. | |
| MaintenanceOrder | afru | aufnr | SettlementOrder | |
| RemainingWorkQuantity | afru | ofmnw | Remaining work | |
| RemainingWorkQuantityUnit | afru | ofmne | Unit Remng Work | |
| NoFurtherWorkQuantityIsExpd | afru | leknw | No Remain. Work | |
| IsReversed | afru | stokz | Reversed | |
| CancldMaintOrderConfCntrValue | afru | stzhl | Cancelled Conf. | |
| CapacityInternalID | afru | kapid | Capacity ID | |
| NmbrOfMaintTechnicianCapSplits | afru | split | Splitting | |
| ConfirmationReworkQuantity | afru | rmnga | Rework Quantity | |
| MaintOrderConfirmationEntryTme | ||||
| AccountingIndicatorCode | afru | bemot | AcctIndicator | |
| EnteredByExternalUser | afru | exnam | Created by | |
| ConfirmationExternalEntryDate | ||||
| ConfirmationExternalEntryTime | ||||
| ActualWorkExternalQuantityUnit | afru | ismnu | Unit for work | |
| RemainingWorkExtQuantityUnit | afru | ofmnu | Unit for work | |
| MaintOrderOperationInternalID | afvc | objnr | Val. Obj. No. | |
| _Language | _Language | |||
| _Plant | _Plant |
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 P_MaintenanceOrderConfirmation.
-- 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: PMAINTORDCONF
CREATE VIEW P_MaintenanceOrderConfirmation AS
SELECT
afru.rueck AS MaintOrderConf,
afru.rmzhl AS MaintOrderConfCntrValue,
cast(afru.ersda as ru_ersda) AS MaintOrderConfirmationEntryDte,
cast(afru.ernam as ru_ernam) AS EnteredByUser,
afru.laeda AS LastChangeDate,
afru.aenam AS LastChangedByUser,
cast(afru.budat as pph_budat) AS PostingDate,
afru.arbid AS WorkCenterInternalID,
afru.werks AS Plant,
afru.ltxa1 AS ConfirmationText,
cast(afru.txtsp as spras) AS Language,
afru.ismnw AS ActualWorkQuantity,
afru.ismne AS ActualWorkQuantityUnit,
afru.learr AS ActivityType,
afru.idaur AS ActualDuration,
afru.idaue AS ActualDurationUnit,
afru.loart AS EmployeeWageType,
afru.logrp AS EmployeeWageGroup,
afru.lmnga AS ConfirmationYieldQuantity,
afru.xmnga AS ConfirmationScrapQuantity,
afru.meinh AS ConfirmationUnit,
cast(afru.grund as pph_agrnd) AS VarianceReasonCode,
afru.pernr AS PersonnelNumber,
afru.isdd AS OperationConfirmedStartDate,
afru.isdz AS OperationConfirmedStartTime,
afru.iedd AS OperationConfirmedEndDate,
afru.iedz AS OperationConfirmedEndTime,
afru.pedd AS ActyConfFcstdEndDate,
afru.pedz AS ActyConfFcstdEndTime,
afru.wablnr AS MaterialDocument,
afru.ausor AS OpenReservationsIsCleared,
afru.aufpl AS MaintOrderRoutingNumber,
afru.aplzl AS MaintOrderOperationCounter,
afru.aufnr AS MaintenanceOrder,
afru.ofmnw AS RemainingWorkQuantity,
afru.ofmne AS RemainingWorkQuantityUnit,
afru.leknw AS NoFurtherWorkQuantityIsExpd,
afru.stokz AS IsReversed,
afru.stzhl AS CancldMaintOrderConfCntrValue,
afru.kapid AS CapacityInternalID,
afru.split AS NmbrOfMaintTechnicianCapSplits,
afru.rmnga AS ConfirmationReworkQuantity,
cast(afru.erzet as ru_erzet) AS MaintOrderConfirmationEntryTme,
afru.bemot AS AccountingIndicatorCode,
afru.exnam AS EnteredByExternalUser,
cast(afru.exerd as ru_exerd) AS ConfirmationExternalEntryDate,
cast(afru.exerz as ru_exerz) AS ConfirmationExternalEntryTime,
afru.ismnu AS ActualWorkExternalQuantityUnit,
afru.ofmnu AS RemainingWorkExtQuantityUnit,
afvc.objnr AS MaintOrderOperationInternalID
FROM afru
LEFT OUTER JOIN afvc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN afvc AS afvc_sub ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Language AS _Language ON Language = _Language.Language -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN tz1appl AS _TimeZoneConfig ON _TimeZoneConfig.appl = 'PM_WOC' -- 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