N_ChangeRecordObjPgMatl
Change Record Reference Object Material
N_ChangeRecordObjPgMatl is a CDS View that provides data about "Change Record Reference Object Material" in SAP S/4HANA. It reads from 2 data sources (I_Material, I_ChgRecdRefMatBsc) and exposes 26 fields with key field ChangeRecordReferenceUUID. It has 4 associations to related views. Part of development package VDM_PLMB_CR.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_Material | Material | left_outer |
| I_ChgRecdRefMatBsc | reference_mat | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ChangeRecordObjPg | _ChangeRecordObjPg | $projection.ChangeRecordUUID = _ChangeRecordObjPg.ChangeRecordUUID |
| [1..1] | C_ChangeRecordItemRelMatVH | _ChangeRecordItemRelMatVH | $projection.ChangeRecordItemRelevance = _ChangeRecordItemRelMatVH.ChangeRecordItemRelevance and $projection.ChangeRecordType = _ChangeRecordItemRelMatVH.ChangeRecordType and $projection.ChangeRecordReferenceType = _ChangeRecordItemRelMatVH.ChangeRecordReferenceType |
| [0..1] | I_ChangeRecordProduct | _ChangeRecordProduct | $projection.Material = _ChangeRecordProduct.Product |
| [0..1] | I_Material | _Material | $projection.Material = _Material.Material |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | NCHGRCDOBJPGMAT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Change Record Reference Object Material | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| VDM.auxiliaryEntity.for.entity | C_ChangeRecordObjPgMatl | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChangeRecordReferenceUUID | ChangeRecordReferenceUUID | UUID | |
| Material | I_Material | Material | Vehicle Model | |
| ChangeRecordType | _ChangeRecordObjPg | ChangeRecordType | Record Type | |
| ChangeRecordUUID | ChangeRecordUUID | NodeID | ||
| ChangeRecordReferenceType | ChangeRecordReferenceType | Object Type | ||
| ChangeRecordReferenceSubtype | ChangeRecordReferenceSubtype | Subtype | ||
| ChangeRecordReference | ChangeRecordReference | Ref. Object ID | ||
| ParentChangeRecordRefUUID | ParentChangeRecordRefUUID | Node ID | ||
| IsMainReference | IsMainReference | Main Reference | ||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDateTime | CreationDateTime | Timestamp | ||
| CreationDate | ||||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDateTime | LastChangeDateTime | Timestamp | ||
| LastChangeDate | ||||
| ChangeRecordItemRelevance | ||||
| ProductName | _ChangeRecordProduct | ProductName | Description | |
| MaterialType | ||||
| MaterialTypeName | ||||
| MaterialBaseUnit | ||||
| UnitOfMeasureLongName | ||||
| CrossPlantStatus | ||||
| MaterialUsabilityProfileName | ||||
| _Material | _Material | |||
| _ChangeRecordProduct | _ChangeRecordProduct | |||
| _ChangeRecordItemRelMatVH | _ChangeRecordItemRelMatVH |
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 N_ChangeRecordObjPgMatl.
-- 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: NCHGRCDOBJPGMAT
CREATE VIEW N_ChangeRecordObjPgMatl AS
SELECT
ChangeRecordReferenceUUID,
Material.Material AS Material,
_ChangeRecordObjPg.ChangeRecordType AS ChangeRecordType,
ChangeRecordUUID,
ChangeRecordReferenceType,
ChangeRecordReferenceSubtype,
ChangeRecordReference,
ParentChangeRecordRefUUID,
IsMainReference,
CreatedByUser,
CreationDateTime,
cast( '00000000' as /plmb/created_on ) AS CreationDate,
LastChangedByUser,
LastChangeDateTime,
cast( '00000000' as /plmb/changed_on ) AS LastChangeDate,
_ChangeRecordProduct.ProductName AS ProductName,
cast(_ChangeRecordProduct.ProductType as mtart preserving type ) AS MaterialType,
_ChangeRecordProduct ._MaterialType._Text[1:Language = $session.system_language].MaterialTypeName AS MaterialTypeName,
cast(_ChangeRecordProduct.BaseUnit as /plmb/cr_mat_base_unit preserving type ) AS MaterialBaseUnit,
_ChangeRecordProduct._UnitOfMeasureValueHelp._Text[1:Language = $session.system_language].UnitOfMeasureLongName AS UnitOfMeasureLongName,
cast(_ChangeRecordProduct.CrossPlantStatus as /plmb/cr_mat_status preserving type) AS CrossPlantStatus,
_ChangeRecordProduct._ProductStatus._Text[1:Language = $session.system_language].MaterialUsabilityProfileName AS MaterialUsabilityProfileName
FROM I_ChgRecdRefMatBsc AS reference_mat
LEFT OUTER JOIN I_Material AS Material ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_ChangeRecordObjPg AS _ChangeRecordObjPg ON ChangeRecordUUID = _ChangeRecordObjPg.ChangeRecordUUID -- association [1..1]
LEFT OUTER JOIN C_ChangeRecordItemRelMatVH AS _ChangeRecordItemRelMatVH ON ChangeRecordItemRelevance = _ChangeRecordItemRelMatVH.ChangeRecordItemRelevance AND ChangeRecordType = _ChangeRecordItemRelMatVH.ChangeRecordType AND ChangeRecordReferenceType = _ChangeRecordItemRelMatVH.ChangeRecordReferenceType -- association [1..1]
LEFT OUTER JOIN I_ChangeRecordProduct AS _ChangeRecordProduct ON Material = _ChangeRecordProduct.Product -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [0..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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