I_RecipeForKeyDate

DDL: I_RECIPEFORKEYDATE SQL: IRECIPEKD Type: view COMPOSITE

Recipe for Key Date

I_RecipeForKeyDate is a Composite CDS View that provides data about "Recipe for Key Date" in SAP S/4HANA. It reads from 1 data source (I_Recipe) and exposes 52 fields with key field RecipeUUID. It has 12 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Recipe I_Recipe from

Parameters (1)

NameTypeDefault
P_KeyDate sydate

Associations (12)

CardinalityTargetAliasCondition
[0..1] I_SpecificationForKeyDate _PrimaryOutputSpecification $projection.RecipePrimaryOutputInternalID = _PrimaryOutputSpecification.SpecificationInternalID
[1..*] I_RecipeFormulaItemForKeyDate _FormulaForKeyDate $projection.RcpFmlaUUID = _FormulaForKeyDate.RcpFmlaUUID
[0..*] I_RecipeProcessEquipRqmt _RecipeProcessEquipRqmt $projection.RecipeUUID = _RecipeProcessEquipRqmt.RecipeUUID
[0..*] I_RecipeProcessElementBasic _RecipeProcessElementBasic $projection.RecipeUUID = _RecipeProcessElementBasic.RecipeUUID
[0..*] I_RecipeProcessParamValue _RecipeProcessParamValue $projection.RecipeUUID = _RecipeProcessParamValue.RecipeUUID
[1..*] I_RecipeFormulaItemForKeyDate _PrimOutputFormulaForKeyDate $projection.RcpFmlaUUID = _PrimOutputFormulaForKeyDate.RcpFmlaUUID and _PrimOutputFormulaForKeyDate.RcpFmlaItemType = 'PO'
[0..*] I_RecipeFormulaItemForKeyDate _InputFormulaForKeyDate $projection.RcpFmlaUUID = _InputFormulaForKeyDate.RcpFmlaUUID and _InputFormulaForKeyDate.RcpFmlaItemType = 'IN'
[0..*] I_RecipeFormulaItemForKeyDate _OutputStreamFormulaForKeyDate $projection.RcpFmlaUUID = _OutputStreamFormulaForKeyDate.RcpFmlaUUID and _OutputStreamFormulaForKeyDate.RcpFmlaItemType = 'OS'
[0..*] I_RecipeFormulaItemForKeyDate _SecOutputFormulaForKeyDate $projection.RcpFmlaUUID = _SecOutputFormulaForKeyDate.RcpFmlaUUID and _SecOutputFormulaForKeyDate.RcpFmlaItemType = 'SO'
[0..*] I_ClfnObjectClassForKeyDate _ClfnObjectClassForKeyDate $projection.RecipeUniqueID = _ClfnObjectClassForKeyDate.ClfnObjectID and _ClfnObjectClassForKeyDate.ClfnObjectTable = '/PLMB/RCP_RECIPE'
[0..*] I_ClfnObjectCharcValForKeyDate _ClfnObjectCharcValForKeyDate $projection.RecipeUniqueID = _ClfnObjectCharcValForKeyDate.ClfnObjectID and _ClfnObjectCharcValForKeyDate.ClfnObjectTable = '/PLMB/RCP_RECIPE'
[1..1] E_Recipe _Extension $projection.RecipeUUID = _Extension.RecipeUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IRECIPEKD view
AbapCatalog.compiler.compareFilter 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.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #COMPOSITE view
AbapCatalog.preserveKey true view
EndUserText.label Recipe for Key Date view

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY RecipeUUID RecipeUUID
RecipeUniqueID RecipeUniqueID
Recipe Recipe
RecipePrimaryOutputInternalID RecipePrimaryOutputInternalID
RecipeAlternativeNumber RecipeAlternativeNumber
RecipeVersionNumber RecipeVersionNumber
RecipeCreatedByUser RecipeCreatedByUser
RecipeCreationDateTime RecipeCreationDateTime
RecipeLastChangedByUser RecipeLastChangedByUser
RecipeLastChangeDateTime RecipeLastChangeDateTime
RecipeType RecipeType
RecipePurpose RecipePurpose
RecipeStatus RecipeStatus
StsActnMgmtStatusText _RecipeStatusText StsActnMgmtStatusText
RecipeStatusSchema RecipeStatusSchema
RcpFmlaUUID RcpFmlaUUID
RecipeProcessUUID RecipeProcessUUID
RecipePropertySpecInternalID RecipePropertySpecInternalID
RecipeChangeNumber RecipeChangeNumber
RecipeIsDeleted RecipeIsDeleted
RecipeIsArchived RecipeIsArchived
RecipeValidityStartDate RecipeValidityStartDate
RecipeValidityEndDate RecipeValidityEndDate
RecipeValidityMinQuantity RecipeValidityMinQuantity
RecipeValidityMaxQuantity RecipeValidityMaxQuantity
RecipeValidityUnit RecipeValidityUnit
RecipeAuthorizationGroup RecipeAuthorizationGroup
_CreatedByUser _CreatedByUser
_LastChangedByUser _LastChangedByUser
_Plant _Plant
_RecipeDescription _RecipeDescription
_TextObjectPlainLongText _TextObjectPlainLongText
_RecipePurpose _RecipePurpose
_RecipeStatus _RecipeStatus
_RecipeStatusText _RecipeStatusText
_RecipeType _RecipeType
_AuthorizationGroup _AuthorizationGroup
_PrimaryOutputSpecification _PrimaryOutputSpecification
_FormulaForKeyDate _FormulaForKeyDate
_RecipeProcessEquipRqmt _RecipeProcessEquipRqmt
_RecipeProcessElementBasic _RecipeProcessElementBasic
_RecipeProcessParamValue _RecipeProcessParamValue
_RecipeDocInfoRecordObjectLink _RecipeDocInfoRecordObjectLink
_PrimOutputFormulaForKeyDate _PrimOutputFormulaForKeyDate
_InputFormulaForKeyDate _InputFormulaForKeyDate
_OutputStreamFormulaForKeyDate _OutputStreamFormulaForKeyDate
_SecOutputFormulaForKeyDate _SecOutputFormulaForKeyDate
_ClfnObjectClassForKeyDate _ClfnObjectClassForKeyDate
_ClfnObjectCharcValForKeyDate _ClfnObjectCharcValForKeyDate
_LogAccMObjectTypeActive _LogAccMObjectTypeActive
_LogAccMObjectUserAuthzn _LogAccMObjectUserAuthzn
_LogAccMObjSecureIDAssgmt _LogAccMObjSecureIDAssgmt
@AbapCatalog.sqlViewName: 'IRECIPEKD'
@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #CHECK

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MASTER

@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #COMPOSITE

@AbapCatalog.preserveKey: true

@EndUserText.label: 'Recipe for Key Date'
define view I_RecipeForKeyDate
  with parameters
    @Environment.systemField: #SYSTEM_DATE
    P_KeyDate : sydate
  as select from I_Recipe 
  association [0..1] to I_SpecificationForKeyDate      as _PrimaryOutputSpecification    on  $projection.RecipePrimaryOutputInternalID = _PrimaryOutputSpecification.SpecificationInternalID
  association [1..*] to I_RecipeFormulaItemForKeyDate  as _FormulaForKeyDate             on  $projection.RcpFmlaUUID = _FormulaForKeyDate.RcpFmlaUUID
  association [0..*] to I_RecipeProcessEquipRqmt       as _RecipeProcessEquipRqmt        on  $projection.RecipeUUID = _RecipeProcessEquipRqmt.RecipeUUID
  association [0..*] to I_RecipeProcessElementBasic    as _RecipeProcessElementBasic     on  $projection.RecipeUUID = _RecipeProcessElementBasic.RecipeUUID
  association [0..*] to I_RecipeProcessParamValue      as _RecipeProcessParamValue       on  $projection.RecipeUUID = _RecipeProcessParamValue.RecipeUUID

  association [1..*] to I_RecipeFormulaItemForKeyDate  as _PrimOutputFormulaForKeyDate   on  $projection.RcpFmlaUUID                      = _PrimOutputFormulaForKeyDate.RcpFmlaUUID
                                                                                         and _PrimOutputFormulaForKeyDate.RcpFmlaItemType = 'PO'
  association [0..*] to I_RecipeFormulaItemForKeyDate  as _InputFormulaForKeyDate        on  $projection.RcpFmlaUUID                 = _InputFormulaForKeyDate.RcpFmlaUUID
                                                                                         and _InputFormulaForKeyDate.RcpFmlaItemType = 'IN'
  association [0..*] to I_RecipeFormulaItemForKeyDate  as _OutputStreamFormulaForKeyDate on  $projection.RcpFmlaUUID                        = _OutputStreamFormulaForKeyDate.RcpFmlaUUID
                                                                                         and _OutputStreamFormulaForKeyDate.RcpFmlaItemType = 'OS'
  association [0..*] to I_RecipeFormulaItemForKeyDate  as _SecOutputFormulaForKeyDate    on  $projection.RcpFmlaUUID                     = _SecOutputFormulaForKeyDate.RcpFmlaUUID
                                                                                         and _SecOutputFormulaForKeyDate.RcpFmlaItemType = 'SO'
  association [0..*] to I_ClfnObjectClassForKeyDate    as _ClfnObjectClassForKeyDate     on  $projection.RecipeUniqueID                 = _ClfnObjectClassForKeyDate.ClfnObjectID
                                                                                         and _ClfnObjectClassForKeyDate.ClfnObjectTable = '/PLMB/RCP_RECIPE'
  association [0..*] to I_ClfnObjectCharcValForKeyDate as _ClfnObjectCharcValForKeyDate  on  $projection.RecipeUniqueID                    = _ClfnObjectCharcValForKeyDate.ClfnObjectID
                                                                                         and _ClfnObjectCharcValForKeyDate.ClfnObjectTable = '/PLMB/RCP_RECIPE'
  association [1..1] to E_Recipe                       as _Extension                     on  $projection.RecipeUUID = _Extension.RecipeUUID
{
  key RecipeUUID,
      RecipeUniqueID,
      Recipe,
      RecipePrimaryOutputInternalID,
      RecipeAlternativeNumber,
      RecipeVersionNumber,
      RecipeCreatedByUser,
      RecipeCreationDateTime,
      RecipeLastChangedByUser,
      RecipeLastChangeDateTime,
      RecipeType,
      RecipePurpose,
      RecipeStatus,
      _RecipeStatusText.StsActnMgmtStatusText,
      RecipeStatusSchema,
      RcpFmlaUUID,
      RecipeProcessUUID,
      RecipePropertySpecInternalID,
      RecipeChangeNumber,
      RecipeIsDeleted,
      RecipeIsArchived,
      RecipeValidityStartDate,
      RecipeValidityEndDate,
      RecipeValidityMinQuantity,
      RecipeValidityMaxQuantity,
      RecipeValidityUnit,
      RecipeAuthorizationGroup,

      /* Associations */
      _CreatedByUser,
      _LastChangedByUser,
      _Plant,
      _RecipeDescription,
      _TextObjectPlainLongText,
      _RecipePurpose,
      _RecipeStatus,
      _RecipeStatusText,
      _RecipeType,
      _AuthorizationGroup,

      _PrimaryOutputSpecification,
      _FormulaForKeyDate,

      _RecipeProcessEquipRqmt,
      _RecipeProcessElementBasic,
      _RecipeProcessParamValue,
      _RecipeDocInfoRecordObjectLink,

      // For Search

      _PrimOutputFormulaForKeyDate,
      _InputFormulaForKeyDate,
      _OutputStreamFormulaForKeyDate,
      _SecOutputFormulaForKeyDate,
      _ClfnObjectClassForKeyDate,
      _ClfnObjectCharcValForKeyDate,

      _LogAccMObjectTypeActive,
      _LogAccMObjectUserAuthzn,
      _LogAccMObjSecureIDAssgmt

}
where _PrimaryOutputSpecification( P_KeyDate : $parameters.P_KeyDate ).Specification != '' // PO specification must be valid on key date "Note 2761375

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_RECIPE",
"I_SPECIFICATIONFORKEYDATE",
"I_STSACTNMGMTSTATUSTEXT"
],
"ASSOCIATED":
[
"E_RECIPE",
"I_CLFNOBJECTCHARCVALFORKEYDATE",
"I_CLFNOBJECTCLASSFORKEYDATE",
"I_DOCUMENTINFORECORDOBJECTLINK",
"I_LOGACCMOBJECTTYPEACTIVE",
"I_LOGACCMOBJECTUSERAUTHZN",
"I_LOGACCMOBJSECUREIDASSGMT",
"I_RECIPEASSGDPLANT",
"I_RECIPEAUTHORIZATIONGROUP",
"I_RECIPEFORMULAITEMFORKEYDATE",
"I_RECIPEPROCESSELEMENTBASIC",
"I_RECIPEPROCESSEQUIPRQMT",
"I_RECIPEPROCESSPARAMVALUE",
"I_RECIPEPURPOSE",
"I_RECIPESTATUS",
"I_RECIPETEXT",
"I_RECIPETYPE",
"I_SPECIFICATIONFORKEYDATE",
"I_STSACTNMGMTSTATUSTEXT",
"I_TEXTOBJECTPLAINLONGTEXT",
"I_USER"
],
"BASE":
[
"I_RECIPE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/