I_MasterRecipeComponentAlloc
Master Recipe Component Allocation Details
I_MasterRecipeComponentAlloc is a Composite CDS View that provides data about "Master Recipe Component Allocation Details" in SAP S/4HANA. It reads from 3 data sources (I_MaterialBOM, I_MfgBOOOpBOMItemChangeState, I_MasterRecipeMaterialAssgmt) and exposes 30 fields with key fields BillOfOperationsType, BillOfOperationsGroup, BillOfOperationsVariant, BOOOperationInternalID, BOOOpBOMItemInternalID. It has 2 associations to related views. Part of development package VDM_PP_MD_MRC.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_MaterialBOM | _BOM | inner |
| I_MfgBOOOpBOMItemChangeState | _CompAlloc | from |
| I_MasterRecipeMaterialAssgmt | _MatlAssgmt | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | I_BillOfMaterialItemBasic | _BOMItem | $projection.BillOfMaterialCategory = _BOMItem.BillOfMaterialCategory and $projection.BillOfMaterial = _BOMItem.BillOfMaterial and $projection.BillOfMaterialItemNodeNumber = _BOMItem.InheritedNodeNumberForBOMItem and _CompAlloc.ValidityEndDate >= _BOMItem.ValidityStartDate and _CompAlloc.ValidityStartDate <= _BOMItem.ValidityEndDate and _BOMItem.ValidityEndDate >= $session.system_date and _BOMItem.IsDeleted <> 'X' |
| [0..*] | I_ProductionVersion | _ProdnVers | $projection.Material = _ProdnVers.Material and $projection.Plant = _ProdnVers.Plant and $projection.BillOfOperationsType = _ProdnVers.BillOfOperationsType and $projection.BillOfOperationsGroup = _ProdnVers.BillOfOperationsGroup and $projection.BillOfOperationsVariant = _ProdnVers.BillOfOperationsVariant and $projection.BillOfMaterialVariant = _ProdnVers.BillOfMaterialVariant and $projection.BillOfMaterialVariantUsage = _ProdnVers.BillOfMaterialVariantUsage and _CompAlloc.ValidityEndDate >= _ProdnVers.ValidityStartDate and _CompAlloc.ValidityStartDate <= _ProdnVers.ValidityEndDate and _ProdnVers.ValidityEndDate >= $session.system_date |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMSTRRCPCOMPALC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | BOOOpBOMItemIntVersCounter | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Master Recipe Component Allocation Details | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Metadata.allowExtensions | true | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfOperationsType | I_MfgBOOOpBOMItemChangeState | BillOfOperationsType | Task List Type |
| KEY | BillOfOperationsGroup | I_MfgBOOOpBOMItemChangeState | BillOfOperationsGroup | Group |
| KEY | BillOfOperationsVariant | I_MfgBOOOpBOMItemChangeState | BillOfOperationsVariant | Group Counter |
| KEY | BOOOperationInternalID | BOOOperationInternalID | Task list node | |
| KEY | BOOOpBOMItemInternalID | BOOOpBOMItemInternalID | Allocation no. | |
| KEY | BOOOpBOMItemIntVersCounter | BOOOpBOMItemIntVersCounter | ||
| KEY | BOMItemInternalChangeCount | _BOMItem | BOMItemInternalChangeCount | Counter |
| ValidityStartDateendasValidityStartDate | ||||
| ValidityEndDateendendasValidityEndDate | ||||
| CreationDate | I_MfgBOOOpBOMItemChangeState | CreationDate | Time Stamp | |
| CreatedByUser | I_MfgBOOOpBOMItemChangeState | CreatedByUser | User Name | |
| LastChangeDate | I_MfgBOOOpBOMItemChangeState | LastChangeDate | Time Stamp | |
| LastChangedByUser | I_MfgBOOOpBOMItemChangeState | LastChangedByUser | User Name | |
| IsDeleted | I_MfgBOOOpBOMItemChangeState | IsDeleted | TRUE | |
| IsImplicitlyDeleted | I_MfgBOOOpBOMItemChangeState | IsImplicitlyDeleted | ||
| ChangeNumber | I_MfgBOOOpBOMItemChangeState | ChangeNumber | Change Number | |
| Material | I_MasterRecipeMaterialAssgmt | Material | Vehicle Model | |
| Plant | I_MasterRecipeMaterialAssgmt | Plant | Valuation Area | |
| ProductionVersion | _ProdnVers | ProductionVersion | Version ID | |
| BillOfMaterialCategory | I_MfgBOOOpBOMItemChangeState | BillOfMaterialCategory | BOM category | |
| BillOfMaterial | I_MfgBOOOpBOMItemChangeState | BillOfMaterial | BOM | |
| BillOfMaterialVariant | I_MfgBOOOpBOMItemChangeState | BillOfMaterialVariant | AlternativeBOM | |
| BillOfMaterialVariantUsage | I_MaterialBOM | BillOfMaterialVariantUsage | Usage | |
| BillOfMaterialItemNodeNumber | I_MfgBOOOpBOMItemChangeState | BillOfMaterialItemNodeNumber | Item node | |
| BillOfMaterialItemCategory | _BOMItem | BillOfMaterialItemCategory | Item Category | |
| BillOfMaterialItemNumber | _BOMItem | BillOfMaterialItemNumber | Item | |
| BillOfMaterialComponent | _BOMItem | BillOfMaterialComponent | Component | |
| BillOfMaterialItemQuantity | _BOMItem | BillOfMaterialItemQuantity | Quantity | |
| BillOfMaterialItemUnit | _BOMItem | BillOfMaterialItemUnit | Component UoM | |
| MatlCompIsMarkedForBackflush | MatlCompIsMarkedForBackflush | Backflush |
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 I_MasterRecipeComponentAlloc.
-- 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: IMSTRRCPCOMPALC
CREATE VIEW I_MasterRecipeComponentAlloc AS
SELECT
_CompAlloc.BillOfOperationsType AS BillOfOperationsType,
_CompAlloc.BillOfOperationsGroup AS BillOfOperationsGroup,
_CompAlloc.BillOfOperationsVariant AS BillOfOperationsVariant,
BOOOperationInternalID,
BOOOpBOMItemInternalID,
BOOOpBOMItemIntVersCounter,
_BOMItem.BOMItemInternalChangeCount AS BOMItemInternalChangeCount,
case when _CompAlloc.ValidityStartDate > _BOMItem.ValidityStartDate then _CompAlloc.ValidityStartDate else _BOMItem.ValidityStartDate end as ValidityStartDate AS ValidityStartDateendasValidityStartDate,
case when _CompAlloc.ValidityEndDate < _BOMItem.ValidityEndDate then _CompAlloc.ValidityEndDate else case when _BOMItem.ValidityEndDate > _BOMItem.ValidityStartDate then dats_add_days( _BOMItem.ValidityEndDate, -1, 'UNCHANGED' ) else _BOMItem.ValidityEndDate end end as ValidityEndDate AS ValidityEndDateendendasValidityEndDate,
_CompAlloc.CreationDate AS CreationDate,
_CompAlloc.CreatedByUser AS CreatedByUser,
_CompAlloc.LastChangeDate AS LastChangeDate,
_CompAlloc.LastChangedByUser AS LastChangedByUser,
_CompAlloc.IsDeleted AS IsDeleted,
_CompAlloc.IsImplicitlyDeleted AS IsImplicitlyDeleted,
_CompAlloc.ChangeNumber AS ChangeNumber,
_MatlAssgmt.Material AS Material,
_MatlAssgmt.Plant AS Plant,
_ProdnVers.ProductionVersion AS ProductionVersion,
_CompAlloc.BillOfMaterialCategory AS BillOfMaterialCategory,
_CompAlloc.BillOfMaterial AS BillOfMaterial,
_CompAlloc.BillOfMaterialVariant AS BillOfMaterialVariant,
_BOM.BillOfMaterialVariantUsage AS BillOfMaterialVariantUsage,
_CompAlloc.BillOfMaterialItemNodeNumber AS BillOfMaterialItemNodeNumber,
_BOMItem.BillOfMaterialItemCategory AS BillOfMaterialItemCategory,
_BOMItem.BillOfMaterialItemNumber AS BillOfMaterialItemNumber,
_BOMItem.BillOfMaterialComponent AS BillOfMaterialComponent,
_BOMItem.BillOfMaterialItemQuantity AS BillOfMaterialItemQuantity,
_BOMItem.BillOfMaterialItemUnit AS BillOfMaterialItemUnit,
MatlCompIsMarkedForBackflush
FROM I_MfgBOOOpBOMItemChangeState AS _CompAlloc
INNER JOIN I_MaterialBOM AS _BOM ON /* join condition not captured in parsed metadata */
INNER JOIN I_MasterRecipeMaterialAssgmt AS _MatlAssgmt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_BillOfMaterialItemBasic AS _BOMItem ON BillOfMaterialCategory = _BOMItem.BillOfMaterialCategory AND BillOfMaterial = _BOMItem.BillOfMaterial AND BillOfMaterialItemNodeNumber = _BOMItem.InheritedNodeNumberForBOMItem AND _CompAlloc.ValidityEndDate >= _BOMItem.ValidityStartDate AND _CompAlloc.ValidityStartDate <= _BOMItem.ValidityEndDate AND _BOMItem.ValidityEndDate >= $session.system_date AND _BOMItem.IsDeleted <> 'X' -- association [1..*]
LEFT OUTER JOIN I_ProductionVersion AS _ProdnVers ON Material = _ProdnVers.Material AND Plant = _ProdnVers.Plant AND BillOfOperationsType = _ProdnVers.BillOfOperationsType AND BillOfOperationsGroup = _ProdnVers.BillOfOperationsGroup AND BillOfOperationsVariant = _ProdnVers.BillOfOperationsVariant AND BillOfMaterialVariant = _ProdnVers.BillOfMaterialVariant AND BillOfMaterialVariantUsage = _ProdnVers.BillOfMaterialVariantUsage AND _CompAlloc.ValidityEndDate >= _ProdnVers.ValidityStartDate AND _CompAlloc.ValidityStartDate <= _ProdnVers.ValidityEndDate AND _ProdnVers.ValidityEndDate >= $session.system_date -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA