C_MRPMaintenanceOrderComponent
MRP Maintenance Order Component
C_MRPMaintenanceOrderComponent is a Consumption CDS View that provides data about "MRP Maintenance Order Component" in SAP S/4HANA. It reads from 1 data source (I_MaintenanceOrderComponent_2) and exposes 87 fields with key fields Reservation, ReservationItem. It has 6 associations to related views. It is exposed through 1 OData service (ASQL_F0251A). Part of development package ODATA_PP_MRP.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MaintenanceOrderComponent_2 | I_MaintenanceOrderComponent_2 | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProductPlant | _ProductPlant | $projection.Material = _ProductPlant.Product and $projection.MRPPlant = _ProductPlant.Plant |
| [0..1] | I_ProductSupplyPlanning | _ProductSupplyPlanning | $projection.Material = _ProductSupplyPlanning.Product and $projection.MRPPlant = _ProductSupplyPlanning.Plant |
| [0..1] | I_StatusCodeText | _StatusTextRel | _StatusTextRel.StatusCode = 'I0002' and _StatusTextRel.Language = $session.system_language and _StatusTextRel.StatusProfile = '' |
| [0..1] | I_StatusCodeText | _StatusTextCrea | _StatusTextCrea.StatusCode = 'I0001' and _StatusTextCrea.Language = $session.system_language and _StatusTextCrea.StatusProfile = '' |
| [0..1] | I_StatusCodeText | _StatusTextFin | _StatusTextFin.StatusCode = 'I1712' and _StatusTextFin.Language = $session.system_language and _StatusTextFin.StatusProfile = '' |
| [0..1] | I_StatusCodeText | _StatusTextProg | _StatusTextProg.StatusCode = 'IDGL2' and _StatusTextProg.Language = $session.system_language and _StatusTextProg.StatusProfile = '' |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMRPMAINTORDCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | MRP Maintenance Order Component | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F0251A | ASQL_F0251A | C2 | NOT_RELEASED |
Fields (87)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Reservation | Reservation | Reservation | |
| KEY | ReservationItem | ReservationItem | Reservation Item | |
| RecordType | ReservationType | Record type | ||
| RequirementType | ||||
| Material | Material | Vehicle Model | ||
| MaterialName | ||||
| MRPPlant | Plant | Valuation Area | ||
| RequirementDate | RequirementDate | Requirement Date | ||
| BaseUnit | BaseUnit | Unit of Measure | ||
| PurchasingGroup | _MaintenanceOrderOperation | PurchasingGroup | Purchasing Group | |
| MaterialProcurementCategory | _ProductPlant | ProcurementType | Procurement | |
| MaterialProcurementType | _ProductPlant | SpecialProcurementType | SpecProcurement | |
| ManufacturingOrder | MaintenanceOrder | Order | ||
| OrderCategory | _MaintenanceOrder | MaintenanceOrderCategory | ||
| OrderType | _MaintenanceOrder | MaintenanceOrderType | Order Type | |
| OrderTypeName | ||||
| PriorityCode | _MaintenanceOrder | MaintPriority | Priority | |
| OrderedQuantity | RequirementQuantityInBaseUnit | Threshold value | ||
| WithdrawnQuantity | QuantityWithdrawnInBaseUnit | Withdrawal Qty | ||
| OpenQuantity | ||||
| CommittedQuantity | 0 | |||
| OrderPlannedTotalQty | ||||
| OrderPlannedScrapQty | 0 | |||
| ExpectedDeviationQuantity | 0 | |||
| GoodsReceiptQty | 0 | |||
| PlannedStartDate | _MaintenanceOrder | MaintOrdBasicStartDate | Bas. Start Date | |
| OrderPlannedEndDate | _MaintenanceOrder | MaintOrdBasicEndDate | Basic fin. date | |
| MaintOrdBasicStartDate | _MaintenanceOrder | MaintOrdBasicStartDate | Bas. Start Date | |
| MaintOrdBasicEndDate | _MaintenanceOrder | MaintOrdBasicEndDate | Basic fin. date | |
| ActualStartDate | ||||
| ActualEndDate | ||||
| ActualReleasedDate | ||||
| ScheduledBasicStartDate | ||||
| ScheduledBasicEndDate | ||||
| ScheduledReleaseDate | ||||
| TopLevelOrder | ||||
| TopLevelOrderMaterial | ||||
| MaterialGoodsReceiptDuration | 0 | |||
| MaterialPlannedDeliveryDurn | 0 | |||
| MaterialPlannedProductionDurn | 0 | |||
| MaterialReplenishmentLeadDurn | 0 | |||
| SalesOrder | ||||
| SalesOrderItem | ||||
| SalesOrderType | ||||
| SalesOrderItemMaterial | ||||
| Customer | ||||
| WBSElementInternalID | ||||
| WBSElement | ||||
| WBSDescription | ||||
| ResponsiblePerson | ||||
| ResponsiblePersonName | ||||
| ProjectInternalID | ||||
| ProjectDescription | ||||
| Project | ||||
| TotalReplenishmentLeadDuration | _ProductSupplyPlanning | TotalReplenishmentLeadTime | Total RL time | |
| FixedLotSizeQuantity | _ProductSupplyPlanning | FixedLotSizeQuantity | Fixed lot size | |
| MinimumLotSizeQuantity | _ProductSupplyPlanning | MinimumLotSizeQuantity | Min. Lot Size | |
| MaximumLotSizeQuantity | _ProductSupplyPlanning | MaximumLotSizeQuantity | Max. Lot Size | |
| LotSizeRoundingQuantity | _ProductSupplyPlanning | LotSizeRoundingQuantity | Rounding value | |
| RoundingProfile | _ProductSupplyPlanning | RoundingProfile | Rnding Profile | |
| MaintPriorityType | _MaintenanceOrder | MaintPriority | Priority | |
| MaintenancePlanningPlant | _MaintenanceOrder | MaintenancePlanningPlant | Planning Plant | |
| MaintenancePlanningPlantName | ||||
| MaintenancePlannerGroup | _MaintenanceOrder | MaintenancePlannerGroup | Planner Group | |
| MaintenanceRevision | _MaintenanceOrder | MaintenanceRevision | Revision | |
| MaintenancePlan | _MaintenanceOrder | MaintenancePlan | MaintenancePlan | |
| MaintenanceNotification | _MaintenanceOrder | MaintenanceNotification | Notification | |
| MaintenanceWorkCenter | ||||
| MaintenanceWorkCenterText | ||||
| MaintenanceWorkCenterPlant | ||||
| ActivityType | _MaintenanceOrder | MaintenanceActivityType | MaintActivType | |
| MaintenanceActivityTypeName | ||||
| MaintenancePlannerGroupName | ||||
| StatusNameendendendasOrderStatusText | ||||
| MaintenanceOrder | MaintenanceOrder | Order | ||
| MaintenanceOrderOperation | MaintenanceOrderOperation | Suboperation | ||
| MaintenanceOrderComponent | MaintenanceOrderComponent | BOM item | ||
| ComponentDescription | ComponentDescription | Item Text | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| MaintOrderRoutingNumber | MaintOrderRoutingNumber | Plan No.f.Oper. | ||
| MaintOrderOperationCounter | MaintOrderOperationCounter | Counter | ||
| MaintOrderComponentInternalID | MaintOrderComponentInternalID | Object number | ||
| MaintComponentItemCategory | MaintComponentItemCategory | Item Category | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| IsDeleted | IsDeleted | TRUE | ||
| PurchaseRequisition | PurchaseRequisition | Requisition | ||
| PurchaseRequisitionItem | PurchaseRequisitionItem | Requisn. item |
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_MRPMaintenanceOrderComponent.
-- 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: CMRPMAINTORDCOMP
CREATE VIEW C_MRPMaintenanceOrderComponent AS
SELECT
Reservation,
ReservationItem,
ReservationType AS RecordType,
'AR' AS RequirementType,
Material,
_Material._Text[1: Language = $session.system_language ].MaterialName AS MaterialName,
Plant AS MRPPlant,
RequirementDate,
BaseUnit,
_MaintenanceOrderOperation.PurchasingGroup AS PurchasingGroup,
_ProductPlant.ProcurementType AS MaterialProcurementCategory,
_ProductPlant.SpecialProcurementType AS MaterialProcurementType,
MaintenanceOrder AS ManufacturingOrder,
_MaintenanceOrder.MaintenanceOrderCategory AS OrderCategory,
_MaintenanceOrder.MaintenanceOrderType AS OrderType,
_MaintenanceOrder._MaintenanceOrderType._Text[1: Language = $session.system_language ].OrderTypeName AS OrderTypeName,
_MaintenanceOrder.MaintPriority AS PriorityCode,
RequirementQuantityInBaseUnit AS OrderedQuantity,
QuantityWithdrawnInBaseUnit AS WithdrawnQuantity,
RequirementQuantityInBaseUnit - QuantityWithdrawnInBaseUnit AS OpenQuantity,
0 AS CommittedQuantity,
_MaintenanceOrderOperation._OperationPlanningValues.ConfirmationTotalQuantity AS OrderPlannedTotalQty,
0 AS OrderPlannedScrapQty,
0 AS ExpectedDeviationQuantity,
0 AS GoodsReceiptQty,
_MaintenanceOrder.MaintOrdBasicStartDate AS PlannedStartDate,
_MaintenanceOrder.MaintOrdBasicEndDate AS OrderPlannedEndDate,
_MaintenanceOrder.MaintOrdBasicStartDate AS MaintOrdBasicStartDate,
_MaintenanceOrder.MaintOrdBasicEndDate AS MaintOrdBasicEndDate,
_MaintenanceOrderOperation._OperationPlanningValues.OpActualExecutionStartDate AS ActualStartDate,
_MaintenanceOrderOperation._OperationPlanningValues.OpActualExecutionEndDate AS ActualEndDate,
'00000000' AS ActualReleasedDate,
_MaintenanceOrderOperation._OperationPlanningValues.OpErlstSchedldExecStrtDte AS ScheduledBasicStartDate,
_MaintenanceOrderOperation._OperationPlanningValues.OpErlstSchedldExecEndDte AS ScheduledBasicEndDate,
'00000000' AS ScheduledReleaseDate,
'' AS TopLevelOrder,
'' AS TopLevelOrderMaterial,
0 AS MaterialGoodsReceiptDuration,
0 AS MaterialPlannedDeliveryDurn,
0 AS MaterialPlannedProductionDurn,
0 AS MaterialReplenishmentLeadDurn,
'' AS SalesOrder,
'000000' AS SalesOrderItem,
'' AS SalesOrderType,
'' AS SalesOrderItemMaterial,
'' AS Customer,
'00000000' AS WBSElementInternalID,
'' AS WBSElement,
'' AS WBSDescription,
'00000000' AS ResponsiblePerson,
'' AS ResponsiblePersonName,
'00000000' AS ProjectInternalID,
'' AS ProjectDescription,
'' AS Project,
_ProductSupplyPlanning.TotalReplenishmentLeadTime AS TotalReplenishmentLeadDuration,
_ProductSupplyPlanning.FixedLotSizeQuantity AS FixedLotSizeQuantity,
_ProductSupplyPlanning.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
_ProductSupplyPlanning.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
_ProductSupplyPlanning.LotSizeRoundingQuantity AS LotSizeRoundingQuantity,
_ProductSupplyPlanning.RoundingProfile AS RoundingProfile,
_MaintenanceOrder.MaintPriority AS MaintPriorityType,
_MaintenanceOrder.MaintenancePlanningPlant AS MaintenancePlanningPlant,
_MaintenanceOrder._MaintenancePlanningPlant.PlantName AS MaintenancePlanningPlantName,
_MaintenanceOrder.MaintenancePlannerGroup AS MaintenancePlannerGroup,
_MaintenanceOrder.MaintenanceRevision AS MaintenanceRevision,
_MaintenanceOrder.MaintenancePlan AS MaintenancePlan,
_MaintenanceOrder.MaintenanceNotification AS MaintenanceNotification,
_MaintenanceOrder._MainWorkCenter.WorkCenter AS MaintenanceWorkCenter,
_MaintenanceOrder._MainWorkCenter._Text[1: Language = $session.system_language ].WorkCenterText AS MaintenanceWorkCenterText,
_MaintenanceOrder._MainWorkCenter.Plant AS MaintenanceWorkCenterPlant,
_MaintenanceOrder.MaintenanceActivityType AS ActivityType,
_MaintenanceOrder._MaintenanceActivityType._Text[1: Language = $session.system_language ].MaintenanceActivityTypeName AS MaintenanceActivityTypeName,
_MaintenanceOrder._MaintenancePlannerGroup.MaintenancePlannerGroupName AS MaintenancePlannerGroupName,
case when _MaintenanceOrder._Order.ActualEndDate <> '00000000' then _StatusTextFin.StatusName else case when _MaintenanceOrder._Order.ActualStartDate <> '00000000' then _StatusTextProg.StatusName else case when _MaintenanceOrder._Order.ActualReleasedDate <> '00000000' then _StatusTextRel.StatusName else _StatusTextCrea.StatusName end end end as OrderStatusText AS StatusNameendendendasOrderStatusText,
MaintenanceOrder,
MaintenanceOrderOperation,
MaintenanceOrderComponent,
ComponentDescription,
StorageLocation,
MaintOrderRoutingNumber,
MaintOrderOperationCounter,
MaintOrderComponentInternalID,
MaintComponentItemCategory,
MaterialGroup,
IsDeleted,
PurchaseRequisition,
PurchaseRequisitionItem
FROM I_MaintenanceOrderComponent_2
LEFT OUTER JOIN I_ProductPlant AS _ProductPlant ON Material = _ProductPlant.Product AND MRPPlant = _ProductPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_ProductSupplyPlanning AS _ProductSupplyPlanning ON Material = _ProductSupplyPlanning.Product AND MRPPlant = _ProductSupplyPlanning.Plant -- association [0..1]
LEFT OUTER JOIN I_StatusCodeText AS _StatusTextRel ON _StatusTextRel.StatusCode = 'I0002' AND _StatusTextRel.Language = $session.system_language AND _StatusTextRel.StatusProfile = '' -- association [0..1]
LEFT OUTER JOIN I_StatusCodeText AS _StatusTextCrea ON _StatusTextCrea.StatusCode = 'I0001' AND _StatusTextCrea.Language = $session.system_language AND _StatusTextCrea.StatusProfile = '' -- association [0..1]
LEFT OUTER JOIN I_StatusCodeText AS _StatusTextFin ON _StatusTextFin.StatusCode = 'I1712' AND _StatusTextFin.Language = $session.system_language AND _StatusTextFin.StatusProfile = '' -- association [0..1]
LEFT OUTER JOIN I_StatusCodeText AS _StatusTextProg ON _StatusTextProg.StatusCode = 'IDGL2' AND _StatusTextProg.Language = $session.system_language AND _StatusTextProg.StatusProfile = '' -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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