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
KEY ManufacturingOrderItem ManufacturingOrderItem
Material I_MfgOrderItem Material
MRPPlant MRPPlant
ManufacturingOrderCategory ManufacturingOrderCategory
ManufacturingOrderType ManufacturingOrderType
ManufacturingOrderTypeName
MfgOrderReleasedCode MfgOrderReleasedCode
MfgOrderPlannedStartDate MfgOrderPlannedStartDate
MfgOrderScheduledReleaseDate MfgOrderScheduledReleaseDate
MfgOrderScheduledStartDate MfgOrderScheduledStartDate
MfgOrderScheduledEndDate MfgOrderScheduledEndDate
MfgOrderPlannedEndDate MfgOrderPlannedEndDate
MaterialGoodsReceiptDuration MaterialGoodsReceiptDuration
MfgOrderPlannedTotalQty MfgOrderPlannedTotalQty
ExpectedDeviationQuantity _MfgOrder ExpectedDeviationQuantity
MfgOrderPlannedScrapQty MfgOrderPlannedScrapQty
MfgOrderItemGoodsReceiptQty _MfgOrder ActualDeliveredQuantity
MRPElementOpenQuantity
BaseUnit I_MfgOrderItem BaseUnit
ProductionPlant ProductionPlant
ProductionPlantName
ProductionVersion ProductionVersion
ProductionVersionText _ProductionVersion ProductionVersionText
ProductionLine _ProdVersion ProductionLine
ManufacturingOrderImportance _MfgOrder ManufacturingOrderImportance
ProductionSupervisor ProductionSupervisor
ProductionSupervisorName _ProductionSupervisor ProductionSupervisorName
MRPController MRPController
MRPControllerName _MRPCtrlr MRPControllerName
InternalContactPersonName _MRPCtrlr InternalContactName
InternalContactPhoneNumber _MRPCtrlr PhoneNumber
InternalContactEmailAddress _MRPCtrlr EmailAddress
Reservation Reservation
RequirementDate _ReservationItem MatlCompRequirementDate
OrderedQuantity _ReservationItem ResvnItmRequiredQtyInBaseUnit
WithdrawnQuantity _ReservationItem ResvnItmWithdrawnQtyInBaseUnit
OpenQuantity
MaterialPlannedProductionDurn _ProductSupplyPlanning InHouseProductionTime
TotalReplenishmentLeadDuration _ProductSupplyPlanning TotalReplenishmentLeadTime
FixedLotSizeQuantity _ProductSupplyPlanning FixedLotSizeQuantity
MinimumLotSizeQuantity _ProductSupplyPlanning MinimumLotSizeQuantity
MaximumLotSizeQuantity _ProductSupplyPlanning MaximumLotSizeQuantity
LotSizeRoundingQuantity _ProductSupplyPlanning LotSizeRoundingQuantity
RoundingProfile _ProductSupplyPlanning RoundingProfile
MaterialRoundingProfileName
SalesOrder SalesOrder
SalesOrderItem SalesOrderItem
WBSElementInternalID WBSElementInternalID
WBSElement _WBSElement WBSElement
_MfgOrder _MfgOrder
_MfgOrderCategory _MfgOrderCategory
_MfgOrderType _MfgOrderType
_ProductionPlant _ProductionPlant
_ProductionSupervisor _ProductionSupervisor
_MRPController _MRPController
_MRPPlant _MRPPlant
_Material I_MfgOrderItem _Material
_ProductionVersion _ProductionVersion
_WBSElement _WBSElement
_Order _Order
@AbapCatalog.sqlViewName: 'PPRODNORDQV'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'P view for Production Order'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #X, sizeCategory: #XL, dataClass: #MASTER}
@VDM.private: true
@VDM.viewType: #BASIC
define view P_ProductionOrderQuickView
  as select from    I_MfgOrderItem          as ProductionOrderItem
    left outer to one join I_ProductSupplyPlanning as _ProductSupplyPlanning on  ProductionOrderItem.Material = _ProductSupplyPlanning.Product
                                                                      and MRPPlant                     = _ProductSupplyPlanning.Plant
  association [0..1] to I_ReservationItem as _ReservationItem on  $projection.Reservation            = _ReservationItem.Reservation
                                                              and $projection.ManufacturingOrderItem = _ReservationItem.ReservationItem
  association [0..1] to P_DDMRPController as _MRPCtrlr        on  $projection.MRPPlant      = _MRPCtrlr.Plant
                                                              and $projection.MRPController = _MRPCtrlr.MRPController
  association [0..1] to I_RoundingPrfText as _RoundingProfile on  $projection.RoundingProfile = _RoundingProfile.MaterialRoundingProfile
                                                              and $projection.MRPPlant        = _RoundingProfile.Plant
  association [0..1] to I_Order           as _Order           on  $projection.OrderID = _Order.OrderID
  
  association [0..1] to I_ProductionVersion as _ProdVersion
                                                                         on $projection.Material = _ProdVersion.Material
                                                                         and $projection.MRPPlant  = _ProdVersion.Plant
                                                                           and $projection.ProductionVersion = _ProdVersion.ProductionVersion
{
  key ManufacturingOrder                                                                                                                              as OrderID,
  key ManufacturingOrderItem,
      ProductionOrderItem.Material,
      MRPPlant,
      ManufacturingOrderCategory,

      //      // Distinguishing between different quick view categories

      //      case $parameters.P_MRPElementCategory

      //        when 'FE' then '031'

      //        when 'BR' then '033'

      //        when 'AR' then case ManufacturingOrderCategory

      //          when '10' then '032'

      //          when '40' then '034'

      //          else '000'

      //        end

      //        else '000'

      //      end                                                                                                                                             as QuickViewCategory,


      ManufacturingOrderType,
      _MfgOrderType._Text[1: Language = $session.system_language].ManufacturingOrderTypeName,
      MfgOrderReleasedCode,

      MfgOrderPlannedStartDate,
      MfgOrderScheduledReleaseDate,
      MfgOrderScheduledStartDate,
      MfgOrderScheduledEndDate,
      MfgOrderPlannedEndDate,
      MaterialGoodsReceiptDuration,

      MfgOrderPlannedTotalQty,
      _MfgOrder.ExpectedDeviationQuantity,
      MfgOrderPlannedScrapQty,
      _MfgOrder.ActualDeliveredQuantity                                                                                                               as MfgOrderItemGoodsReceiptQty,
      (MfgOrderPlannedTotalQty - _MfgOrder.ExpectedDeviationQuantity - MfgOrderPlannedScrapQty - _MfgOrder.ActualDeliveredQuantity)                   as MRPElementOpenQuantity,
      ProductionOrderItem.BaseUnit,

      ProductionPlant,
      _MfgOrder._Plant.PlantName                                                                                                                      as ProductionPlantName,
      ProductionVersion,
      _ProductionVersion.ProductionVersionText,
      _ProdVersion.ProductionLine                        as ProductionLine,
     // _ProductionVersion._ProductionLine._WorkCenterTextBySemanticKey[ 1: Language = $session.system_language ].WorkCenterText                        as ProductionLineText,

      _MfgOrder.ManufacturingOrderImportance,

      // Internal Contact Data

      ProductionSupervisor,
      _ProductionSupervisor.ProductionSupervisorName,
      MRPController,
      _MRPCtrlr.MRPControllerName                                                                                                                     as MRPControllerName,
      _MRPCtrlr.InternalContactName                                                                                                                   as InternalContactPersonName,
      _MRPCtrlr.PhoneNumber                                                                                                                           as InternalContactPhoneNumber,
      _MRPCtrlr.EmailAddress                                                                                                                          as InternalContactEmailAddress,

      // Requirement Data

      Reservation,
      _ReservationItem.MatlCompRequirementDate                                                                                                        as RequirementDate,
      _ReservationItem.ResvnItmRequiredQtyInBaseUnit                                                                                                  as OrderedQuantity,
      _ReservationItem.ResvnItmWithdrawnQtyInBaseUnit                                                                                                 as WithdrawnQuantity,
      (_ReservationItem.ResvnItmRequiredQtyInBaseUnit - _ReservationItem.ResvnItmWithdrawnQtyInBaseUnit)                                              as OpenQuantity,

      // Procurement Data

      _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,

      // Related Objects

      SalesOrder,
      SalesOrderItem,
      WBSElementInternalID,
      _WBSElement.WBSElement                                                                                               as WBSElement,

      // Associations

      _MfgOrder,
      _MfgOrderCategory,
      _MfgOrderType,
      _ProductionPlant,
      _ProductionSupervisor,
      _MRPController,
      _MRPPlant,
      ProductionOrderItem._Material,
      _ProductionVersion,
      _WBSElement,
      _Order
     
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MFGORDER",
"I_MFGORDERITEM",
"I_MFGORDERTYPE",
"I_MFGORDERTYPETEXT",
"I_PLANT",
"I_PRODUCTIONSUPERVISOR",
"I_PRODUCTIONVERSION",
"I_PRODUCTSUPPLYPLANNING",
"I_RESERVATIONITEM",
"I_ROUNDINGPRFTEXT",
"I_WBSELEMENTBYINTERNALKEY",
"P_DDMRPCONTROLLER"
],
"ASSOCIATED":
[
"I_MATERIAL",
"I_MFGORDER",
"I_MFGORDERCATEGORY",
"I_MFGORDERTYPE",
"I_MRPCONTROLLER",
"I_ORDER",
"I_PLANT",
"I_PRODUCTIONSUPERVISOR",
"I_PRODUCTIONVERSION",
"I_RESERVATIONITEM",
"I_ROUNDINGPRFTEXT",
"I_WBSELEMENTBYINTERNALKEY",
"P_DDMRPCONTROLLER"
],
"BASE":
[
"I_MFGORDERITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/