I_MfgOrderDocumentLinkOriginal

DDL: I_MFGORDERDOCUMENTLINKORIGINAL Type: view_entity COMPOSITE

Manufacturing Order Document Link Original

I_MfgOrderDocumentLinkOriginal is a Composite CDS View that provides data about "Manufacturing Order Document Link Original" in SAP S/4HANA. It reads from 2 data sources (I_MfgOrderDocumentLink, I_DocumentInfoRecordAttachment) and exposes 28 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, DocumentIndex.

Data Sources (2)

SourceAliasJoin Type
I_MfgOrderDocumentLink docl inner
I_DocumentInfoRecordAttachment orig from

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.modelingPattern #NONE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
VDM.viewType #COMPOSITE view
EndUserText.label Manufacturing Order Document Link Original view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY DocumentInfoRecordDocType I_DocumentInfoRecordAttachment DocumentInfoRecordDocType
KEY DocumentInfoRecordDocNumber I_DocumentInfoRecordAttachment DocumentInfoRecordDocNumber
KEY DocumentInfoRecordDocVersion I_DocumentInfoRecordAttachment DocumentInfoRecordDocVersion
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
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.modelingPattern: #NONE
@ObjectModel.supportedCapabilities: [#CDS_MODELING_DATA_SOURCE, #SQL_DATA_SOURCE]
@ObjectModel.usageType: {serviceQuality: #C, sizeCategory: #L, dataClass: #MIXED}
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label: 'Manufacturing Order Document Link Original'
// CDS view for originals used in MfgOrder Document Links


define view entity I_MfgOrderDocumentLinkOriginal
  as select from I_DocumentInfoRecordAttachment as orig
      inner join I_MfgOrderDocumentLink         as docl on  docl.DocumentType       = orig.DocumentInfoRecordDocType
                                                        and docl.DocumentInfoRecord = orig.DocumentInfoRecordDocNumber
                                                        and docl.DocumentVersion    = orig.DocumentInfoRecordDocVersion
                                                        and docl.DocumentPart       = orig.DocumentInfoRecordDocPart
{
      // Key

  key orig.DocumentInfoRecordDocType,
  key orig.DocumentInfoRecordDocNumber,
  key orig.DocumentInfoRecordDocVersion,
  key orig.DocumentInfoRecordDocPart,
  key orig.DocumentIndex,
  key cast(orig.FileUUID as edoc_file_guid preserving type)        as FileUUID,
  key orig.PhysicalDocument,

      // Original admin data

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

      // Original details

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

      //  LOIO and PHIO Details

      orig.LogicalDocument,
      orig.LogicalDocumentClass,
      orig.PhysicalDocumentClass,
      @Semantics.booleanIndicator: true
      orig.LogicalDocumentIsReference,
      orig.OriginalType,
      orig.PhysicalDocTechnicalStatus,
      @Semantics.text: true
      orig.InternalComment
};
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DOCUMENTINFORECORDATTACHMENT",
"I_MFGORDERDOCUMENTLINK"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/