I_ShiftNoteAttachment

DDL: I_SHIFTNOTEATTACHMENT Type: view_entity COMPOSITE

Shift Note Attachment

I_ShiftNoteAttachment is a Composite CDS View that provides data about "Shift Note Attachment" in SAP S/4HANA. It reads from 2 data sources (I_DocumentInfoRecordAttachment, I_ShiftNoteDocumentLink) and exposes 28 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocVersion, DocumentInfoRecordDocNumber, DocumentInfoRecordDocPart, DocumentIndex.

Data Sources (2)

SourceAliasJoin Type
I_DocumentInfoRecordAttachment attachm inner
I_ShiftNoteDocumentLink doclink from

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Shift Note Attachment view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY DocumentInfoRecordDocType I_DocumentInfoRecordAttachment DocumentInfoRecordDocType
KEY DocumentInfoRecordDocVersion I_DocumentInfoRecordAttachment DocumentInfoRecordDocVersion
KEY DocumentInfoRecordDocNumber I_DocumentInfoRecordAttachment DocumentInfoRecordDocNumber
KEY DocumentInfoRecordDocPart I_DocumentInfoRecordAttachment DocumentInfoRecordDocPart
KEY DocumentIndex I_DocumentInfoRecordAttachment DocumentIndex
KEY FileUUID
KEY PhysicalDocument I_DocumentInfoRecordAttachment PhysicalDocument
CreationDateTime
CreatedByUser I_DocumentInfoRecordAttachment CreatedByUser
ChangedDateTime
LastChangedByUser I_DocumentInfoRecordAttachment LastChangedByUser
OriginalCheckedOutDateTime I_DocumentInfoRecordAttachment OriginalCheckedOutTime
OriginalCheckedOutUser I_DocumentInfoRecordAttachment OriginalCheckedOutUser
FileName
FileSize I_DocumentInfoRecordAttachment FileSize
WorkstationApplication I_DocumentInfoRecordAttachment WorkstationApplication
MimeType I_DocumentInfoRecordAttachment MimeType
StorageCategory I_DocumentInfoRecordAttachment StorageCategory
OriginalIsProtected
DocumentTitle I_DocumentInfoRecordAttachment DocumentTitle
DocumentFormat I_DocumentInfoRecordAttachment DocumentFormat
LogicalDocument I_DocumentInfoRecordAttachment LogicalDocument
LogicalDocumentClass I_DocumentInfoRecordAttachment LogicalDocumentClass
PhysicalDocumentClass I_DocumentInfoRecordAttachment PhysicalDocumentClass
LogicalDocumentIsReference I_DocumentInfoRecordAttachment LogicalDocumentIsReference
OriginalType I_DocumentInfoRecordAttachment OriginalType
PhysicalDocTechnicalStatus I_DocumentInfoRecordAttachment PhysicalDocTechnicalStatus
InternalComment I_DocumentInfoRecordAttachment InternalComment
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Shift Note Attachment'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.usageType: {serviceQuality: #C,sizeCategory: #L, dataClass: #TRANSACTIONAL}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #COMPOSITE

define view entity I_ShiftNoteAttachment
  as select from   I_ShiftNoteDocumentLink        as doclink
    inner join     I_DocumentInfoRecordAttachment as attachm on  attachm.DocumentInfoRecordDocType    = doclink.DocumentInfoRecordDocType
                                                             and attachm.DocumentInfoRecordDocVersion = doclink.DocumentInfoRecordDocVersion
                                                             and attachm.DocumentInfoRecordDocNumber  = doclink.DocumentInfoRecordDocNumber
                                                             and attachm.DocumentInfoRecordDocPart    = doclink.DocumentInfoRecordDocPart
{
  key attachm.DocumentInfoRecordDocType,
  key attachm.DocumentInfoRecordDocVersion,
  key attachm.DocumentInfoRecordDocNumber,
  key attachm.DocumentInfoRecordDocPart,
  key attachm.DocumentIndex,
  key cast(attachm.FileUUID as edoc_file_guid preserving type)        as FileUUID,
  key attachm.PhysicalDocument,

      // Attachment admin data

      @Semantics.systemDateTime.createdAt: true
      cast(attachm.CreationDateTime as hp_created_at preserving type) as CreationDateTime,
      @Semantics.user.createdBy: true
      attachm.CreatedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      cast(attachm.ChangedDateTime as hp_changed_at preserving type)  as ChangedDateTime,
      @Semantics.user.lastChangedBy: true
      attachm.LastChangedByUser,
      attachm.OriginalCheckedOutTime                                  as OriginalCheckedOutDateTime,
      attachm.OriginalCheckedOutUser,

      // Attachment details

      cast(attachm.FileName as filen_type preserving type)            as FileName,
      attachm.FileSize,
      attachm.WorkstationApplication,
      attachm.MimeType,
      attachm.StorageCategory,
      cast(attachm.OriginalIsProtected as pp_cvflag preserving type)  as OriginalIsProtected,
      attachm.DocumentTitle,
      attachm.DocumentFormat,

      // LOIO and PHIO Details

      attachm.LogicalDocument,
      attachm.LogicalDocumentClass,
      attachm.PhysicalDocumentClass,
      @Semantics.booleanIndicator: true
      attachm.LogicalDocumentIsReference,
      attachm.OriginalType,
      attachm.PhysicalDocTechnicalStatus,
      @Semantics.text: true
      attachm.InternalComment

};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DOCUMENTINFORECORDATTACHMENT",
"I_SHIFTNOTEDOCUMENTLINK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/