A_Recipe

DDL: A_RECIPE SQL: ARECIPE Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_RecipeForKeyDateTP I_RecipeForKeyDateTP from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Associations (11)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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..*]
;