C_MaintOrdCompPurRequisitionQ
Purchase Requisitions for Maintenance Orders
C_MaintOrdCompPurRequisitionQ is a Consumption CDS View that provides data about "Purchase Requisitions for Maintenance Orders" in SAP S/4HANA. It reads from 1 data source (I_MaintOrdCompPurRequisitionC) and exposes 41 fields with key fields PurchaseRequisition, PurchaseRequisitionItem.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintOrdCompPurRequisitionC | I_MaintOrdCompPurRequisitionC | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Purchase Requisitions for Maintenance Orders | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| AbapCatalog.sqlViewName | CMTORDCOMPPURREQ | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Metadata.allowExtensions | true | view |
Fields (41)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseRequisition | PurchaseRequisition | Requisition | |
| KEY | PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item | |
| MaintenanceOrder | MaintenanceOrder | Order | ||
| MaintOrderRoutingNumber | MaintOrderRoutingNumber | Plan No.f.Oper. | ||
| MaintOrderOperationCounter | MaintOrderOperationCounter | Counter | ||
| MaintenanceOrderOperation | MaintenanceOrderOperation | Suboperation | ||
| MaintenanceOrderSubOperation | ||||
| OperationDescription | OperationDescription | Op. Short Text | ||
| Reservation | Reservation | Reservation | ||
| ReservationItem | ReservationItem | Reservation Item | ||
| ReferenceDate | ReferenceDate | Reference Date | ||
| MaintOrdBasicStartDate | MaintOrdBasicStartDate | Bas. Start Date | ||
| OpErlstSchedldExecStrtDte | OpErlstSchedldExecStrtDte | Earl.start date | ||
| RequirementDate | RequirementDate | Requirement Date | ||
| MaintPriority | MaintPriority | Priority | ||
| MaintenanceOrderType | MaintenanceOrderType | Order Type | ||
| MaintPriorityDesc | MaintPriorityDesc | Priority | ||
| MaintenanceOrderDesc | MaintenanceOrderDesc | Description | ||
| MaintenanceRevision | MaintenanceRevision | Revision | ||
| MaintenancePlannerGroup | MaintenancePlannerGroup | Planner Group | ||
| MaintenancePlanningPlant | MaintenancePlanningPlant | Planning Plant | ||
| MaintenancePlant | MaintenancePlant | Plant | ||
| MainWorkCenter | MainWorkCenter | Work Center | ||
| MainWorkCenterPlant | MainWorkCenterPlant | Plnt WorkCenter | ||
| PurchaseOrder | PurchaseOrder | Purchasing Document | ||
| PurchaseOrderItem | PurchaseOrderItem | Purchasing Document Item | ||
| Material | Material | Vehicle Model | ||
| MaterialName | MaterialName | Material Description | ||
| MaterialThumbnailURL | ||||
| PurReqnReleaseStatus | PurReqnReleaseStatus | Proc.state | ||
| RequestedQuantity | RequestedQuantity | Requested Quantity | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| Supplier | Supplier | Supplier | ||
| SupplierName | SupplierName | Supplier Name | ||
| PreferredSupplier | PreferredSupplier | Supplier | ||
| PreferredSupplierName | PreferredSupplierName | |||
| notshownanywhere1asItemCounter | ||||
| _MaintenanceOrder | _MaintenanceOrder | |||
| _PurchaseRequisitionItem | _PurchaseRequisitionItem | |||
| _Supplier | _Supplier | |||
| _PreferredSupplier | _PreferredSupplier |
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 C_MaintOrdCompPurRequisitionQ.
-- 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: CMTORDCOMPPURREQ
CREATE VIEW C_MaintOrdCompPurRequisitionQ AS
SELECT
PurchaseRequisition,
PurchaseRequisitionItem,
MaintenanceOrder,
MaintOrderRoutingNumber,
MaintOrderOperationCounter,
MaintenanceOrderOperation,
cast( '0000' as uvorn ) AS MaintenanceOrderSubOperation,
OperationDescription,
Reservation,
ReservationItem,
ReferenceDate,
MaintOrdBasicStartDate,
OpErlstSchedldExecStrtDte,
RequirementDate,
MaintPriority,
MaintenanceOrderType,
MaintPriorityDesc,
MaintenanceOrderDesc,
MaintenanceRevision,
MaintenancePlannerGroup,
MaintenancePlanningPlant,
MaintenancePlant,
MainWorkCenter,
MainWorkCenterPlant,
PurchaseOrder,
PurchaseOrderItem,
Material,
MaterialName,
concat( '/sap/opu/odata/sap/EAM_ORDER_MONITOR/' , concat( concat( 'MaterialThumbnail(''', Material ), ''')/$value') ) AS MaterialThumbnailURL,
PurReqnReleaseStatus,
RequestedQuantity,
BaseUnit,
Supplier,
SupplierName,
PreferredSupplier,
PreferredSupplierName,
not shown anywhere 1 as ItemCounter AS notshownanywhere1asItemCounter
FROM I_MaintOrdCompPurRequisitionC
;
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