P_RecipeHeaderAnalysis

DDL: P_RECIPEHEADERANALYSIS SQL: PRCPHDRANLYS Type: view CONSUMPTION

P_RecipeHeaderAnalysis is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_RcpWhereUsedAnlysForKeyDate, R_RecipeWithPrimaryOutput, R_RecipeWithPrimaryOutput) and exposes 96 fields with key fields RecipeFinderCacheUUID, RecipeUUID, RecipeUUID.

Data Sources (3)

SourceAliasJoin Type
I_RcpWhereUsedAnlysForKeyDate I_RcpWhereUsedAnlysForKeyDate from
R_RecipeWithPrimaryOutput R_RecipeWithPrimaryOutput inner
R_RecipeWithPrimaryOutput R_RecipeWithPrimaryOutput union

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PRCPHDRANLYS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (96)

KeyFieldSource TableSource FieldDescription
KEY RecipeFinderCacheUUID finder_cache RecipeFinderCacheUUID
KEY RecipeUUID recipe RecipeUUID Recipe GUID
RecipeUniqueID recipe RecipeUniqueID
Recipe recipe Recipe
RecipePrimaryOutputInternalID recipe RecipePrimaryOutputInternalID
RecipeAlternativeNumber recipe RecipeAlternativeNumber
RecipeVersionNumber recipe RecipeVersionNumber
RecipeCreatedByUser recipe RecipeCreatedByUser
RecipeCreationDateTime recipe RecipeCreationDateTime
RecipeLastChangedByUser recipe RecipeLastChangedByUser
RecipeLastChangeDateTime recipe RecipeLastChangeDateTime
RecipeType recipe RecipeType
RecipePurpose recipe RecipePurpose
RecipeStatus recipe RecipeStatus
RecipeStatusSchema recipe RecipeStatusSchema
RcpFmlaUUID recipe RcpFmlaUUID
RecipeProcessUUID recipe RecipeProcessUUID
RecipePropertySpecInternalID recipe RecipePropertySpecInternalID
RecipeIsDeleted recipe RecipeIsDeleted
RecipeIsArchived recipe RecipeIsArchived
RecipeValidityStartDate recipe RecipeValidityStartDate
RecipeValidityEndDate recipe RecipeValidityEndDate
RecipeValidityMinQuantity recipe RecipeValidityMinQuantity
RecipeValidityMaxQuantity recipe RecipeValidityMaxQuantity
RecipeValidityUnit recipe RecipeValidityUnit
RecipeAuthorizationGroup recipe RecipeAuthorizationGroup
RcpFmlaItemUUID recipe RcpFmlaItemUUID
RcpFmlaItemType recipe RcpFmlaItemType
RecipeFmlaItemAltvIsUsed recipe RecipeFmlaItemAltvIsUsed
RecipePrimOutpSpecType recipe RecipePrimOutpSpecType
Material recipe Material Vehicle Model
RecipePrimaryOutputMaterial recipe RecipePrimaryOutputMaterial
RecipePrimOutputMaterialName recipe RecipePrimOutputMaterialName
RecipePrimOutpSubstNatr recipe RecipePrimOutpSubstNatr
RecipePrimOutpSubstNatrDesc recipe RecipePrimOutpSubstNatrDesc
_AuthorizationGroup recipe _AuthorizationGroup
_CreatedByUser recipe _CreatedByUser
_FormulaForKeyDate recipe _FormulaForKeyDate
_LastChangedByUser recipe _LastChangedByUser
_LogAccMObjectTypeActive recipe _LogAccMObjectTypeActive
_LogAccMObjectUserAuthzn recipe _LogAccMObjectUserAuthzn
_LogAccMObjSecureIDAssgmt recipe _LogAccMObjSecureIDAssgmt
_Plant recipe _Plant
_PrimaryOutputSpecification recipe _PrimaryOutputSpecification
_RecipeDescription recipe _RecipeDescription
_RecipePOMaterialText recipe _RecipePOMaterialText
_RecipePurpose recipe _RecipePurpose
_RecipeStatus recipe _RecipeStatus
KEY RecipeUUID recipe RecipeUUID Recipe GUID
RecipeUniqueID recipe RecipeUniqueID
Recipe recipe Recipe
RecipePrimaryOutputInternalID recipe RecipePrimaryOutputInternalID
RecipeAlternativeNumber recipe RecipeAlternativeNumber
RecipeVersionNumber recipe RecipeVersionNumber
RecipeCreatedByUser recipe RecipeCreatedByUser
RecipeCreationDateTime recipe RecipeCreationDateTime
RecipeLastChangedByUser recipe RecipeLastChangedByUser
RecipeLastChangeDateTime recipe RecipeLastChangeDateTime
RecipeType recipe RecipeType
RecipePurpose recipe RecipePurpose
RecipeStatus recipe RecipeStatus
RecipeStatusSchema recipe RecipeStatusSchema
RcpFmlaUUID recipe RcpFmlaUUID
RecipeProcessUUID recipe RecipeProcessUUID
RecipePropertySpecInternalID recipe RecipePropertySpecInternalID
RecipeIsDeleted recipe RecipeIsDeleted
RecipeIsArchived recipe RecipeIsArchived
RecipeValidityStartDate recipe RecipeValidityStartDate
RecipeValidityEndDate recipe RecipeValidityEndDate
RecipeValidityMinQuantity recipe RecipeValidityMinQuantity
RecipeValidityMaxQuantity recipe RecipeValidityMaxQuantity
RecipeValidityUnit recipe RecipeValidityUnit
RecipeAuthorizationGroup recipe RecipeAuthorizationGroup
RcpFmlaItemUUID recipe RcpFmlaItemUUID
RcpFmlaItemType recipe RcpFmlaItemType
RecipeFmlaItemAltvIsUsed recipe RecipeFmlaItemAltvIsUsed
RecipePrimOutpSpecType recipe RecipePrimOutpSpecType
Material recipe Material Vehicle Model
RecipePrimaryOutputMaterial recipe RecipePrimaryOutputMaterial
RecipePrimOutputMaterialName recipe RecipePrimOutputMaterialName
RecipePrimOutpSubstNatr recipe RecipePrimOutpSubstNatr
RecipePrimOutpSubstNatrDesc recipe RecipePrimOutpSubstNatrDesc
_AuthorizationGroup recipe _AuthorizationGroup
_CreatedByUser recipe _CreatedByUser
_FormulaForKeyDate recipe _FormulaForKeyDate
_LastChangedByUser recipe _LastChangedByUser
_LogAccMObjectTypeActive recipe _LogAccMObjectTypeActive
_LogAccMObjectUserAuthzn recipe _LogAccMObjectUserAuthzn
_LogAccMObjSecureIDAssgmt recipe _LogAccMObjSecureIDAssgmt
_Plant recipe _Plant
_PrimaryOutputSpecification recipe _PrimaryOutputSpecification
_RecipeDescription recipe _RecipeDescription
_RecipePOMaterialText recipe _RecipePOMaterialText
_RecipePurpose recipe _RecipePurpose
_RecipeStatus recipe _RecipeStatus
_RecipeType recipe _RecipeType

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 P_RecipeHeaderAnalysis.
-- 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: PRCPHDRANLYS
-- Parameters: P_KeyDate : sydate

CREATE VIEW P_RecipeHeaderAnalysis AS
SELECT
  finder_cache.RecipeFinderCacheUUID AS RecipeFinderCacheUUID,
  recipe.RecipeUUID AS RecipeUUID,
  recipe.RecipeUniqueID AS RecipeUniqueID,
  recipe.Recipe AS Recipe,
  recipe.RecipePrimaryOutputInternalID AS RecipePrimaryOutputInternalID,
  recipe.RecipeAlternativeNumber AS RecipeAlternativeNumber,
  recipe.RecipeVersionNumber AS RecipeVersionNumber,
  recipe.RecipeCreatedByUser AS RecipeCreatedByUser,
  recipe.RecipeCreationDateTime AS RecipeCreationDateTime,
  recipe.RecipeLastChangedByUser AS RecipeLastChangedByUser,
  recipe.RecipeLastChangeDateTime AS RecipeLastChangeDateTime,
  recipe.RecipeType AS RecipeType,
  recipe.RecipePurpose AS RecipePurpose,
  recipe.RecipeStatus AS RecipeStatus,
  recipe.RecipeStatusSchema AS RecipeStatusSchema,
  recipe.RcpFmlaUUID AS RcpFmlaUUID,
  recipe.RecipeProcessUUID AS RecipeProcessUUID,
  recipe.RecipePropertySpecInternalID AS RecipePropertySpecInternalID,
  recipe.RecipeIsDeleted AS RecipeIsDeleted,
  recipe.RecipeIsArchived AS RecipeIsArchived,
  recipe.RecipeValidityStartDate AS RecipeValidityStartDate,
  recipe.RecipeValidityEndDate AS RecipeValidityEndDate,
  recipe.RecipeValidityMinQuantity AS RecipeValidityMinQuantity,
  recipe.RecipeValidityMaxQuantity AS RecipeValidityMaxQuantity,
  recipe.RecipeValidityUnit AS RecipeValidityUnit,
  recipe.RecipeAuthorizationGroup AS RecipeAuthorizationGroup,
  recipe.RcpFmlaItemUUID AS RcpFmlaItemUUID,
  recipe.RcpFmlaItemType AS RcpFmlaItemType,
  recipe.RecipeFmlaItemAltvIsUsed AS RecipeFmlaItemAltvIsUsed,
  recipe.RecipePrimOutpSpecType AS RecipePrimOutpSpecType,
  recipe.Material AS Material,
  recipe.RecipePrimaryOutputMaterial AS RecipePrimaryOutputMaterial,
  recipe.RecipePrimOutputMaterialName AS RecipePrimOutputMaterialName,
  recipe.RecipePrimOutpSubstNatr AS RecipePrimOutpSubstNatr,
  recipe.RecipePrimOutpSubstNatrDesc AS RecipePrimOutpSubstNatrDesc,
  recipe._AuthorizationGroup AS _AuthorizationGroup,
  recipe._CreatedByUser AS _CreatedByUser,
  recipe._FormulaForKeyDate AS _FormulaForKeyDate,
  recipe._LastChangedByUser AS _LastChangedByUser,
  recipe._LogAccMObjectTypeActive AS _LogAccMObjectTypeActive,
  recipe._LogAccMObjectUserAuthzn AS _LogAccMObjectUserAuthzn,
  recipe._LogAccMObjSecureIDAssgmt AS _LogAccMObjSecureIDAssgmt,
  recipe._Plant AS _Plant,
  recipe._PrimaryOutputSpecification AS _PrimaryOutputSpecification,
  recipe._RecipeDescription AS _RecipeDescription,
  recipe._RecipePOMaterialText AS _RecipePOMaterialText,
  recipe._RecipePurpose AS _RecipePurpose,
  recipe._RecipeStatus AS _RecipeStatus,
  recipe._RecipeType AS _RecipeType
FROM I_RcpWhereUsedAnlysForKeyDate
INNER JOIN R_RecipeWithPrimaryOutput ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): R_RecipeWithPrimaryOutput
;