R_RecipeWithPrimaryOutput
Recipe for Key Date with PO Data
R_RecipeWithPrimaryOutput is a Composite CDS View that provides data about "Recipe for Key Date with PO Data" in SAP S/4HANA. It reads from 2 data sources (I_RecipeForKeyDate, I_RecipeFormulaItemForKeyDate) and exposes 49 fields with key field RecipeUUID. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RecipeForKeyDate | I_RecipeForKeyDate | from |
| I_RecipeFormulaItemForKeyDate | I_RecipeFormulaItemForKeyDate | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_KeyDate | sydate |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_ProductText | _RecipePOMaterialText | formulaItem.Material = _RecipePOMaterialText.Product |
| [0..*] | I_SpecSubstanceNatureText | _POSubstanceNatureText | $projection.RecipePrimOutpSubstNatr = _POSubstanceNatureText.SpecificationSubstanceNatr |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | RRCPWITHPO | 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 | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #COMPOSITE | view | |
| EndUserText.label | Recipe for Key Date with PO Data | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RecipeUUID | rcp | RecipeUUID | |
| RecipeUniqueID | rcp | RecipeUniqueID | ||
| Recipe | rcp | Recipe | ||
| RecipePrimaryOutputInternalID | rcp | RecipePrimaryOutputInternalID | ||
| RecipeAlternativeNumber | rcp | RecipeAlternativeNumber | ||
| RecipeVersionNumber | rcp | RecipeVersionNumber | ||
| RecipeCreatedByUser | rcp | RecipeCreatedByUser | ||
| RecipeCreationDateTime | rcp | RecipeCreationDateTime | ||
| RecipeLastChangedByUser | rcp | RecipeLastChangedByUser | ||
| RecipeLastChangeDateTime | rcp | RecipeLastChangeDateTime | ||
| RecipeType | rcp | RecipeType | ||
| RecipePurpose | rcp | RecipePurpose | ||
| RecipeStatus | rcp | RecipeStatus | ||
| RecipeStatusSchema | rcp | RecipeStatusSchema | ||
| RcpFmlaUUID | rcp | RcpFmlaUUID | ||
| RecipeProcessUUID | rcp | RecipeProcessUUID | ||
| RecipePropertySpecInternalID | rcp | RecipePropertySpecInternalID | ||
| RecipeIsDeleted | rcp | RecipeIsDeleted | ||
| RecipeIsArchived | rcp | RecipeIsArchived | ||
| RecipeValidityStartDate | rcp | RecipeValidityStartDate | ||
| RecipeValidityEndDate | rcp | RecipeValidityEndDate | ||
| RecipeValidityMinQuantity | rcp | RecipeValidityMinQuantity | ||
| RecipeValidityMaxQuantity | rcp | RecipeValidityMaxQuantity | ||
| RecipeValidityUnit | rcp | RecipeValidityUnit | ||
| RecipeAuthorizationGroup | rcp | RecipeAuthorizationGroup | ||
| RcpFmlaItemUUID | formulaItem | RcpFmlaItemUUID | ||
| RcpFmlaItemType | formulaItem | RcpFmlaItemType | ||
| RecipeFmlaItemAltvIsUsed | formulaItem | RecipeFmlaItemAltvIsUsed | ||
| RecipePrimOutpSpecType | ||||
| Material | formulaItem | Material | ||
| RecipePrimaryOutputMaterial | ||||
| RecipePrimOutputMaterialName | ||||
| RecipePrimOutpSubstNatr | ||||
| RecipePrimOutpSubstNatrDesc | ||||
| _CreatedByUser | rcp | _CreatedByUser | ||
| _LastChangedByUser | rcp | _LastChangedByUser | ||
| _Plant | rcp | _Plant | ||
| _RecipeDescription | rcp | _RecipeDescription | ||
| _RecipePurpose | rcp | _RecipePurpose | ||
| _RecipeStatus | rcp | _RecipeStatus | ||
| _RecipeType | rcp | _RecipeType | ||
| _AuthorizationGroup | rcp | _AuthorizationGroup | ||
| _PrimaryOutputSpecification | rcp | _PrimaryOutputSpecification | ||
| _FormulaForKeyDate | rcp | _FormulaForKeyDate | ||
| _LogAccMObjectTypeActive | rcp | _LogAccMObjectTypeActive | ||
| _LogAccMObjectUserAuthzn | rcp | _LogAccMObjectUserAuthzn | ||
| _LogAccMObjSecureIDAssgmt | rcp | _LogAccMObjSecureIDAssgmt | ||
| _RecipePOMaterialText | _RecipePOMaterialText | |||
| _POSubstanceNatureText | _POSubstanceNatureText |
@AbapCatalog.sqlViewName: 'RRCPWITHPO'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Recipe for Key Date with PO Data'
define view R_RecipeWithPrimaryOutput
with parameters
@Environment.systemField: #SYSTEM_DATE
@Semantics.businessDate.at: true
@Consumption.hidden: true
P_KeyDate : sydate
as select from I_RecipeForKeyDate( P_KeyDate: $parameters.P_KeyDate) as rcp
inner join I_RecipeFormulaItemForKeyDate( P_KeyDate: $parameters.P_KeyDate) as formulaItem on rcp.RecipeUUID = formulaItem.RecipeUUID
and formulaItem.RcpFmlaItemType = 'PO'
and RecipeFmlaItemAltvIsUsed = 'X'
association [0..*] to I_ProductText as _RecipePOMaterialText on formulaItem.Material = _RecipePOMaterialText.Product
association [0..*] to I_SpecSubstanceNatureText as _POSubstanceNatureText on $projection.RecipePrimOutpSubstNatr = _POSubstanceNatureText.SpecificationSubstanceNatr
{
// recipe
key rcp.RecipeUUID,
rcp.RecipeUniqueID,
rcp.Recipe,
rcp.RecipePrimaryOutputInternalID,
rcp.RecipeAlternativeNumber,
rcp.RecipeVersionNumber,
rcp.RecipeCreatedByUser,
rcp.RecipeCreationDateTime,
rcp.RecipeLastChangedByUser,
rcp.RecipeLastChangeDateTime,
rcp.RecipeType,
rcp.RecipePurpose,
rcp.RecipeStatus,
rcp.RecipeStatusSchema,
rcp.RcpFmlaUUID,
rcp.RecipeProcessUUID,
rcp.RecipePropertySpecInternalID,
rcp.RecipeIsDeleted,
rcp.RecipeIsArchived,
rcp.RecipeValidityStartDate,
rcp.RecipeValidityEndDate,
rcp.RecipeValidityMinQuantity,
rcp.RecipeValidityMaxQuantity,
rcp.RecipeValidityUnit,
rcp.RecipeAuthorizationGroup,
// formulaItem
formulaItem.RcpFmlaItemUUID,
formulaItem.RcpFmlaItemType,
formulaItem.RecipeFmlaItemAltvIsUsed,
cast( rcp._PrimaryOutputSpecification( P_KeyDate:$session.system_date).SpecificationType as /plmb/rcp_po_spec_type preserving type ) as RecipePrimOutpSpecType,
// product
formulaItem.Material,
cast(formulaItem.Material as /plmb/rcp_po_material preserving type ) as RecipePrimaryOutputMaterial,
cast(_RecipePOMaterialText[Language=$session.system_language].ProductName as /plmb/rcp_po_material_name ) as RecipePrimOutputMaterialName,
// PO substance nature
cast( rcp._PrimaryOutputSpecification( P_KeyDate:$session.system_date).SpecificationSubstanceNatr as /plmb/rcp_po_substance_nature preserving type ) as RecipePrimOutpSubstNatr,
rcp._PrimaryOutputSpecification( P_KeyDate:$session.system_date)._SubstanceNature._SubstanceNatureText[Language=$session.system_language].SpecificationSubstanceNatrDesc as RecipePrimOutpSubstNatrDesc,
/* Associations */
//recipe
rcp._CreatedByUser,
rcp._LastChangedByUser,
rcp._Plant,
rcp._RecipeDescription,
rcp._RecipePurpose,
rcp._RecipeStatus,
rcp._RecipeType,
rcp._AuthorizationGroup,
rcp._PrimaryOutputSpecification,
rcp._FormulaForKeyDate,
rcp._LogAccMObjectTypeActive,
rcp._LogAccMObjectUserAuthzn,
rcp._LogAccMObjSecureIDAssgmt,
//product
_RecipePOMaterialText,
@Consumption.hidden: true
_POSubstanceNatureText
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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