A_Recipe
Recipe Header Data
A_Recipe is a Consumption CDS View that provides data about "Recipe Header Data" in SAP S/4HANA. It reads from 1 data source (I_RecipeForKeyDateTP) and exposes 38 fields with key field RecipeUUID. It has 11 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_RecipeForKeyDateTP | I_RecipeForKeyDateTP | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Associations (11)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | A_RecipeClass | _Classification | $projection.RecipeUUID = _Classification.RecipeUUID |
| [0..*] | A_RecipeCharc | _Characteristics | $projection.RecipeUUID = _Characteristics.RecipeUUID |
| [0..1] | A_LogAccMObjectTypeActive | _LogAccMObjectTypeActive | _LogAccMObjectTypeActive.LogAccMObjectType = 'PLM_RCP' |
| [0..*] | A_LogAccMObjSecureIDAssgmt | _LogAccMObjSecureIDAssgmt | $projection.RecipeUniqueID = _LogAccMObjSecureIDAssgmt.LogAccMObjectID and _LogAccMObjSecureIDAssgmt.LogAccMObjectType = 'PLM_RCP' |
| [0..*] | A_LogAccMObjectUserAuthzn | _LogAccMObjectUserAuthzn | $projection.RecipeUniqueID = _LogAccMObjectUserAuthzn.LogAccMObjectID and _LogAccMObjectUserAuthzn.LogAccMObjectType = 'PLM_RCP' and _LogAccMObjectUserAuthzn.LogAccMUserAuthznObject = 'PLM_RCP' and ( _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '03' or _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '*' ) and _LogAccMObjectUserAuthzn.LogAccMUserAuthznField = 'ACTVT' and ( _LogAccMObjectUserAuthzn.LogAccMUserEntityID = $session.user or _LogAccMObjectUserAuthzn.UserID = $session.user ) |
| [1..1] | E_Recipe | _Extension | $projection.RecipeUUID = _Extension.RecipeUUID |
| [0..*] | A_RecipeText | _RecipeText | |
| [1..*] | A_RecipeFormulaItem | _FormulaItem | |
| [0..*] | A_RecipeProcessElement | _RecipeProcessElement | |
| [0..*] | A_RecipeProcessEquipRqmt | _RecipeProcessEquipRqmt | |
| [0..*] | A_RecipeProcessParamValue | _RecipeProcessParamValue | |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ARECIPE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Consumption.filter.businessDate.at | true | view | |
| EndUserText.label | Recipe Header Data | view |
Fields (38)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RecipeUUID | RecipeUUID | Recipe GUID | |
| RecipeUniqueID | RecipeUniqueID | |||
| Recipe | Recipe | |||
| RecipePrimaryOutputInternalID | RecipePrimaryOutputInternalID | |||
| RecipePrimaryOutput | RecipePrimaryOutput | |||
| RecipeAlternativeNumber | RecipeAlternativeNumber | |||
| RecipeVersionNumber | RecipeVersionNumber | |||
| RecipeType | RecipeType | |||
| RecipePurpose | RecipePurpose | |||
| RecipeStatus | RecipeStatus | |||
| RecipeStatusSchema | RecipeStatusSchema | |||
| RecipeAuthorizationGroup | RecipeAuthorizationGroup | |||
| RcpFmlaUUID | RcpFmlaUUID | |||
| RecipeProcessUUID | RecipeProcessUUID | |||
| RecipeValidityStartDate | RecipeValidityStartDate | |||
| RecipeValidityEndDate | RecipeValidityEndDate | |||
| RecipeValidityMinQuantity | RecipeValidityMinQuantity | |||
| RecipeValidityMaxQuantity | RecipeValidityMaxQuantity | |||
| RecipeValidityUnit | RecipeValidityUnit | |||
| Plant | _Plant | Plant | Valuation Area | |
| RecipeCreatedByUser | RecipeCreatedByUser | |||
| RecipeLastChangedByUser | RecipeLastChangedByUser | |||
| RecipeCreationDateTime | RecipeCreationDateTime | |||
| RecipeLastChangeDateTime | RecipeLastChangeDateTime | |||
| RecipeIsDeleted | RecipeIsDeleted | |||
| RecipeIsArchived | RecipeIsArchived | |||
| RecipePrimOutpAuthznGrp | RecipePrimOutpAuthznGrp | |||
| RecipePrimOutpSpecType | RecipePrimOutpSpecType | |||
| _RecipeText | _RecipeText | |||
| _FormulaItem | _FormulaItem | |||
| _Classification | _Classification | |||
| _Characteristics | _Characteristics | |||
| _LogAccMObjectTypeActive | _LogAccMObjectTypeActive | |||
| _LogAccMObjectUserAuthzn | _LogAccMObjectUserAuthzn | |||
| _LogAccMObjSecureIDAssgmt | _LogAccMObjSecureIDAssgmt | |||
| _RecipeProcessElement | _RecipeProcessElement | |||
| _RecipeProcessEquipRqmt | _RecipeProcessEquipRqmt | |||
| _RecipeProcessParamValue | _RecipeProcessParamValue |
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 A_Recipe.
-- 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.
-- SQL view name: ARECIPE
-- Parameters: P_KeyDate : sydate
CREATE VIEW A_Recipe AS
SELECT
RecipeUUID,
RecipeUniqueID,
Recipe,
RecipePrimaryOutputInternalID,
RecipePrimaryOutput,
RecipeAlternativeNumber,
RecipeVersionNumber,
RecipeType,
RecipePurpose,
RecipeStatus,
RecipeStatusSchema,
RecipeAuthorizationGroup,
RcpFmlaUUID,
RecipeProcessUUID,
RecipeValidityStartDate,
RecipeValidityEndDate,
RecipeValidityMinQuantity,
RecipeValidityMaxQuantity,
RecipeValidityUnit,
_Plant.Plant AS Plant,
RecipeCreatedByUser,
RecipeLastChangedByUser,
RecipeCreationDateTime,
RecipeLastChangeDateTime,
RecipeIsDeleted,
RecipeIsArchived,
RecipePrimOutpAuthznGrp,
RecipePrimOutpSpecType
FROM I_RecipeForKeyDateTP
LEFT OUTER JOIN A_RecipeClass AS _Classification ON RecipeUUID = _Classification.RecipeUUID -- association [0..*]
LEFT OUTER JOIN A_RecipeCharc AS _Characteristics ON RecipeUUID = _Characteristics.RecipeUUID -- association [0..*]
LEFT OUTER JOIN A_LogAccMObjectTypeActive AS _LogAccMObjectTypeActive ON _LogAccMObjectTypeActive.LogAccMObjectType = 'PLM_RCP' -- association [0..1]
LEFT OUTER JOIN A_LogAccMObjSecureIDAssgmt AS _LogAccMObjSecureIDAssgmt ON RecipeUniqueID = _LogAccMObjSecureIDAssgmt.LogAccMObjectID AND _LogAccMObjSecureIDAssgmt.LogAccMObjectType = 'PLM_RCP' -- association [0..*]
LEFT OUTER JOIN A_LogAccMObjectUserAuthzn AS _LogAccMObjectUserAuthzn ON RecipeUniqueID = _LogAccMObjectUserAuthzn.LogAccMObjectID AND _LogAccMObjectUserAuthzn.LogAccMObjectType = 'PLM_RCP' AND _LogAccMObjectUserAuthzn.LogAccMUserAuthznObject = 'PLM_RCP' AND ( _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '03' OR _LogAccMObjectUserAuthzn.LogAccMUserAuthznFrom = '*' ) AND _LogAccMObjectUserAuthzn.LogAccMUserAuthznField = 'ACTVT' AND ( _LogAccMObjectUserAuthzn.LogAccMUserEntityID = $session.user OR _LogAccMObjectUserAuthzn.UserID = $session.user ) -- association [0..*]
LEFT OUTER JOIN E_Recipe AS _Extension ON RecipeUUID = _Extension.RecipeUUID -- association [1..1]
LEFT OUTER JOIN A_RecipeText AS _RecipeText ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN A_RecipeFormulaItem AS _FormulaItem ON /* condition not available in parsed metadata */ -- association [1..*]
LEFT OUTER JOIN A_RecipeProcessElement AS _RecipeProcessElement ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN A_RecipeProcessEquipRqmt AS _RecipeProcessEquipRqmt ON /* condition not available in parsed metadata */ -- association [0..*]
LEFT OUTER JOIN A_RecipeProcessParamValue AS _RecipeProcessParamValue ON /* condition not available in parsed metadata */ -- association [0..*]
;
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