P_ProductionOrderQuickView
P view for Production Order
P_ProductionOrderQuickView is a Basic CDS View that provides data about "P view for Production Order" in SAP S/4HANA. It reads from 1 data source (I_MfgOrderItem) and exposes 61 fields with key fields OrderID, ManufacturingOrderItem. It has 4 associations to related views. Part of development package ODATA_PP_DD_ORD_DET.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MfgOrderItem | ProductionOrderItem | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ReservationItem | _ReservationItem | $projection.Reservation = _ReservationItem.Reservation and $projection.ManufacturingOrderItem = _ReservationItem.ReservationItem |
| [0..1] | P_DDMRPController | _MRPCtrlr | $projection.MRPPlant = _MRPCtrlr.Plant and $projection.MRPController = _MRPCtrlr.MRPController |
| [0..1] | I_RoundingPrfText | _RoundingProfile | $projection.RoundingProfile = _RoundingProfile.MaterialRoundingProfile and $projection.MRPPlant = _RoundingProfile.Plant |
| [0..1] | I_Order | _Order | $projection.OrderID = _Order.OrderID |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRODNORDQV | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | P view for Production Order | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view |
Fields (61)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | ManufacturingOrder | Order | |
| KEY | ManufacturingOrderItem | ManufacturingOrderItem | Manufacturing Order Item | |
| Material | I_MfgOrderItem | Material | Vehicle Model | |
| MRPPlant | MRPPlant | Plant | ||
| ManufacturingOrderCategory | ManufacturingOrderCategory | |||
| ManufacturingOrderType | ManufacturingOrderType | |||
| ManufacturingOrderTypeName | ||||
| MfgOrderReleasedCode | MfgOrderReleasedCode | |||
| MfgOrderPlannedStartDate | MfgOrderPlannedStartDate | |||
| MfgOrderScheduledReleaseDate | MfgOrderScheduledReleaseDate | |||
| MfgOrderScheduledStartDate | MfgOrderScheduledStartDate | |||
| MfgOrderScheduledEndDate | MfgOrderScheduledEndDate | |||
| MfgOrderPlannedEndDate | MfgOrderPlannedEndDate | |||
| MaterialGoodsReceiptDuration | MaterialGoodsReceiptDuration | GR proc. time | ||
| MfgOrderPlannedTotalQty | MfgOrderPlannedTotalQty | |||
| ExpectedDeviationQuantity | _MfgOrder | ExpectedDeviationQuantity | ||
| MfgOrderPlannedScrapQty | MfgOrderPlannedScrapQty | |||
| MfgOrderItemGoodsReceiptQty | _MfgOrder | ActualDeliveredQuantity | Delivered Quantity | |
| MRPElementOpenQuantity | ||||
| BaseUnit | I_MfgOrderItem | BaseUnit | Unit of Measure | |
| ProductionPlant | ProductionPlant | Prod plnt | ||
| ProductionPlantName | ||||
| ProductionVersion | ProductionVersion | Version ID | ||
| ProductionVersionText | _ProductionVersion | ProductionVersionText | ||
| ProductionLine | _ProductionVersion | ProductionLine | Production Line | |
| ManufacturingOrderImportance | _MfgOrder | ManufacturingOrderImportance | ||
| ProductionSupervisor | ProductionSupervisor | Prodn Supervisor | ||
| ProductionSupervisorName | _ProductionSupervisor | ProductionSupervisorName | ||
| MRPController | MRPController | MRP Controller | ||
| MRPControllerName | _MRPCtrlr | MRPControllerName | Controller name | |
| InternalContactPersonName | _MRPCtrlr | InternalContactName | ||
| InternalContactPhoneNumber | _MRPCtrlr | PhoneNumber | Telephone no. | |
| InternalContactEmailAddress | _MRPCtrlr | EmailAddress | E-Mail Address | |
| Reservation | Reservation | Reservation | ||
| RequirementDate | _ReservationItem | MatlCompRequirementDate | Reqmts date | |
| OrderedQuantity | _ReservationItem | ResvnItmRequiredQtyInBaseUnit | Requirement qty | |
| WithdrawnQuantity | _ReservationItem | ResvnItmWithdrawnQtyInBaseUnit | Withdrawal Qty | |
| OpenQuantity | ||||
| MaterialPlannedProductionDurn | _ProductSupplyPlanning | InHouseProductionTime | InhseProdTime | |
| 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 | |
| MaterialRoundingProfileName | ||||
| SalesOrder | SalesOrder | SD Document | ||
| SalesOrderItem | SalesOrderItem | Sales Order Item | ||
| WBSElementInternalID | WBSElementInternalID | WBS Internal ID | ||
| WBSElement | _WBSElement | WBSElement | WBS Internal ID | |
| _MfgOrder | _MfgOrder | |||
| _MfgOrderCategory | _MfgOrderCategory | |||
| _MfgOrderType | _MfgOrderType | |||
| _ProductionPlant | _ProductionPlant | |||
| _ProductionSupervisor | _ProductionSupervisor | |||
| _MRPController | _MRPController | |||
| _MRPPlant | _MRPPlant | |||
| _Material | I_MfgOrderItem | _Material | ||
| _ProductionVersion | _ProductionVersion | |||
| _WBSElement | _WBSElement | |||
| _Order | _Order |
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_ProductionOrderQuickView.
-- 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: PPRODNORDQV
CREATE VIEW P_ProductionOrderQuickView AS
SELECT
ManufacturingOrder AS OrderID,
ManufacturingOrderItem,
ProductionOrderItem.Material AS Material,
MRPPlant,
ManufacturingOrderCategory,
ManufacturingOrderType,
_MfgOrderType._Text[1: Language = $session.system_language].ManufacturingOrderTypeName AS ManufacturingOrderTypeName,
MfgOrderReleasedCode,
MfgOrderPlannedStartDate,
MfgOrderScheduledReleaseDate,
MfgOrderScheduledStartDate,
MfgOrderScheduledEndDate,
MfgOrderPlannedEndDate,
MaterialGoodsReceiptDuration,
MfgOrderPlannedTotalQty,
_MfgOrder.ExpectedDeviationQuantity AS ExpectedDeviationQuantity,
MfgOrderPlannedScrapQty,
_MfgOrder.ActualDeliveredQuantity AS MfgOrderItemGoodsReceiptQty,
(MfgOrderPlannedTotalQty - _MfgOrder.ExpectedDeviationQuantity - MfgOrderPlannedScrapQty - _MfgOrder.ActualDeliveredQuantity) AS MRPElementOpenQuantity,
ProductionOrderItem.BaseUnit AS BaseUnit,
ProductionPlant,
_MfgOrder._Plant.PlantName AS ProductionPlantName,
ProductionVersion,
_ProductionVersion.ProductionVersionText AS ProductionVersionText,
_ProductionVersion.ProductionLine AS ProductionLine,
_MfgOrder.ManufacturingOrderImportance AS ManufacturingOrderImportance,
ProductionSupervisor,
_ProductionSupervisor.ProductionSupervisorName AS ProductionSupervisorName,
MRPController,
_MRPCtrlr.MRPControllerName AS MRPControllerName,
_MRPCtrlr.InternalContactName AS InternalContactPersonName,
_MRPCtrlr.PhoneNumber AS InternalContactPhoneNumber,
_MRPCtrlr.EmailAddress AS InternalContactEmailAddress,
Reservation,
_ReservationItem.MatlCompRequirementDate AS RequirementDate,
_ReservationItem.ResvnItmRequiredQtyInBaseUnit AS OrderedQuantity,
_ReservationItem.ResvnItmWithdrawnQtyInBaseUnit AS WithdrawnQuantity,
(_ReservationItem.ResvnItmRequiredQtyInBaseUnit - _ReservationItem.ResvnItmWithdrawnQtyInBaseUnit) AS OpenQuantity,
_ProductSupplyPlanning.InHouseProductionTime AS MaterialPlannedProductionDurn,
_ProductSupplyPlanning.TotalReplenishmentLeadTime AS TotalReplenishmentLeadDuration,
_ProductSupplyPlanning.FixedLotSizeQuantity AS FixedLotSizeQuantity,
_ProductSupplyPlanning.MinimumLotSizeQuantity AS MinimumLotSizeQuantity,
_ProductSupplyPlanning.MaximumLotSizeQuantity AS MaximumLotSizeQuantity,
_ProductSupplyPlanning.LotSizeRoundingQuantity AS LotSizeRoundingQuantity,
_ProductSupplyPlanning.RoundingProfile AS RoundingProfile,
_RoundingProfile[ 1: Language = $session.system_language ].MaterialRoundingProfileName AS MaterialRoundingProfileName,
SalesOrder,
SalesOrderItem,
WBSElementInternalID,
_WBSElement.WBSElement AS WBSElement,
ProductionOrderItem._Material AS _Material
FROM I_MfgOrderItem AS ProductionOrderItem
LEFT OUTER JOIN I_ReservationItem AS _ReservationItem ON Reservation = _ReservationItem.Reservation AND ManufacturingOrderItem = _ReservationItem.ReservationItem -- association [0..1]
LEFT OUTER JOIN P_DDMRPController AS _MRPCtrlr ON MRPPlant = _MRPCtrlr.Plant AND MRPController = _MRPCtrlr.MRPController -- association [0..1]
LEFT OUTER JOIN I_RoundingPrfText AS _RoundingProfile ON RoundingProfile = _RoundingProfile.MaterialRoundingProfile AND MRPPlant = _RoundingProfile.Plant -- association [0..1]
LEFT OUTER JOIN I_Order AS _Order ON OrderID = _Order.OrderID -- 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