I_DocInfoRecdObjectLink
Document Info Record Object Link Details
I_DocInfoRecdObjectLink is a Basic CDS View (Dimension) that provides data about "Document Info Record Object Link Details" in SAP S/4HANA. It reads from 2 data sources (drad_last_change, P_DocInfoRecdObjectLink) and exposes 29 fields with key fields LinkedSAPObjectKey, DocumentType, DocumentInfoRecord, DocumentPart, DocumentVersion. It has 8 associations to related views. Part of development package CV_VDM.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| drad_last_change | LastChange | left_outer |
| P_DocInfoRecdObjectLink | ObjectLinks | from |
Associations (8)
| 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.DocumentPart = _DocumentPart.DocumentPart and $projection.DocumentType = _DocumentPart.DocumentType and $projection.DocumentInfoRecord = _DocumentPart.DocumentInfoRecord and $projection.DocumentVersion = _DocumentPart.DocumentVersion --Get Document type description |
| [0..*] | I_DocInfoRecdDocumentTypeText | _DocumentTypeDescription | $projection.DocumentType = _DocumentTypeDescription.DocumentType --Get Linked object description |
| [0..*] | I_DocInfoRecdObjectLinkText | _LinkedObjectDesc | $projection.LinkedSAPObject = _LinkedObjectDesc.LinkedSAPObject --Get DocumentInfoRecord created user value help |
| [1..1] | I_DocumentInfoRecordUserVH | _CreatedUser | $projection.DocumentType = _CreatedUser.DocumentInfoRecordDocType and $projection.DocumentPart = _CreatedUser.DocumentInfoRecordDocPart and $projection.DocumentInfoRecord = _CreatedUser.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _CreatedUser.DocumentInfoRecordDocVersion and $projection.CreatedByUser = _CreatedUser.ResponsiblePersonName --Get DocumentInfoRecord changed user value help |
| [1..1] | I_DocumentInfoRecordUserVH | _ChangedUser | $projection.DocumentType = _ChangedUser.DocumentInfoRecordDocType and $projection.DocumentPart = _ChangedUser.DocumentInfoRecordDocPart and $projection.DocumentInfoRecord = _ChangedUser.DocumentInfoRecordDocNumber and $projection.DocumentVersion = _ChangedUser.DocumentInfoRecordDocVersion and $projection.ChangedBy = _ChangedUser.LastChangedByUser |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICVDOCOBJLINK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | 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 Object Link Details | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_DocumentInfoRecordObjectLink | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | LinkedSAPObjectKey | P_DocInfoRecdObjectLink | LinkedSAPObjectKey | |
| KEY | DocumentType | P_DocInfoRecdObjectLink | DocumentType | |
| KEY | DocumentInfoRecord | P_DocInfoRecdObjectLink | DocumentInfoRecord | |
| KEY | DocumentPart | P_DocInfoRecdObjectLink | DocumentPart | |
| KEY | DocumentVersion | P_DocInfoRecdObjectLink | DocumentVersion | |
| KEY | LinkedSAPObject | P_DocInfoRecdObjectLink | LinkedSAPObject | |
| DocObjectLinkCounter | P_DocInfoRecdObjectLink | DocObjectLinkCounter | ||
| CreationDateTime | drad_last_change | created_at | ||
| CreatedByUser | drad_last_change | created_by | ||
| ChangedDateTime | drad_last_change | changed_at | ||
| ChangedBy | drad_last_change | changed_by | ||
| DocInfoRecdLinkStatus | P_DocInfoRecdObjectLink | DocInfoRecdLinkStatus | ||
| DocInfoRecdObjectLinkStatus | P_DocInfoRecdObjectLink | DocInfoRecdObjectLinkStatus | ||
| ObjectTypeDatabaseTable | P_DocInfoRecdObjectLink | ObjectTypeDatabaseTable | ||
| DocInfoRecdAdditionalObjectKey | P_DocInfoRecdObjectLink | DocInfoRecdAdditionalObjectKey | ||
| DocLinkDirectionIsActive | P_DocInfoRecdObjectLink | DocLinkDirectionIsActive | ||
| IsDefaultDocument | P_DocInfoRecdObjectLink | IsDefaultDocument | ||
| DocInfoRecdIsMarkedForDeletion | P_DocInfoRecdObjectLink | DocInfoRecdIsDeleted | Deletion Indicator | |
| DocInfoRecdLongTextUUID | P_DocInfoRecdObjectLink | DocInfoRecdLongTextUUID | ||
| DocumentIsCreatedByCAD | P_DocInfoRecdObjectLink | DocumentIsCreatedByCAD | CAD Indicator | |
| DocInfoRecdConfignMgmtFixed | P_DocInfoRecdObjectLink | DocInfoRecdConfignMgmtFixed | ||
| _DocumentTypeDescription | _DocumentTypeDescription | |||
| _LinkedObjectDesc | _LinkedObjectDesc | |||
| _CreatedUser | _CreatedUser | |||
| _ChangedUser | _ChangedUser | |||
| _DocumentNumber | _DocumentNumber | |||
| _DocumentType | _DocumentType | |||
| _DocumentVersion | _DocumentVersion | |||
| _DocumentPart | _DocumentPart |
@AbapCatalog.sqlViewName: 'ICVDOCOBJLINK'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #BASIC
@ClientHandling.algorithm: #SESSION_VARIABLE
//@ObjectModel.representativeKey:'LinkedSAPObjectKey'
@Metadata.allowExtensions: true
@Analytics: { dataCategory: #DIMENSION, dataExtraction.enabled: true }
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MIXED}
@EndUserText.label: 'Document Info Record Object Link Details'
@VDM.lifecycle: {
contract: {
type: #SAP_INTERNAL_API
},
status: #DEPRECATED,
successor: 'I_DocumentInfoRecordObjectLink'
}
@Metadata.ignorePropagatedAnnotations:true
define view I_DocInfoRecdObjectLink
as select from P_DocInfoRecdObjectLink as ObjectLinks
left outer join drad_last_change as LastChange on ObjectLinks.DocumentType = LastChange.dokar
and ObjectLinks.DocumentInfoRecord = LastChange.doknr
and ObjectLinks.DocumentVersion = LastChange.dokvr
and ObjectLinks.DocumentPart = LastChange.doktl
and ObjectLinks.LinkedSAPObject = LastChange.dokob
and ObjectLinks.LinkedSAPObjectKey = LastChange.objky
--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 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
--Get Document Part Association
association [1..1] to I_DocInfoRecdDocumentPart as _DocumentPart on $projection.DocumentPart = _DocumentPart.DocumentPart
and $projection.DocumentType = _DocumentPart.DocumentType
and $projection.DocumentInfoRecord = _DocumentPart.DocumentInfoRecord
and $projection.DocumentVersion = _DocumentPart.DocumentVersion
--Get Document type description
association [0..*] to I_DocInfoRecdDocumentTypeText as _DocumentTypeDescription on $projection.DocumentType = _DocumentTypeDescription.DocumentType
--Get Linked object description
association [0..*] to I_DocInfoRecdObjectLinkText as _LinkedObjectDesc on $projection.LinkedSAPObject = _LinkedObjectDesc.LinkedSAPObject
// --Get DIR created user full name
// association [0..1] to I_User as _CreatedUser on $projection.CreatedByUser = _CreatedUser.UserID
//
// --Get DIR changed user full name
// association [0..1] to I_User as _ChangedUser on $projection.ChangedBy = _ChangedUser.UserID
--Get DocumentInfoRecord created user value help
association [1..1] to I_DocumentInfoRecordUserVH as _CreatedUser on $projection.DocumentType = _CreatedUser.DocumentInfoRecordDocType
and $projection.DocumentPart = _CreatedUser.DocumentInfoRecordDocPart
and $projection.DocumentInfoRecord = _CreatedUser.DocumentInfoRecordDocNumber
and $projection.DocumentVersion = _CreatedUser.DocumentInfoRecordDocVersion
and $projection.CreatedByUser = _CreatedUser.ResponsiblePersonName
--Get DocumentInfoRecord changed user value help
association [1..1] to I_DocumentInfoRecordUserVH as _ChangedUser on $projection.DocumentType = _ChangedUser.DocumentInfoRecordDocType
and $projection.DocumentPart = _ChangedUser.DocumentInfoRecordDocPart
and $projection.DocumentInfoRecord = _ChangedUser.DocumentInfoRecordDocNumber
and $projection.DocumentVersion = _ChangedUser.DocumentInfoRecordDocVersion
and $projection.ChangedBy = _ChangedUser.LastChangedByUser
{
@ObjectModel.text.element: 'LinkedSAPObjectKey'
key ObjectLinks.LinkedSAPObjectKey as LinkedSAPObjectKey,
@ObjectModel.foreignKey.association: '_DocumentType'
key ObjectLinks.DocumentType as DocumentType,
@ObjectModel.foreignKey.association: '_DocumentNumber'
key ObjectLinks.DocumentInfoRecord as DocumentInfoRecord,
@ObjectModel.foreignKey.association: '_DocumentPart'
key ObjectLinks.DocumentPart as DocumentPart,
@ObjectModel.foreignKey.association: '_DocumentVersion'
key ObjectLinks.DocumentVersion as DocumentVersion,
@ObjectModel.text.association: '_LinkedObjectDesc'
//@ObjectModel.foreignKey.association: '_LinkedObjectDesc'
key ObjectLinks.LinkedSAPObject as LinkedSAPObject,
ObjectLinks.DocObjectLinkCounter as DocObjectLinkCounter,
/* DIR Administrative Data */
@Semantics.businessDate.createdAt: true
LastChange.created_at as CreationDateTime,
@Consumption.valueHelpDefinition.association: '_CreatedUser'
@Semantics.user.createdBy: true
LastChange.created_by as CreatedByUser,
@Semantics.businessDate.at: true
@Semantics.businessDate.lastChangedAt: true
LastChange.changed_at as ChangedDateTime,
@Consumption.valueHelpDefinition.association: '_ChangedUser'
@Semantics.user.lastChangedBy: true
LastChange.changed_by as ChangedBy,
/* Miscallenous Data */
ObjectLinks.DocInfoRecdLinkStatus as DocInfoRecdLinkStatus,
ObjectLinks.DocInfoRecdObjectLinkStatus as DocInfoRecdObjectLinkStatus,
ObjectLinks.ObjectTypeDatabaseTable as ObjectTypeDatabaseTable,
ObjectLinks.DocInfoRecdAdditionalObjectKey as DocInfoRecdAdditionalObjectKey,
ObjectLinks.DocLinkDirectionIsActive as DocLinkDirectionIsActive,
ObjectLinks.IsDefaultDocument as IsDefaultDocument,
@EndUserText.label:'Deletion Indicator'
ObjectLinks.DocInfoRecdIsDeleted as DocInfoRecdIsMarkedForDeletion,
ObjectLinks.DocInfoRecdLongTextUUID as DocInfoRecdLongTextUUID,
@EndUserText.label:'CAD Indicator'
ObjectLinks.DocumentIsCreatedByCAD as DocumentIsCreatedByCAD,
ObjectLinks.DocInfoRecdConfignMgmtFixed as DocInfoRecdConfignMgmtFixed,
/* Associations */
_DocumentTypeDescription,
_LinkedObjectDesc,
_CreatedUser,
_ChangedUser,
_DocumentNumber,
_DocumentType,
_DocumentVersion,
_DocumentPart
}
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