I_MasterRecipeMaterialAssgmtTP
Master Recipe - Material Assignment
I_MasterRecipeMaterialAssgmtTP is a Transactional CDS View that provides data about "Master Recipe - Material Assignment" in SAP S/4HANA. It reads from 1 data source (I_MasterRecipeMaterialAssgmt) and exposes 18 fields with key fields Product, Plant, MasterRecipeGroup, MasterRecipe, MasterRecipeMaterialAssignment. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_MasterRecipeMaterialAssgmt | I_MasterRecipeMaterialAssgmt | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_MasterRecipeHeaderTP | _Header | $projection.MasterRecipeGroup = _Header.MasterRecipeGroup and $projection.MasterRecipe = _Header.MasterRecipe and $projection.ValidityEndDate >= _Header.ValidityStartDate and $projection.ValidityStartDate <= _Header.ValidityEndDate -- to root node |
| [1..1] | I_MaterialText | _MaterialText | $projection.Product = _MaterialText.Material and _MaterialText.Language = $session.system_language |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.representativeKey | MasterRecipeMaterialAssignment | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Master Recipe - Material Assignment | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Product | Material | Product | |
| KEY | Plant | Plant | ||
| KEY | MasterRecipeGroup | BillOfOperationsGroup | ||
| KEY | MasterRecipe | BillOfOperationsVariant | ||
| KEY | MasterRecipeMaterialAssignment | BOOToMaterialInternalID | ||
| KEY | MstrRcpMatlAssgmtIntVersion | BOOMatlInternalVersionCounter | ||
| CreationDate | CreationDate | |||
| CreatedByUser | CreatedByUser | |||
| LastChangeDate | LastChangeDate | |||
| LastChangedByUser | LastChangedByUser | |||
| ValidityStartDate | ValidityStartDate | |||
| ValidityEndDate | ValidityEndDate | |||
| ChangeNumber | ChangeNumber | |||
| ChangedDateTime | _RcpTP | ChangedDateTime | ||
| ProductName | _MaterialText | MaterialName | ||
| _Header | _Header | |||
| _RcpTP | _RcpTP | |||
| _MaterialText | _MaterialText |
//@AbapCatalog.sqlViewName: 'IMRCMATLASSGMTTP'
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey: true
//@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'MasterRecipeMaterialAssignment'
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Master Recipe - Material Assignment'
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM: { viewType: #TRANSACTIONAL, lifecycle.contract.type: #SAP_INTERNAL_API }
@ObjectModel.usageType: {serviceQuality: #A, sizeCategory: #M, dataClass: #MASTER}
define view entity I_MasterRecipeMaterialAssgmtTP
as select from I_MasterRecipeMaterialAssgmt
-- for DCLS
association [1..*] to I_MasterRecipeHeaderTP as _Header on $projection.MasterRecipeGroup = _Header.MasterRecipeGroup
and $projection.MasterRecipe = _Header.MasterRecipe
and $projection.ValidityEndDate >= _Header.ValidityStartDate
and $projection.ValidityStartDate <= _Header.ValidityEndDate
-- to root node
association to parent I_MasterRecipeNonHistoricHdrTP as _RcpTP on $projection.MasterRecipeGroup = _RcpTP.MasterRecipeGroup
and $projection.MasterRecipe = _RcpTP.MasterRecipe
association [1..1] to I_MaterialText as _MaterialText on $projection.Product = _MaterialText.Material
and _MaterialText.Language = $session.system_language
{
//I_MasterRecipeMaterialAssgmt
@Consumption.valueHelpDefinition: [{entity:{ name: 'C_MassMaintCapProductVH', element: 'Product'} }]
@EndUserText.label: 'Product'
key Material as Product,
key Plant,
key BillOfOperationsGroup as MasterRecipeGroup,
key BillOfOperationsVariant as MasterRecipe,
key BOOToMaterialInternalID as MasterRecipeMaterialAssignment,
key BOOMatlInternalVersionCounter as MstrRcpMatlAssgmtIntVersion,
CreationDate,
CreatedByUser,
LastChangeDate,
LastChangedByUser,
@Semantics.businessDate.from: true
ValidityStartDate,
@Semantics.businessDate.to: true
ValidityEndDate,
ChangeNumber,
_RcpTP.ChangedDateTime,
_MaterialText.MaterialName as ProductName,
/* Associations */
//I_MasterRecipeMaterialAssgmt
@Consumption.hidden: true
_Header,
_RcpTP,
_MaterialText
}
where
IsDeleted <> 'X'
and IsImplicitlyDeleted <> 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_MASTERRECIPEMATERIALASSGMT",
"I_MASTERRECIPENONHISTORICHDRTP",
"I_MATERIALTEXT"
],
"ASSOCIATED":
[
"I_MASTERRECIPEHEADERTP",
"I_MASTERRECIPENONHISTORICHDRTP",
"I_MATERIALTEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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