C_ProductionOrderEnhancedVH

DDL: C_PRODUCTIONORDERENHANCEDVH Type: view_entity CONSUMPTION Package: ODATA_PP_MRP

Production Order

C_ProductionOrderEnhancedVH is a Consumption CDS View that provides data about "Production Order" in SAP S/4HANA. It reads from 2 data sources (I_MfgOrderWithStatus, I_ManufacturingOrder) and exposes 19 fields with key field ProductionOrder. It has 1 association to related views. It is exposed through 1 OData service (ASQL_F7681). Part of development package ODATA_PP_MRP.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrderWithStatus OrdData inner
I_ManufacturingOrder OrdHeader from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_OrderTypeText _ProductionOrderTypeText $projection.ProductionOrderType = _ProductionOrderTypeText.OrderType

Annotations (13)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey ProductionOrder view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
Search.searchable true view
Consumption.ranked true view
Consumption.valueHelpDefault.fetchValues #ON_EXPLICIT_REQUEST view
VDM.viewType #CONSUMPTION view
EndUserText.label Production Order view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F7681 ASQL_F7681 C2 NOT_RELEASED

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ProductionOrder Production Order
ProductionOrderText I_ManufacturingOrder ManufacturingOrderText
ProductionOrderType
ProductionOrderTypeName
ProductionPlant
PlantName
Material I_ManufacturingOrder Material Vehicle Model
MaterialName
MRPController I_ManufacturingOrder MRPController MRP Controller
MRPControllerName
ProductionSupervisor I_ManufacturingOrder ProductionSupervisor Prodn Supervisor
ProductionSupervisorName
SalesOrder
_MfgOrderType I_ManufacturingOrder _MfgOrderType
_ProductionOrderTypeText _ProductionOrderTypeText
_ProductionPlant I_ManufacturingOrder _ProductionPlant
_MaterialText I_ManufacturingOrder _MaterialText
_MRPController I_ManufacturingOrder _MRPController
_ProductionSupervisor I_ManufacturingOrder _ProductionSupervisor

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_ProductionOrderEnhancedVH.
-- 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.

CREATE VIEW C_ProductionOrderEnhancedVH AS
SELECT
  cast(OrdHeader.ManufacturingOrder as manufacturingorder preserving type) AS ProductionOrder,
  OrdHeader.ManufacturingOrderText AS ProductionOrderText,
  cast(OrdHeader.ManufacturingOrderType as vdm_prodnordertype preserving type) AS ProductionOrderType,
  _ProductionOrderTypeText[ 1: Language = $session.system_language ].OrderTypeName AS ProductionOrderTypeName,
  cast(OrdHeader.ProductionPlant as pwwrk preserving type) AS ProductionPlant,
  OrdHeader._ProductionPlant[ 1: Language = $session.system_language ].PlantName AS PlantName,
  OrdHeader.Material AS Material,
  OrdHeader._MaterialText[ 1: Language = $session.system_language ].ProductName AS MaterialName,
  OrdHeader.MRPController AS MRPController,
  OrdHeader._MRPController.MRPControllerName AS MRPControllerName,
  OrdHeader.ProductionSupervisor AS ProductionSupervisor,
  OrdHeader._ProductionSupervisor.ProductionSupervisorName AS ProductionSupervisorName,
  cast(OrdHeader.SalesOrder as co_kdauf preserving type) AS SalesOrder,
  OrdHeader._MfgOrderType AS _MfgOrderType,
  OrdHeader._ProductionPlant AS _ProductionPlant,
  OrdHeader._MaterialText AS _MaterialText,
  OrdHeader._MRPController AS _MRPController,
  OrdHeader._ProductionSupervisor AS _ProductionSupervisor
FROM I_ManufacturingOrder AS OrdHeader
INNER JOIN I_MfgOrderWithStatus AS OrdData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OrderTypeText AS _ProductionOrderTypeText ON ProductionOrderType = _ProductionOrderTypeText.OrderType  -- association [0..*]
;