I_ControlRecipe

DDL: I_CONTROLRECIPE Type: view_entity BASIC

Control Recipe Header

I_ControlRecipe (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_ControlRecipe is a Basic CDS View (Fact) that provides data about "Control Recipe Header" in SAP S/4HANA. It reads from 1 data source (coch) and exposes 26 fields with key field ControlRecipe. It has 8 associations to related views.

SAP Help Documentation

CategoryCDS Views for Process Industries
StatusControl Recipe Status
Purpose
This CDS view helps select control recipes (table COCH). This CDS view provides the data to answer the following business questions: Which control recipes exist for a process order? Which destination is a control recipe assigned to? What’s the descriptive text of a control recipe? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: C_CREC_WRK PP-PI: Control Recipe - Plant, authorization field ACTVT = 03

Structure
Fields Used for Filtering The main filters are as follows: Plant : This field is used to filter by plant. ProcessOrder : This field is used to filter by process order. Product : This field is used to filter by finished material. Further Important Fields Important fields in this view include the following: Field Name Description ControlRecipe Control Recipe Plant Plant ProcessOrder Process Order ControlRecipeDestination Control Recipe Destination ControlRecipeDestinationType Destination Type ControlRecipeStatus Control Recipe Status ControlRecipeText Description Product Product Batch Batch InspectionLot Inspection Lot ScheduledEarliestStartDate Execution Start Date ScheduledEarliestStartTime Execution Start Time

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentPP-VDM
CapabilitiesData Source for Defining CDS Entities, Data Source in SQL Select
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view helps select control recipes (table COCH).</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>Which control recipes exist for a process order?</p></li> <li><p>Which destination is a control recipe assigned to?</p></li> <li><p>What’s the descriptive text of a control recipe?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
coch coch from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] I_ManufacturingOrder _ProcessOrder $projection.ProcessOrder = _ProcessOrder.ManufacturingOrder
[1..1] I_ControlRecipeDestination _ControlRecipeDestination $projection.Plant = _ControlRecipeDestination.Plant and $projection.ControlRecipeDestination = _ControlRecipeDestination.ControlRecipeDestination
[1..1] I_ControlRecipeDestinationType _ControlRecipeDestinationType $projection.ControlRecipeDestinationType = _ControlRecipeDestinationType.ControlRecipeDestinationType
[1..1] I_ControlRecipeStatus _ControlRecipeStatus $projection.ControlRecipeStatus = _ControlRecipeStatus.ControlRecipeStatus
[0..1] I_Product _Product $projection.Product = _Product.Product
[0..1] I_Batch _Batch $projection.Plant = _Batch.Plant and $projection.Product = _Batch.Material and $projection.Batch = _Batch.Batch
[0..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Analytics.dataCategory #FACT view
Analytics.internalName #LOCAL view
Analytics.technicalName IPPCONTROLRECIPE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #BASIC view
EndUserText.label Control Recipe Header view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY ControlRecipe Control Recipe
Plant coch werk Plant
bidasProcessOrder
ControlRecipeDestination Control Recipe Destination
ControlRecipeDestinationType coch cotyp Type of Control Recipe Destination
ControlRecipeDestAddressName coch adres Address of the Control Recipe Destination
ControlRecipeStatus Control Recipe Status
ControlRecipeIsForTesting coch tstkz Indicator: Message or Control Recipe for Test Purposes
ControlRecipeText coch ktxt Object Desc.
Product Product Number
ProductName Product Description
Batch coch charg Chargeable Proc.
InspectionLot coch prueflos Inspection Lot Number
CreationDate coch andat Record Created On
CreationTime coch anuzt Time when the record was created
LastChangeDate coch aedat Last Changed On
ScheduledEarliestStartDate Earliest Scheduled Execution Start Date
ScheduledEarliestStartTime Earliest Scheduled Execution Start Time
_Plant _Plant
_ProcessOrder _ProcessOrder
_ControlRecipeDestination _ControlRecipeDestination
_ControlRecipeDestinationType _ControlRecipeDestinationType
_ControlRecipeStatus _ControlRecipeStatus
_Product _Product
_Batch _Batch
_InspectionLot _InspectionLot

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 I_ControlRecipe.
-- 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 I_ControlRecipe AS
SELECT
  cast(coch.crid as pph_crid preserving type) AS ControlRecipe,
  coch.werk AS Plant,
  cast(coch.phseq as vdm_phseq preserving type) AS ControlRecipeDestination,
  coch.cotyp AS ControlRecipeDestinationType,
  coch.adres AS ControlRecipeDestAddressName,
  cast(coch.crstat as vdm_crstat preserving type) AS ControlRecipeStatus,
  coch.tstkz AS ControlRecipeIsForTesting,
  coch.ktxt AS ControlRecipeText,
  cast(coch.matnr as productnumber preserving type) AS Product,
  cast(coch.matxt as productdescription preserving type) AS ProductName,
  coch.charg AS Batch,
  coch.prueflos AS InspectionLot,
  coch.andat AS CreationDate,
  coch.anuzt AS CreationTime,
  coch.aedat AS LastChangeDate,
  cast(coch.fsavd as pph_fsavd preserving type) AS ScheduledEarliestStartDate,
  cast(coch.fsavz as pph_fsavz preserving type) AS ScheduledEarliestStartTime
FROM coch
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_ManufacturingOrder AS _ProcessOrder ON ProcessOrder = _ProcessOrder.ManufacturingOrder  -- association [1..1]
LEFT OUTER JOIN I_ControlRecipeDestination AS _ControlRecipeDestination ON Plant = _ControlRecipeDestination.Plant AND ControlRecipeDestination = _ControlRecipeDestination.ControlRecipeDestination  -- association [1..1]
LEFT OUTER JOIN I_ControlRecipeDestinationType AS _ControlRecipeDestinationType ON ControlRecipeDestinationType = _ControlRecipeDestinationType.ControlRecipeDestinationType  -- association [1..1]
LEFT OUTER JOIN I_ControlRecipeStatus AS _ControlRecipeStatus ON ControlRecipeStatus = _ControlRecipeStatus.ControlRecipeStatus  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Product = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_Batch AS _Batch ON Plant = _Batch.Plant AND Product = _Batch.Material AND Batch = _Batch.Batch  -- association [0..1]
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [0..1]
;