I_DocInfoRecd
Document Info Record Details
I_DocInfoRecd is a Basic CDS View (Dimension) that provides data about "Document Info Record Details" in SAP S/4HANA. It reads from 1 data source (P_DocInfoRecd) and exposes 27 fields with key fields DocumentType, DocumentInfoRecord, DocumentVersion, DocumentPart. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_DocInfoRecd | Doc_Info | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_DocInfoRecdDocumentType | _DocumentType | $projection.DocumentType = _DocumentType.DocumentType --Get Document Number |
| [1..1] | I_DocInfoRecdNumber | _DocumentNumber | $projection.DocumentType = _DocumentNumber.DocumentType and $projection.DocumentInfoRecord = _DocumentNumber.DocumentInfoRecord --Get Document Version |
| [1..1] | I_DocInfoRecdDocumentVersion | _DocumentVersion | $projection.DocumentType = _DocumentVersion.DocumentType and $projection.DocumentInfoRecord = _DocumentVersion.DocumentInfoRecord and $projection.DocumentVersion = _DocumentVersion.DocumentVersion --Get Document Part |
| [1..1] | I_DocInfoRecdDocumentPart | _DocumentPart | $projection.DocumentType = _DocumentPart.DocumentType and $projection.DocumentPart = _DocumentPart.DocumentPart and $projection.DocumentInfoRecord = _DocumentPart.DocumentInfoRecord and $projection.DocumentVersion = _DocumentPart.DocumentVersion --Get Responsible user full name |
| [0..1] | I_User | _UserDetails | $projection.ResponsiblePersonName = _UserDetails.UserID --Get DIR created user full name |
| [0..1] | I_User | _CreatedUser | $projection.CreatedByUser = _CreatedUser.UserID --Get DIR changed user full name |
| [0..1] | I_User | _ChangedUser | $projection.LastChangedByUser = _ChangedUser.UserID --Get DocumentInfoRecord created user value help |
| [1..1] | I_DocumentInfoRecordUserVH | _CreatedUserVH | $projection.DocumentType = _CreatedUserVH.DocumentInfoRecordDocType and $projection.DocumentPart = _CreatedUserVH.DocumentInfoRecordDocPart and $projection.DocumentInfoRecord = _CreatedUserVH.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _CreatedUserVH.DocumentInfoRecordDocVersion and $projection.CreatedByUser = _CreatedUserVH.ResponsiblePersonName --Get DocumentInfoRecord changed user value help |
| [1..1] | I_DocumentInfoRecordUserVH | _ChangedUserVH | $projection.DocumentType = _ChangedUserVH.DocumentInfoRecordDocType and $projection.DocumentPart = _ChangedUserVH.DocumentInfoRecordDocPart and $projection.DocumentInfoRecord = _ChangedUserVH.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _ChangedUserVH.DocumentInfoRecordDocVersion and $projection.LastChangedByUser = _ChangedUserVH.LastChangedByUser --Get DocumentInfoRecord Responsible user value help |
| [1..1] | I_DocumentInfoRecordUserVH | _UserDetailsVH | $projection.DocumentType = _UserDetailsVH.DocumentInfoRecordDocType and $projection.DocumentPart = _UserDetailsVH.DocumentInfoRecordDocPart and $projection.DocumentInfoRecord = _UserDetailsVH.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _UserDetailsVH.DocumentInfoRecordDocVersion and $projection.ResponsiblePersonName = _UserDetailsVH.ResponsiblePersonName |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICVDOCINFORECD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | DocumentPart | view | |
| Metadata.allowExtensions | true | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Document Info Record Details | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_DocumentInfoRecord | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentType | P_DocInfoRecd | DocumentType | Order Type |
| KEY | DocumentInfoRecord | P_DocInfoRecd | DocumentInfoRecord | Document |
| KEY | DocumentVersion | P_DocInfoRecd | DocumentVersion | Docu. Version |
| KEY | DocumentPart | P_DocInfoRecd | DocumentPart | Document Part |
| DocInfoRecdIsMarkedForDeletion | P_DocInfoRecd | DocInfoRecdIsMarkedForDeletion | Deletion ind. | |
| IsDocInfoRecdStructure | P_DocInfoRecd | IsDocInfoRecdStructure | ||
| DocumentIsCreatedByCAD | P_DocInfoRecd | DocumentIsCreatedByCAD | CAD Indicator | |
| DocInfoRecdHierarchy | P_DocInfoRecd | DocInfoRecdHierarchy | ||
| InternalDocumentStatus | P_DocInfoRecd | InternalDocumentStatus | Status | |
| ChangeNumber | P_DocInfoRecd | ChangeNumber | Change Number | |
| LaboratoryOrDesignOffice | P_DocInfoRecd | LaboratoryOrDesignOffice | Lab/Office | |
| AuthorizationGroup | P_DocInfoRecd | AuthorizationGroup | AuthorizGroup | |
| ResponsiblePersonName | P_DocInfoRecd | ResponsiblePersonName | User | |
| CreationDateTime | P_DocInfoRecd | CreationDateTime | Timestamp | |
| CreatedByUser | P_DocInfoRecd | CreatedByUser | User Name | |
| ChangedDateTime | P_DocInfoRecd | ChangedDateTime | Time Stamp | |
| LastChangedByUser | P_DocInfoRecd | LastChangedByUser | User Name | |
| _DocumentType | _DocumentType | |||
| _DocumentVersion | _DocumentVersion | |||
| _DocumentNumber | _DocumentNumber | |||
| _DocumentPart | _DocumentPart | |||
| _UserDetails | _UserDetails | |||
| _CreatedUser | _CreatedUser | |||
| _ChangedUser | _ChangedUser | |||
| _CreatedUserVH | _CreatedUserVH | |||
| _ChangedUserVH | _ChangedUserVH | |||
| _UserDetailsVH | _UserDetailsVH |
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_DocInfoRecd.
-- 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: ICVDOCINFORECD
CREATE VIEW I_DocInfoRecd AS
SELECT
Doc_Info.DocumentType AS DocumentType,
Doc_Info.DocumentInfoRecord AS DocumentInfoRecord,
Doc_Info.DocumentVersion AS DocumentVersion,
Doc_Info.DocumentPart AS DocumentPart,
Doc_Info.DocInfoRecdIsMarkedForDeletion AS DocInfoRecdIsMarkedForDeletion,
Doc_Info.IsDocInfoRecdStructure AS IsDocInfoRecdStructure,
Doc_Info.DocumentIsCreatedByCAD AS DocumentIsCreatedByCAD,
Doc_Info.DocInfoRecdHierarchy AS DocInfoRecdHierarchy,
Doc_Info.InternalDocumentStatus AS InternalDocumentStatus,
Doc_Info.ChangeNumber AS ChangeNumber,
Doc_Info.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
Doc_Info.AuthorizationGroup AS AuthorizationGroup,
Doc_Info.ResponsiblePersonName AS ResponsiblePersonName,
Doc_Info.CreationDateTime AS CreationDateTime,
Doc_Info.CreatedByUser AS CreatedByUser,
Doc_Info.ChangedDateTime AS ChangedDateTime,
Doc_Info.LastChangedByUser AS LastChangedByUser
FROM P_DocInfoRecd AS Doc_Info
LEFT OUTER JOIN I_DocInfoRecdDocumentType AS _DocumentType ON DocumentType = _DocumentType.DocumentType -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdNumber AS _DocumentNumber ON DocumentType = _DocumentNumber.DocumentType AND DocumentInfoRecord = _DocumentNumber.DocumentInfoRecord -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdDocumentVersion AS _DocumentVersion ON DocumentType = _DocumentVersion.DocumentType AND DocumentInfoRecord = _DocumentVersion.DocumentInfoRecord AND DocumentVersion = _DocumentVersion.DocumentVersion -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdDocumentPart AS _DocumentPart ON DocumentType = _DocumentPart.DocumentType AND DocumentPart = _DocumentPart.DocumentPart AND DocumentInfoRecord = _DocumentPart.DocumentInfoRecord AND DocumentVersion = _DocumentPart.DocumentVersion -- association [1..1]
LEFT OUTER JOIN I_User AS _UserDetails ON ResponsiblePersonName = _UserDetails.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedUser ON CreatedByUser = _CreatedUser.UserID -- association [0..1]
LEFT OUTER JOIN I_User AS _ChangedUser ON LastChangedByUser = _ChangedUser.UserID -- association [0..1]
LEFT OUTER JOIN I_DocumentInfoRecordUserVH AS _CreatedUserVH ON DocumentType = _CreatedUserVH.DocumentInfoRecordDocType AND DocumentPart = _CreatedUserVH.DocumentInfoRecordDocPart AND DocumentInfoRecord = _CreatedUserVH.DocumentInfoRecordDocNumber AND DocumentVersion = _CreatedUserVH.DocumentInfoRecordDocVersion AND CreatedByUser = _CreatedUserVH.ResponsiblePersonName -- association [1..1]
LEFT OUTER JOIN I_DocumentInfoRecordUserVH AS _ChangedUserVH ON DocumentType = _ChangedUserVH.DocumentInfoRecordDocType AND DocumentPart = _ChangedUserVH.DocumentInfoRecordDocPart AND DocumentInfoRecord = _ChangedUserVH.DocumentInfoRecordDocNumber AND DocumentVersion = _ChangedUserVH.DocumentInfoRecordDocVersion AND LastChangedByUser = _ChangedUserVH.LastChangedByUser -- association [1..1]
LEFT OUTER JOIN I_DocumentInfoRecordUserVH AS _UserDetailsVH ON DocumentType = _UserDetailsVH.DocumentInfoRecordDocType AND DocumentPart = _UserDetailsVH.DocumentInfoRecordDocPart AND DocumentInfoRecord = _UserDetailsVH.DocumentInfoRecordDocNumber AND DocumentVersion = _UserDetailsVH.DocumentInfoRecordDocVersion AND ResponsiblePersonName = _UserDetailsVH.ResponsiblePersonName -- association [1..1]
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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