I_ChangeRecordsAssignedToBOM
Change Records Assigned to BOM
I_ChangeRecordsAssignedToBOM is a Composite CDS View that provides data about "Change Records Assigned to BOM" in SAP S/4HANA. It has 5 associations to related views. Part of development package CS_RAP.
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ChgRecdRefEBOM | _EBOMAssignment | $projection.Plant = _EBOMAssignment.Plant and $projection.BillOfMaterial = _EBOMAssignment.BillOfMaterial and $projection.BillOfMaterialVariant = _EBOMAssignment.BillOfMaterialVariant and $projection.BillOfMaterialVersion = _EBOMAssignment.ChgRecRefInternalKey4 |
| [0..1] | I_ChgRecdRefMBOM | _MBOMAssignment | $projection.Plant = _MBOMAssignment.Plant and $projection.BillOfMaterial = _MBOMAssignment.BillOfMaterial and $projection.BillOfMaterialVariant = _MBOMAssignment.BillOfMaterialVariant and $projection.BillOfMaterialVersion = _MBOMAssignment.ChgRecRefInternalKey4 |
| [0..1] | I_BOMVariantUsage | _BOMUsage | $projection.BillOfMaterialVariantUsage = _BOMUsage.BillOfMaterialVariantUsage |
| [0..*] | I_ChangeRecordBsc | _ChangeRecord | $projection.ChangeRecordUUID = _ChangeRecord.ChangeRecordUUID |
| [0..1] | I_ChgRecdRefBOM | _BOMAssignment | $projection.Plant = _BOMAssignment.Plant and $projection.Material = _BOMAssignment.Material and $projection.BillOfMaterial = _BOMAssignment.BillOfMaterial and $projection.BillOfMaterialVariant = _BOMAssignment.BillOfMaterialVariant and $projection.BillOfMaterialVariantUsage = _BOMAssignment.BillOfMaterialVariantUsage |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Change Records Assigned to BOM | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (19)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfMaterial | BOM | ||
| KEY | BillOfMaterialCategory | BillOfMaterialCategory | BOM category | |
| KEY | BillOfMaterialVariant | BillOfMaterialVariant | AlternativeBOM | |
| KEY | BillOfMaterialVersion | BillOfMaterialVersion | BOM Version | |
| KEY | EngineeringChangeDocument | EngineeringChangeDocument | Change Number | |
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| BillOfMaterialVariantUsage | BillOfMaterialVariantUsage | Usage | ||
| ChangeRecordUUIDendasChangeRecordUUID | ||||
| ChangeRecordUUIDkeyBillOfMaterial | ||||
| KEY | BillOfMaterialCategory | BillOfMaterialCategory | BOM category | |
| KEY | BillOfMaterialVariant | BillOfMaterialVariant | AlternativeBOM | |
| KEY | BillOfMaterialVersion | BillOfMaterialVersion | BOM Version | |
| KEY | EngineeringChangeDocument | EngineeringChangeDocument | Change Number | |
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| BillOfMaterialVariantUsage | BillOfMaterialVariantUsage | Usage | ||
| ChangeRecordUUID | _BOMAssignment | ChangeRecordUUID | NodeID | |
| _ChangeRecord | _ChangeRecord |
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_ChangeRecordsAssignedToBOM.
-- 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.
CREATE VIEW I_ChangeRecordsAssignedToBOM AS
SELECT
cast( BillOfMaterial as cs_stlnr preserving type ) AS BillOfMaterial,
BillOfMaterialCategory,
BillOfMaterialVariant,
BillOfMaterialVersion,
EngineeringChangeDocument,
Material,
Plant,
BillOfMaterialVariantUsage,
case when _BOMUsage.BOMIsProductionUsageRelevant = '+' then _MBOMAssignment.ChangeRecordUUID when _BOMUsage.BOMIsEngineeringUsageRelevant = '+' then _EBOMAssignment.ChangeRecordUUID end as ChangeRecordUUID AS ChangeRecordUUIDendasChangeRecordUUID,
_BOMAssignment.ChangeRecordUUID AS ChangeRecordUUID
LEFT OUTER JOIN I_ChgRecdRefEBOM AS _EBOMAssignment ON Plant = _EBOMAssignment.Plant AND BillOfMaterial = _EBOMAssignment.BillOfMaterial AND BillOfMaterialVariant = _EBOMAssignment.BillOfMaterialVariant AND BillOfMaterialVersion = _EBOMAssignment.ChgRecRefInternalKey4 -- association [0..1]
LEFT OUTER JOIN I_ChgRecdRefMBOM AS _MBOMAssignment ON Plant = _MBOMAssignment.Plant AND BillOfMaterial = _MBOMAssignment.BillOfMaterial AND BillOfMaterialVariant = _MBOMAssignment.BillOfMaterialVariant AND BillOfMaterialVersion = _MBOMAssignment.ChgRecRefInternalKey4 -- association [0..1]
LEFT OUTER JOIN I_BOMVariantUsage AS _BOMUsage ON BillOfMaterialVariantUsage = _BOMUsage.BillOfMaterialVariantUsage -- association [0..1]
LEFT OUTER JOIN I_ChangeRecordBsc AS _ChangeRecord ON ChangeRecordUUID = _ChangeRecord.ChangeRecordUUID -- association [0..*]
LEFT OUTER JOIN I_ChgRecdRefBOM AS _BOMAssignment ON Plant = _BOMAssignment.Plant AND Material = _BOMAssignment.Material AND BillOfMaterial = _BOMAssignment.BillOfMaterial AND BillOfMaterialVariant = _BOMAssignment.BillOfMaterialVariant AND BillOfMaterialVariantUsage = _BOMAssignment.BillOfMaterialVariantUsage -- association [0..1]
;
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