P_ProductionOrderQuickView

DDL: P_PRODUCTIONORDERQUICKVIEW SQL: PPRODNORDQV Type: view BASIC

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 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_MfgOrderItem ProductionOrderItem from

Associations (5)

CardinalityTargetAliasCondition
[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
[0..1] I_ProductionVersion _ProdVersion $projection.Material = _ProdVersion.Material and $projection.MRPPlant = _ProdVersion.Plant and $projection.ProductionVersion = _ProdVersion.ProductionVersion

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 _ProdVersion 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,
  _ProdVersion.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]
LEFT OUTER JOIN I_ProductionVersion AS _ProdVersion ON Material = _ProdVersion.Material AND MRPPlant = _ProdVersion.Plant AND ProductionVersion = _ProdVersion.ProductionVersion  -- association [0..1]
;