I_DocInfoRecdDescription
Document Info Record Description
I_DocInfoRecdDescription is a Basic CDS View that provides data about "Document Info Record Description" in SAP S/4HANA. It reads from 1 data source (drat) and exposes 13 fields with key fields DocumentType, DocumentInfoRecord, DocumentVersion, DocumentPart, Language. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| drat | documentdesc | from |
Associations (5)
| 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 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 Version |
| [1..1] | I_DocInfoRecdDocumentVersion | _DocumentVersion | $projection.DocumentType = _DocumentVersion.DocumentType and $projection.DocumentInfoRecord = _DocumentVersion.DocumentInfoRecord and $projection.DocumentVersion = _DocumentVersion.DocumentVersion |
| [1..1] | I_Language | _Language | $projection.Language = _Language.Language |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICVDOCINFRECDESC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | DocumentDescription | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Document Info Record Description | view | |
| Search.searchable | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_DocumentInfoRecordDesc | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentType | drat | dokar | |
| KEY | DocumentInfoRecord | drat | doknr | |
| KEY | DocumentVersion | drat | dokvr | |
| KEY | DocumentPart | drat | doktl | |
| KEY | Language | drat | langu | |
| KEY | DocumentDescription | drat | dktxt | Document Description |
| LongTextExists | drat | ltxin | ||
| DocInfoRecdShortText | drat | dktxt_uc | Document Short Description | |
| _Language | _Language | |||
| _DocumentType | _DocumentType | |||
| _DocumentVersion | _DocumentVersion | |||
| _DocumentPart | _DocumentPart | |||
| _DocumentNumber | _DocumentNumber |
@AbapCatalog.sqlViewName:'ICVDOCINFRECDESC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.dataCategory: #TEXT
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey:'DocumentDescription'
@Analytics: { dataExtraction.enabled: true }
@ObjectModel.usageType: { serviceQuality: #A, sizeCategory: #L, dataClass: #TRANSACTIONAL }
@EndUserText.label: 'Document Info Record Description'
@Search.searchable: true
@VDM.lifecycle: {
contract: {
type: #PUBLIC_LOCAL_API
},
status: #DEPRECATED,
successor: 'I_DocumentInfoRecordDesc'
}
@Metadata.ignorePropagatedAnnotations:true
define view I_DocInfoRecdDescription
as select from drat as documentdesc
--Get Document Type Association
association [1..1] to I_DocInfoRecdDocumentType as _DocumentType on $projection.DocumentType = _DocumentType.DocumentType
--Get Document Number Association
association [1..1] to I_DocInfoRecdNumber as _DocumentNumber on $projection.DocumentType = _DocumentNumber.DocumentType
and $projection.DocumentInfoRecord = _DocumentNumber.DocumentInfoRecord
--Get Document Part Association
association [1..1] to I_DocInfoRecdDocumentPart as _DocumentPart on $projection.DocumentType = _DocumentPart.DocumentType
and $projection.DocumentPart = _DocumentPart.DocumentPart
and $projection.DocumentInfoRecord = _DocumentPart.DocumentInfoRecord
and $projection.DocumentVersion = _DocumentPart.DocumentVersion
--Get Document Version Association
association [1..1] to I_DocInfoRecdDocumentVersion as _DocumentVersion on $projection.DocumentType = _DocumentVersion.DocumentType
and $projection.DocumentInfoRecord = _DocumentVersion.DocumentInfoRecord
and $projection.DocumentVersion = _DocumentVersion.DocumentVersion
association [1..1] to I_Language as _Language on $projection.Language = _Language.Language
{
@ObjectModel.foreignKey.association: '_DocumentType'
key documentdesc.dokar as DocumentType,
@ObjectModel.foreignKey.association: '_DocumentNumber'
key documentdesc.doknr as DocumentInfoRecord,
@ObjectModel.foreignKey.association: '_DocumentVersion'
key documentdesc.dokvr as DocumentVersion,
@ObjectModel.foreignKey.association: '_DocumentPart'
key documentdesc.doktl as DocumentPart,
@UI.hidden: true
@Semantics.language: true
@ObjectModel.foreignKey.association: '_Language'
key documentdesc.langu as Language,
@Semantics.text: true
@EndUserText.label:'Document Description'
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
@Search.fuzzinessThreshold: 0.8
key documentdesc.dktxt as DocumentDescription,
@UI.hidden: true
documentdesc.ltxin as LongTextExists,
// DMS: short texts in capital letters
@UI.hidden: true
@EndUserText.label:'Document Short Description'
documentdesc.dktxt_uc as DocInfoRecdShortText,
// Associations
_Language,
_DocumentType,
_DocumentVersion,
_DocumentPart,
_DocumentNumber
}
//where
//documentdesc.langu = $session.system_language
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DRAT"
],
"ASSOCIATED":
[
"I_DOCINFORECDDOCUMENTPART",
"I_DOCINFORECDDOCUMENTTYPE",
"I_DOCINFORECDDOCUMENTVERSION",
"I_DOCINFORECDNUMBER",
"I_LANGUAGE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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