C_ProdnOrderForSafetyInsights

DDL: C_PRODNORDERFORSAFETYINSIGHTS Type: view CONSUMPTION

Production Orders for Safety Insights

C_ProdnOrderForSafetyInsights is a Consumption CDS View that provides data about "Production Orders for Safety Insights" in SAP S/4HANA. It reads from 3 data sources (I_LocationAccountAssignment, I_MfgOrderOperationBasic, I_TechnicalObject) and exposes 13 fields with key fields ProductionOrder, Equipment. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
I_LocationAccountAssignment LocationAssignment inner
I_MfgOrderOperationBasic MfgOrderOperationBasic inner
I_TechnicalObject TechnicalObject inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] C_ProdnOrdOpForSafetyInsights _ProductionOrderOperations $projection.ProductionOrder = _ProductionOrderOperations.ManufacturingOrder and $projection.WorkCenterInternalID = _ProductionOrderOperations.WorkCenterInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CPOFORSI view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Production Orders for Safety Insights view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey ProductionOrder view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY ProductionOrder ManufacturingOrder ManufacturingOrder Order
KEY Equipment I_TechnicalObject Equipment Equipment check
WorkCenterInternalID I_MfgOrderOperationBasic WorkCenterInternalID Work Center
Material ManufacturingOrder Material Vehicle Model
MaterialName
MfgOrderConfirmedYieldQty MfgOrderConfirmedYieldQty
ProductionUnit ProductionUnit
MfgOrderPlannedStartDate MfgOrderPlannedStartDate
MfgOrderPlannedEndDate MfgOrderPlannedEndDate
_ProductionOrderOperations _ProductionOrderOperations
ManufacturingOrderCategory ManufacturingOrder ManufacturingOrderCategory
ManufacturingOrderType ManufacturingOrder ManufacturingOrderType
ProductionPlant ManufacturingOrder ProductionPlant Prod plnt

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_ProdnOrderForSafetyInsights.
-- 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_ProdnOrderForSafetyInsights AS
SELECT
  ManufacturingOrder.ManufacturingOrder AS ProductionOrder,
  TechnicalObject.Equipment AS Equipment,
  MfgOrderOperationBasic.WorkCenterInternalID AS WorkCenterInternalID,
  ManufacturingOrder.Material AS Material,
  _Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  MfgOrderConfirmedYieldQty,
  ProductionUnit,
  MfgOrderPlannedStartDate,
  MfgOrderPlannedEndDate,
  ManufacturingOrder.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  ManufacturingOrder.ManufacturingOrderType AS ManufacturingOrderType,
  ManufacturingOrder.ProductionPlant AS ProductionPlant
INNER JOIN I_MfgOrderOperationBasic AS MfgOrderOperationBasic ON /* join condition not captured in parsed metadata */
INNER JOIN I_LocationAccountAssignment AS LocationAssignment ON /* join condition not captured in parsed metadata */
INNER JOIN I_TechnicalObject AS TechnicalObject ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_ProdnOrdOpForSafetyInsights AS _ProductionOrderOperations ON ProductionOrder = _ProductionOrderOperations.ManufacturingOrder AND WorkCenterInternalID = _ProductionOrderOperations.WorkCenterInternalID  -- association [0..*]
;