I_DocInfoRecdAttchDetForBusObj

DDL: I_DOCINFORECDATTCHDETFORBUSOBJ SQL: ICVOBJFILES Type: view COMPOSITE

Documents with files for Business Object

I_DocInfoRecdAttchDetForBusObj is a Composite CDS View that provides data about "Documents with files for Business Object" in SAP S/4HANA. It reads from 2 data sources (I_DocInfoRecdObjTypeToDocType, I_DocumentInfoRecordAttachment) and exposes 16 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, DocumentIndex. It has 4 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_DocInfoRecdObjTypeToDocType _DocType right_outer
I_DocumentInfoRecordAttachment Attachment from

Associations (4)

CardinalityTargetAliasCondition
[1] I_DocumentInfoRecordLgclDocID AttachmentDescr Attachment.LogicalDocument = AttachmentDescr.LogicalDocument and AttachmentDescr.Language = $session.system_language --
[1..1] I_DocumentInfoRecordCntntMgmt _Document $projection.DocumentInfoRecordDocType = _Document.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocPart = _Document.DocumentInfoRecordDocPart and $projection.DocumentInfoRecordDocNumber = _Document.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion = _Document.DocumentInfoRecordDocVersion
[0..*] I_DocumentInfoRecordDocTypeT _DocumentTypeText $projection.DocumentInfoRecordDocType = _DocumentTypeText.DocumentInfoRecordDocType
[1..1] I_DocumentInfoRecord _DocInfo $projection.DocumentInfoRecordDocType = _DocInfo.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocPart = _DocInfo.DocumentInfoRecordDocPart and $projection.DocumentInfoRecordDocNumber = _DocInfo.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion = _DocInfo.DocumentInfoRecordDocVersion

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName ICVOBJFILES view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Documents with files for Business Object view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY DocumentInfoRecordDocType I_DocInfoRecdObjTypeToDocType DocumentInfoRecordDocType
KEY DocumentInfoRecordDocNumber I_DocumentInfoRecordAttachment DocumentInfoRecordDocNumber
KEY DocumentInfoRecordDocVersion I_DocumentInfoRecordAttachment DocumentInfoRecordDocVersion
KEY DocumentInfoRecordDocPart I_DocumentInfoRecordAttachment DocumentInfoRecordDocPart
KEY DocumentIndex I_DocumentInfoRecordAttachment DocumentIndex
KEY FileUUID I_DocumentInfoRecordAttachment FileUUID
KEY PhysicalDocument I_DocumentInfoRecordAttachment PhysicalDocument
KEY LinkedSAPObject I_DocInfoRecdObjTypeToDocType LinkedSAPObject
FileName I_DocumentInfoRecordAttachment FileName
FileDescription AttachmentDescr FileDescription
WorkstationApplication I_DocumentInfoRecordAttachment WorkstationApplication
DocumentDescription _Document DocumentDescription
DocumentInfoRecord _DocInfo DocumentInfoRecord
_DocumentTypeText _DocumentTypeText
_Document _Document
_DocInfo _DocInfo
@AbapCatalog.sqlViewName: 'ICVOBJFILES'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: { serviceQuality: #C, sizeCategory: #S, dataClass: #TRANSACTIONAL }
@VDM.viewType:#COMPOSITE
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Documents with files for Business Object'

define view I_DocInfoRecdAttchDetForBusObj
  as select from     I_DocumentInfoRecordAttachment as Attachment


    right outer join I_DocInfoRecdObjTypeToDocType  as _DocType on Attachment.DocumentInfoRecordDocType = _DocType.DocumentInfoRecordDocType

  -- Association to get the Description of the attachment    
  association [1] to I_DocumentInfoRecordLgclDocID as AttachmentDescr on  Attachment.LogicalDocument = AttachmentDescr.LogicalDocument
                                                                      and AttachmentDescr.Language   = $session.system_language
        
  -- Association to get the Description of the DIRs
  association [1..1] to I_DocumentInfoRecordCntntMgmt as _Document         on  $projection.DocumentInfoRecordDocType    = _Document.DocumentInfoRecordDocType
                                                                           and $projection.DocumentInfoRecordDocPart    = _Document.DocumentInfoRecordDocPart
                                                                           and $projection.DocumentInfoRecordDocNumber  = _Document.DocumentInfoRecordDocNumber
                                                                           and $projection.DocumentInfoRecordDocVersion = _Document.DocumentInfoRecordDocVersion

  association [0..*] to I_DocumentInfoRecordDocTypeT  as _DocumentTypeText on  $projection.DocumentInfoRecordDocType = _DocumentTypeText.DocumentInfoRecordDocType


  association [1..1] to I_DocumentInfoRecord as _DocInfo on   $projection.DocumentInfoRecordDocType       = _DocInfo.DocumentInfoRecordDocType
                                                        and   $projection.DocumentInfoRecordDocPart       = _DocInfo.DocumentInfoRecordDocPart
                                                        and   $projection.DocumentInfoRecordDocNumber     = _DocInfo.DocumentInfoRecordDocNumber
                                                        and   $projection.DocumentInfoRecordDocVersion    = _DocInfo.DocumentInfoRecordDocVersion
{

  key _DocType.DocumentInfoRecordDocType      as  DocumentInfoRecordDocType,
  key Attachment.DocumentInfoRecordDocNumber  as  DocumentInfoRecordDocNumber,
  key Attachment.DocumentInfoRecordDocVersion as  DocumentInfoRecordDocVersion,
  key Attachment.DocumentInfoRecordDocPart    as  DocumentInfoRecordDocPart,
 

  
  @Consumption.hidden: true
  key Attachment.DocumentIndex as DocumentIndex,
  @Consumption.hidden: true
  key Attachment.FileUUID as FileUUID,
  key Attachment.PhysicalDocument as PhysicalDocument,
  key _DocType.LinkedSAPObject as  LinkedSAPObject,
  

      @EndUserText: {
           label: 'File Name'
         }
      Attachment.FileName                     as  FileName, 
      AttachmentDescr.FileDescription         as  FileDescription,
      Attachment.WorkstationApplication       as  WorkstationApplication,

      _Document.DocumentDescription           as  DocumentDescription,
      //concatenated DIR key 

      _DocInfo.DocumentInfoRecord             as  DocumentInfoRecord, 

      //associations

      _DocumentTypeText,
      _Document,
      _DocInfo

}
where
  Attachment.DocumentInfoRecordDocNumber <> ' ' and
  _DocInfo.DocInfoRecdIsMarkedForDeletion <>  'X'
//associastions

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DOCINFORECDOBJTYPETODOCTYPE",
"I_DOCUMENTINFORECORD",
"I_DOCUMENTINFORECORDATTACHMENT",
"I_DOCUMENTINFORECORDCNTNTMGMT",
"I_DOCUMENTINFORECORDLGCLDOCID"
],
"ASSOCIATED":
[
"I_DOCUMENTINFORECORD",
"I_DOCUMENTINFORECORDCNTNTMGMT",
"I_DOCUMENTINFORECORDDOCTYPET",
"I_DOCUMENTINFORECORDLGCLDOCID"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/