I_MasterRecipeMaterialCount
Count of materials per Recipe Group
I_MasterRecipeMaterialCount is a Composite CDS View that provides data about "Count of materials per Recipe Group" in SAP S/4HANA. It reads from 1 data source (C_RecipeAssignedMaterials) and exposes 4 fields with key fields MasterRecipeGroup, MasterRecipe. Part of development package ODATA_PP_MASTER_RECIPE_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_RecipeAssignedMaterials | C_RecipeAssignedMaterials | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Count of materials per Recipe Group | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MasterRecipeGroup | MasterRecipeGroup | ||
| KEY | MasterRecipe | MasterRecipe | ||
| NumberOfProducts | Associated Products | |||
| Product |
//@AbapCatalog.sqlViewName: 'IMRMATLCNT'
@VDM.viewType: #COMPOSITE
//@AbapCatalog.compiler.compareFilter: true
//@AbapCatalog.preserveKey:true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MIXED }
//@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Count of materials per Recipe Group'
define view entity I_MasterRecipeMaterialCount
as select from C_RecipeAssignedMaterials
//I_MasterRecipeMaterialAssgmtTP
{
key MasterRecipeGroup,
key MasterRecipe,
@EndUserText.label: 'Associated Products'
count(*) as NumberOfProducts,
cast( cast( '' as abap.char(40) ) as matnr preserving type ) as Product
}
group by
MasterRecipeGroup,
MasterRecipe
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