N_ChangeRecordObjPgDoc
Change Record Reference Object Document
N_ChangeRecordObjPgDoc is a CDS View that provides data about "Change Record Reference Object Document" in SAP S/4HANA. It reads from 2 data sources (I_DocumentInfoRecord, I_ChgRecdRefDocBsc) and exposes 21 fields with key field ChangeRecordReferenceUUID. It has 5 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_DocumentInfoRecord | Document | left_outer |
| I_ChgRecdRefDocBsc | reference_DOC | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ChangeRecordObjPg | _ChangeRecordObjPg | $projection.ChangeRecordUUID = _ChangeRecordObjPg.ChangeRecordUUID |
| [1..1] | C_ChangeRecordItemRelDocVH | _ChangeRecordItemRelDocVH | $projection.ChangeRecordItemRelevance = _ChangeRecordItemRelDocVH.ChangeRecordItemRelevance and $projection.ChangeRecordType = _ChangeRecordItemRelDocVH.ChangeRecordType and $projection.ChangeRecordReferenceType = _ChangeRecordItemRelDocVH.ChangeRecordReferenceType |
| [0..1] | I_ChangeRecordDocStatus | _ChangeRecordDocStatus | $projection.DocumentType = _ChangeRecordDocStatus.DocumentType and $projection.DocumentInfoRecord = _ChangeRecordDocStatus.DocumentInfoRecord and $projection.DocumentVersion = _ChangeRecordDocStatus.DocumentVersion and $projection.DocumentPart = _ChangeRecordDocStatus.DocumentPart --Get Document Type |
| [1..1] | I_DocumentInfoRecordDocType | _DocumentType | $projection.DocumentType = _DocumentType.DocumentInfoRecordDocType --Get Document Part |
| [1..1] | I_ChangeRecordDocPart | _DocumentPart | $projection.DocumentType = _DocumentPart.DocumentType and $projection.DocumentPart = _DocumentPart.DocumentPart and $projection.DocumentInfoRecord = _DocumentPart.DocumentInfoRecord and $projection.DocumentVersion = _DocumentPart.DocumentVersion |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | NCHGRCDOBJPGDOC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Change Record Reference Object Document | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| VDM.auxiliaryEntity.for.entity | C_ChangeRecordObjPgDoc | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChangeRecordReferenceUUID | ChangeRecordReferenceUUID | UUID | |
| DocumentInfoRecord | I_DocumentInfoRecord | DocumentInfoRecordDocNumber | Document | |
| DocumentType | I_DocumentInfoRecord | DocumentInfoRecordDocType | Document Type | |
| DocumentPart | I_DocumentInfoRecord | DocumentInfoRecordDocPart | Document Part | |
| DocumentVersion | I_DocumentInfoRecord | DocumentInfoRecordDocVersion | Doc. Version | |
| 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 | I_ChgRecdRefDocBsc | CreatedByUser | User Name | |
| CreationDateTime | I_ChgRecdRefDocBsc | CreationDateTime | Timestamp | |
| ExternalDocumentStatus | ||||
| DocumentStatusName | ||||
| DocumentDescription | _DocumentPart | DocumentDescription | Doc. Name | |
| ChangeRecordItemRelevance | ||||
| _ChangeRecordItemRelDocVH | _ChangeRecordItemRelDocVH | |||
| _DocumentType | _DocumentType | |||
| _DocumentPart | _DocumentPart |
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_ChangeRecordObjPgDoc.
-- 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: NCHGRCDOBJPGDOC
CREATE VIEW N_ChangeRecordObjPgDoc AS
SELECT
ChangeRecordReferenceUUID,
Document.DocumentInfoRecordDocNumber AS DocumentInfoRecord,
Document.DocumentInfoRecordDocType AS DocumentType,
Document.DocumentInfoRecordDocPart AS DocumentPart,
Document.DocumentInfoRecordDocVersion AS DocumentVersion,
_ChangeRecordObjPg.ChangeRecordType AS ChangeRecordType,
ChangeRecordUUID,
ChangeRecordReferenceType,
ChangeRecordReferenceSubtype,
ChangeRecordReference,
ParentChangeRecordRefUUID,
IsMainReference,
reference_DOC.CreatedByUser AS CreatedByUser,
reference_DOC.CreationDateTime AS CreationDateTime,
_ChangeRecordDocStatus._DocStatus._Text[1:Language = $session.system_language].ExternalDocumentStatus AS ExternalDocumentStatus,
_ChangeRecordDocStatus._DocStatus._Text[1:Language = $session.system_language].DocumentStatusName AS DocumentStatusName,
_DocumentPart.DocumentDescription AS DocumentDescription
FROM I_ChgRecdRefDocBsc AS reference_DOC
LEFT OUTER JOIN I_DocumentInfoRecord AS Document 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_ChangeRecordItemRelDocVH AS _ChangeRecordItemRelDocVH ON ChangeRecordItemRelevance = _ChangeRecordItemRelDocVH.ChangeRecordItemRelevance AND ChangeRecordType = _ChangeRecordItemRelDocVH.ChangeRecordType AND ChangeRecordReferenceType = _ChangeRecordItemRelDocVH.ChangeRecordReferenceType -- association [1..1]
LEFT OUTER JOIN I_ChangeRecordDocStatus AS _ChangeRecordDocStatus ON DocumentType = _ChangeRecordDocStatus.DocumentType AND DocumentInfoRecord = _ChangeRecordDocStatus.DocumentInfoRecord AND DocumentVersion = _ChangeRecordDocStatus.DocumentVersion AND DocumentPart = _ChangeRecordDocStatus.DocumentPart -- association [0..1]
LEFT OUTER JOIN I_DocumentInfoRecordDocType AS _DocumentType ON DocumentType = _DocumentType.DocumentInfoRecordDocType -- association [1..1]
LEFT OUTER JOIN I_ChangeRecordDocPart AS _DocumentPart ON DocumentType = _DocumentPart.DocumentType AND DocumentPart = _DocumentPart.DocumentPart AND DocumentInfoRecord = _DocumentPart.DocumentInfoRecord AND DocumentVersion = _DocumentPart.DocumentVersion -- association [1..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