P_DocumentInfoRecord
P_DocumentInfoRecord is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_DocumentInfoRecordDetail) and exposes 22 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocVersion, DocumentInfoRecordDocNumber, DocumentInfoRecordDocPart.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DocumentInfoRecordDetail | _document | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCVDOCINFOREC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentInfoRecordDocType | I_DocumentInfoRecordDetail | DocumentInfoRecordDocType | Document Type |
| KEY | DocumentInfoRecordDocVersion | I_DocumentInfoRecordDetail | DocumentInfoRecordDocVersion | Doc. Version |
| KEY | DocumentInfoRecordDocNumber | I_DocumentInfoRecordDetail | DocumentInfoRecordDocNumber | Document |
| KEY | DocumentInfoRecordDocPart | I_DocumentInfoRecordDetail | DocumentInfoRecordDocPart | Document Part |
| DocumentInfoRecord | I_DocumentInfoRecordDetail | DocumentInfoRecord | Document | |
| char70asDocumentInfoRecordDocKey | ||||
| InternalDocumentStatus | I_DocumentInfoRecordDetail | InternalDocumentStatus | Status | |
| LaboratoryOrDesignOffice | I_DocumentInfoRecordDetail | LaboratoryOrDesignOffice | Lab/Office | |
| Plant | I_DocumentInfoRecordDetail | Plant | Valuation Area | |
| AuthorizationGroup | I_DocumentInfoRecordDetail | AuthorizationGroup | AuthorizGroup | |
| ChangeNumber | I_DocumentInfoRecordDetail | ChangeNumber | Change Number | |
| DocInfoRecdIsMarkedForDeletion | I_DocumentInfoRecordDetail | DocInfoRecdIsMarkedForDeletion | Deletion ind. | |
| IsDocInfoRecdCreatedFromCAD | I_DocumentInfoRecordDetail | IsDocInfoRecdCreatedFromCAD | CAD Indicator | |
| DocInfoRecdSourceDocNumber | I_DocumentInfoRecordDetail | DocInfoRecdSourceDocNumber | DSource Doc. | |
| DocInfoRecdSourceDocPart | I_DocumentInfoRecordDetail | DocInfoRecdSourceDocPart | Source doc. part | |
| DocInfoRecdSourceDocVersion | I_DocumentInfoRecordDetail | DocInfoRecdSourceDocVersion | Source version | |
| ResponsiblePersonName | I_DocumentInfoRecordDetail | ResponsiblePersonName | User | |
| DocumentInfoRecordIsFrozen | I_DocumentInfoRecordDetail | DocumentInfoRecordIsFrozen | ||
| CreationDateTime | _Last_Change | CreationDateTime | Timestamp | |
| CreatedByUser | _Last_Change | CreatedByUser | User Name | |
| ChangedDateTime | _Last_Change | ChangedDateTime | Time Stamp | |
| LastChangedByUser | _Last_Change | LastChangedByUser | User Name |
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 P_DocumentInfoRecord.
-- 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: PCVDOCINFOREC
CREATE VIEW P_DocumentInfoRecord AS
SELECT
_document.DocumentInfoRecordDocType AS DocumentInfoRecordDocType,
_document.DocumentInfoRecordDocVersion AS DocumentInfoRecordDocVersion,
_document.DocumentInfoRecordDocNumber AS DocumentInfoRecordDocNumber,
_document.DocumentInfoRecordDocPart AS DocumentInfoRecordDocPart,
_document.DocumentInfoRecord AS DocumentInfoRecord,
cast( replace( replace ( concat( concat( concat( _document.DocumentInfoRecordDocType, rpad(_document.DocumentInfoRecordDocNumber, 25, '#') ), _document.DocumentInfoRecordDocPart ), _document.DocumentInfoRecordDocVersion ) , '#', ' #' ) , '#', '' ) as abap.char(70) ) as DocumentInfoRecordDocKey AS char70asDocumentInfoRecordDocKey,
_document.InternalDocumentStatus AS InternalDocumentStatus,
_document.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
_document.Plant AS Plant,
_document.AuthorizationGroup AS AuthorizationGroup,
_document.ChangeNumber AS ChangeNumber,
_document.DocInfoRecdIsMarkedForDeletion AS DocInfoRecdIsMarkedForDeletion,
_document.IsDocInfoRecdCreatedFromCAD AS IsDocInfoRecdCreatedFromCAD,
_document.DocInfoRecdSourceDocNumber AS DocInfoRecdSourceDocNumber,
_document.DocInfoRecdSourceDocPart AS DocInfoRecdSourceDocPart,
_document.DocInfoRecdSourceDocVersion AS DocInfoRecdSourceDocVersion,
_document.ResponsiblePersonName AS ResponsiblePersonName,
_document.DocumentInfoRecordIsFrozen AS DocumentInfoRecordIsFrozen,
_Last_Change.CreationDateTime AS CreationDateTime,
_Last_Change.CreatedByUser AS CreatedByUser,
_Last_Change.ChangedDateTime AS ChangedDateTime,
_Last_Change.LastChangedByUser AS LastChangedByUser
FROM I_DocumentInfoRecordDetail AS _document
;
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