I_ControlRecipe
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
| Category | CDS Views for Process Industries |
|---|---|
| Status | Control 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
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
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Data Source for Defining CDS Entities, Data Source in SQL Select |
| Package | Manufacturing 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| coch | coch | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA