I_DocumentInfoRecordLinkAttach
DIR and Attachment details
I_DocumentInfoRecordLinkAttach is a Composite CDS View that provides data about "DIR and Attachment details" in SAP S/4HANA. It reads from 1 data source (I_DocumentInfoRecordObjectLink) and exposes 34 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, LinkedSAPObject. Part of development package CV_VDM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DocumentInfoRecordObjectLink | Objlink | from |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDIRLNKATTCH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | DIR and Attachment details | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentInfoRecordDocType | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocType | |
| KEY | DocumentInfoRecordDocNumber | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocNumber | |
| KEY | DocumentInfoRecordDocVersion | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocVersion | |
| KEY | DocumentInfoRecordDocPart | I_DocumentInfoRecordObjectLink | DocumentInfoRecordDocPart | |
| KEY | LinkedSAPObject | I_DocumentInfoRecordObjectLink | LinkedSAPObject | |
| KEY | LinkedSAPObjectKey | I_DocumentInfoRecordObjectLink | LinkedSAPObjectKey | |
| FileUUID | _Attachment | FileUUID | ||
| PhysicalDocument | _Attachment | PhysicalDocument | ||
| FileName | _Attachment | FileName | ||
| DocumentInfoRecordFileName | _Attachment | DocumentInfoRecordFileName | ||
| FileDescription | _Attachment | FileDescription | ||
| FileSize | _Attachment | FileSize | ||
| WorkstationApplication | _Attachment | WorkstationApplication | ||
| MimeType | _Attachment | MimeType | ||
| StorageCategory | _Attachment | StorageCategory | ||
| OriginalVersionIsActive | ||||
| OriginalIsProtected | _Attachment | OriginalIsProtected | ||
| DocumentTitle | _Attachment | DocumentTitle | ||
| DocumentFormat | _Attachment | DocumentFormat | ||
| CreationDateTime | _Attachment | CreationDateTime | ||
| CreatedByUser | _Attachment | CreatedByUser | ||
| ChangedDateTime | _Attachment | ChangedDateTime | ||
| LastChangedByUser | _Attachment | LastChangedByUser | ||
| OriginalCheckedOutTime | _Attachment | OriginalCheckedOutTime | ||
| OriginalCheckedOutUser | _Attachment | OriginalCheckedOutUser | ||
| LogicalDocument | _Attachment | LogicalDocument | ||
| LogicalDocumentClass | _Attachment | LogicalDocumentClass | ||
| PhysicalDocumentClass | _Attachment | PhysicalDocumentClass | ||
| LogicalDocumentIsReference | _Attachment | LogicalDocumentIsReference | ||
| OriginalType | _Attachment | OriginalType | ||
| PhysicalDocTechnicalStatus | _Attachment | PhysicalDocTechnicalStatus | ||
| InternalComment | _Attachment | InternalComment | ||
| AttachmentAsURLLength | _Attachment | AttachmentAsURLLength | ||
| AttachmentAsURL | _Attachment | AttachmentAsURL |
@AbapCatalog.sqlViewName: 'IDIRLNKATTCH'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck:#MANDATORY
@EndUserText.label: 'DIR and Attachment details'
@VDM.viewType: #COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
define view I_DocumentInfoRecordLinkAttach
as select from I_DocumentInfoRecordObjectLink as Objlink
left outer to one join I_DocumentInfoRecordAttachment as _Attachment on Objlink.DocumentInfoRecordDocType = _Attachment.DocumentInfoRecordDocType
and Objlink.DocumentInfoRecordDocPart = _Attachment.DocumentInfoRecordDocPart
and Objlink.DocumentInfoRecordDocNumber = _Attachment.DocumentInfoRecordDocNumber
and Objlink.DocumentInfoRecordDocVersion = _Attachment.DocumentInfoRecordDocVersion
{
/* Document Info Record key Details */
key Objlink.DocumentInfoRecordDocType as DocumentInfoRecordDocType,
key Objlink.DocumentInfoRecordDocNumber as DocumentInfoRecordDocNumber,
key Objlink.DocumentInfoRecordDocVersion as DocumentInfoRecordDocVersion,
key Objlink.DocumentInfoRecordDocPart as DocumentInfoRecordDocPart,
/* Object Type and Object Key Details */
key Objlink.LinkedSAPObject as LinkedSAPObject,
key Objlink.LinkedSAPObjectKey as LinkedSAPObjectKey,
@Semantics.uuid : true
_Attachment.FileUUID as FileUUID,
_Attachment.PhysicalDocument as PhysicalDocument,
_Attachment.FileName as FileName,
_Attachment.DocumentInfoRecordFileName as DocumentInfoRecordFileName,
_Attachment.FileDescription as FileDescription,
_Attachment.FileSize as FileSize,
_Attachment.WorkstationApplication as WorkstationApplication,
_Attachment.MimeType as MimeType,
_Attachment.StorageCategory as StorageCategory,
cast( _Attachment.IsOriginalVersionActive as abap.char(1)) as OriginalVersionIsActive,
_Attachment.OriginalIsProtected as OriginalIsProtected,
_Attachment.DocumentTitle as DocumentTitle,
_Attachment.DocumentFormat as DocumentFormat,
/* Originals Admin Details */
_Attachment.CreationDateTime as CreationDateTime,
// @Consumption.valueHelpDefinition:[{association: '_CreatedUser'}]
@Semantics.user.createdBy: true
_Attachment.CreatedByUser as CreatedByUser,
@Semantics.businessDate.at: true
_Attachment.ChangedDateTime as ChangedDateTime,
// @Consumption.valueHelpDefinition:[{association: '_ChangedUser'}]
@Semantics.user.lastChangedBy: true
_Attachment.LastChangedByUser as LastChangedByUser,
_Attachment.OriginalCheckedOutTime as OriginalCheckedOutTime,
// @Consumption.valueHelpDefinition:[{association: 'CheckedOutUser' }]
_Attachment.OriginalCheckedOutUser as OriginalCheckedOutUser,
/* LOIO and PHIO Details */
_Attachment.LogicalDocument as LogicalDocument,
_Attachment.LogicalDocumentClass as LogicalDocumentClass,
_Attachment.PhysicalDocumentClass as PhysicalDocumentClass,
_Attachment.LogicalDocumentIsReference as LogicalDocumentIsReference,
_Attachment.OriginalType as OriginalType,
_Attachment.PhysicalDocTechnicalStatus as PhysicalDocTechnicalStatus,
_Attachment.InternalComment as InternalComment,
_Attachment.AttachmentAsURLLength as AttachmentAsURLLength,
_Attachment.AttachmentAsURL as AttachmentAsURL
}
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