C_DocInfoRecd
Document Info Record Header Details
C_DocInfoRecd is a Consumption CDS View that provides data about "Document Info Record Header Details" in SAP S/4HANA. It reads from 1 data source (I_DocInfoRecd) and exposes 36 fields. It has 12 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DocInfoRecd | document | from |
Associations (12)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_DocInfoRecdDocumentType | _DocumentType | $projection.DocumentType = _DocumentType.DocumentType --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 Document Status Search Help |
| [1..1] | I_DocInfoRecdStatusSearchHelp | _DocumentStatusHelp | $projection.ExternalDocumentStatus = _DocumentStatusHelp.ExternalDocumentStatus and $projection.InternalDocumentStatus = _DocumentStatusHelp.InternalDocumentStatus --Get Document Status Text |
| [0..*] | I_DocInfoRecdDocumentStatus | _StatusText | $projection.DocumentType = _StatusText.DocumentType and $projection.InternalDocumentStatus = _StatusText.InternalDocumentStatus --Get Responsible user full name |
| [1..1] | I_User | _UserDetails | $projection.ResponsiblePersonName = _UserDetails.UserID -- DIR Description |
| [0..*] | I_DocInfoRecdDescription | _DocumentDescription | $projection.DocumentPart = _DocumentDescription.DocumentPart and $projection.DocumentType = _DocumentDescription.DocumentType and $projection.DocumentVersion = _DocumentDescription.DocumentVersion and $projection.DocumentInfoRecord = _DocumentDescription.DocumentInfoRecord and $projection.DocInfoRecdShortText = _DocumentDescription.DocumentDescription -- DIR Objectlink cont and description |
| [0..*] | C_DocInfoRecdObjectLink | _ObjectLink | $projection.DocumentPart = _ObjectLink.DocumentPart and $projection.DocumentType = _ObjectLink.DocumentType and $projection.DocumentVersion = _ObjectLink.DocumentVersion and $projection.DocumentInfoRecord = _ObjectLink.DocumentInfoRecord --Get Document Type Text |
| [0..*] | I_DocInfoRecdDocumentTypeText | _DocumentTypeText | $projection.DocumentType = _DocumentTypeText.DocumentType --Get Lab office |
| [1..1] | I_DocInfoRecdLabOffice | _LabOffice | $projection.LaboratoryOrDesignOffice = _LabOffice.LaboratoryOrDesignOffice --Get Change Number |
| [1..1] | I_ChangeMaster | _ChangeNumber | $projection.ChangeNumber = _ChangeNumber.ChangeNumber --Get Authorization Group |
| [1..1] | I_DocInfoRecdAuthGroup | _AuthGroup | $projection.AuthorizationGroup = _AuthGroup.AuthorizationGroup --Get Delete, CAD, Structure Description |
| [1..1] | I_DocInfoRecdIndicatorStatus | _Indicators | $projection.DocumentType = _Indicators.DocumentType and $projection.DocumentInfoRecord = _Indicators.DocumentInfoRecord and $projection.DocumentVersion = _Indicators.DocumentVersion and $projection.DocumentPart = _Indicators.DocumentPart |
Annotations (18)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCVDOCINFORECD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| Search.searchable | true | view | |
| EndUserText.label | Document Info Record Header Details | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.writeEnabled | true | view | |
| UI.headerInfo.typeName | Document Management | view | |
| UI.headerInfo.typeNamePlural | Documents | view | |
| UI.headerInfo.title.value | DocumentInfoRecord | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | C_DocumentInfoRecordTP | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| DocumentInfoRecordasDocumentInfoRecord | Document Number | |||
| DocumentTypeasDocumentType | Document Type | |||
| DocumentVersionasDocumentVersion | Document Version | |||
| DocumentPartasDocumentPart | Document Part | |||
| DocumentDescriptionasDocumentDescription | ||||
| DocInfoRecdShortText | _DocumentPart | DocumentDescription | Document Description | |
| InternalDocumentStatus | I_DocInfoRecd | InternalDocumentStatus | Internal Document Status | |
| DeleteStatusDescription | Delete Status Description | |||
| DocInfoRecdStrucDescription | Document Structure Status Description | |||
| CADStatusDescription | CAD Status Description | |||
| DocumentStatusNameasDocumentStatusName | ||||
| DocumentStatusName2asDocumentStatusDesc | Document Status Description | |||
| ChangeNumberasChangeNumber | ||||
| AuthorizationGroupasAuthorizationGroup | ||||
| CreationDateTimeasCreationDateTime | ||||
| CreatedByUserasCreatedByUser | Created By User | |||
| UserDescriptionasCreatedByUserFullName | Created By User Full Name | |||
| ChangedDateTimeasChangedDateTime | ||||
| LastChangedByUserasLastChangedByUser | Last Changed By User | |||
| Associations_DocumentType | ||||
| _DocumentPart | _DocumentPart | |||
| _DocumentStatusHelp | _DocumentStatusHelp | |||
| _StatusText | _StatusText | |||
| _UserDetails | _UserDetails | |||
| _CreatedUser | _CreatedUser | |||
| _ChangedUser | _ChangedUser | |||
| _ChangedUserVH | I_DocInfoRecd | _ChangedUserVH | ||
| _CreatedUserVH | I_DocInfoRecd | _CreatedUserVH | ||
| _UserDetailsVH | I_DocInfoRecd | _UserDetailsVH | ||
| _DocumentDescription | _DocumentDescription | |||
| _ObjectLink | _ObjectLink | |||
| _DocumentTypeText | _DocumentTypeText | |||
| _LabOffice | _LabOffice | |||
| _ChangeNumber | _ChangeNumber | |||
| _AuthGroup | _AuthGroup | |||
| _Indicators | _Indicators |
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 C_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: CCVDOCINFORECD
CREATE VIEW C_DocInfoRecd AS
SELECT
_DocumentPart.DocumentDescription AS DocInfoRecdShortText,
document.InternalDocumentStatus AS InternalDocumentStatus,
_Indicators._IndicatorText.DeleteStatusDescription AS DeleteStatusDescription,
_Indicators._IndicatorText.DocInfoRecdStrucDescription AS DocInfoRecdStrucDescription,
_Indicators._IndicatorText.CADStatusDescription AS CADStatusDescription,
Document._ChangedUserVH AS _ChangedUserVH,
Document._CreatedUserVH AS _CreatedUserVH,
Document._UserDetailsVH AS _UserDetailsVH
FROM I_DocInfoRecd AS document
LEFT OUTER JOIN I_DocInfoRecdDocumentType AS _DocumentType ON DocumentType = _DocumentType.DocumentType -- 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_DocInfoRecdStatusSearchHelp AS _DocumentStatusHelp ON ExternalDocumentStatus = _DocumentStatusHelp.ExternalDocumentStatus AND InternalDocumentStatus = _DocumentStatusHelp.InternalDocumentStatus -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdDocumentStatus AS _StatusText ON DocumentType = _StatusText.DocumentType AND InternalDocumentStatus = _StatusText.InternalDocumentStatus -- association [0..*]
LEFT OUTER JOIN I_User AS _UserDetails ON ResponsiblePersonName = _UserDetails.UserID -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdDescription AS _DocumentDescription ON DocumentPart = _DocumentDescription.DocumentPart AND DocumentType = _DocumentDescription.DocumentType AND DocumentVersion = _DocumentDescription.DocumentVersion AND DocumentInfoRecord = _DocumentDescription.DocumentInfoRecord AND DocInfoRecdShortText = _DocumentDescription.DocumentDescription -- association [0..*]
LEFT OUTER JOIN C_DocInfoRecdObjectLink AS _ObjectLink ON DocumentPart = _ObjectLink.DocumentPart AND DocumentType = _ObjectLink.DocumentType AND DocumentVersion = _ObjectLink.DocumentVersion AND DocumentInfoRecord = _ObjectLink.DocumentInfoRecord -- association [0..*]
LEFT OUTER JOIN I_DocInfoRecdDocumentTypeText AS _DocumentTypeText ON DocumentType = _DocumentTypeText.DocumentType -- association [0..*]
LEFT OUTER JOIN I_DocInfoRecdLabOffice AS _LabOffice ON LaboratoryOrDesignOffice = _LabOffice.LaboratoryOrDesignOffice -- association [1..1]
LEFT OUTER JOIN I_ChangeMaster AS _ChangeNumber ON ChangeNumber = _ChangeNumber.ChangeNumber -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdAuthGroup AS _AuthGroup ON AuthorizationGroup = _AuthGroup.AuthorizationGroup -- association [1..1]
LEFT OUTER JOIN I_DocInfoRecdIndicatorStatus AS _Indicators ON DocumentType = _Indicators.DocumentType AND DocumentInfoRecord = _Indicators.DocumentInfoRecord AND DocumentVersion = _Indicators.DocumentVersion AND DocumentPart = _Indicators.DocumentPart -- 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