I_EngSnpshtRefDoc

DDL: I_ENGSNPSHTREFDOC SQL: IENGSNPREFDOC Type: view COMPOSITE

Engineering Snapshot Ref Obj Document

I_EngSnpshtRefDoc is a Composite CDS View that provides data about "Engineering Snapshot Ref Obj Document" in SAP S/4HANA. It reads from 3 data sources (I_DocumentInfoRecord, I_EngSnpshtHdr, I_EngSnpshtObjRef) and exposes 19 fields with key fields EngSnapshotRefUUID, DocumentType, DocumentInfoRecord, DocumentPart, DocumentVersion. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_DocumentInfoRecord DocumentInfoRecord inner
I_EngSnpshtHdr EngSnpshtHdr inner
I_EngSnpshtObjRef EngSnpshtObjRef from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_DocumentInfoRecordDocStatus _DocStatus $projection.DocumentType = _DocStatus.DocumentInfoRecordDocType and $projection.InternalDocumentStatus = _DocStatus.InternalDocumentStatus
[0..1] I_DocumentInfoRecordDocPrt _DocumentInfoRecordDocPrt $projection.DocumentType = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocType and $projection.DocumentInfoRecord = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocNumber and $projection.DocumentPart = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocPart and $projection.DocumentVersion = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocVersion

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IENGSNPREFDOC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Engineering Snapshot Ref Obj Document view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY EngSnapshotRefUUID I_EngSnpshtObjRef EngSnapshotRefUUID
KEY DocumentType I_DocumentInfoRecord DocumentInfoRecordDocType
KEY DocumentInfoRecord I_DocumentInfoRecord DocumentInfoRecordDocNumber
KEY DocumentPart I_DocumentInfoRecord DocumentInfoRecordDocPart
KEY DocumentVersion I_DocumentInfoRecord DocumentInfoRecordDocVersion
EngSnapshotUUID I_EngSnpshtObjRef EngSnapshotUUID
EngSnapshotID I_EngSnpshtHdr EngSnapshotID
EngSnpshtRevisionNumber I_EngSnpshtHdr EngSnpshtRevisionNumber
EngSnpshtRefType I_EngSnpshtObjRef EngSnpshtRefType
InternalDocumentStatus InternalDocumentStatus
CreatedByUser I_EngSnpshtObjRef CreatedByUser
CreationDateTime I_EngSnpshtObjRef CreationDateTime
LastChangedByUser I_EngSnpshtObjRef LastChangedByUser
LastChangeDateTime I_EngSnpshtObjRef LastChangeDateTime
DocumentDescription _DocumentInfoRecordDocPrt DocumentDescription
_DocType _DocType
_DocNumber _DocNumber
_DocVersion _DocVersion
_DocStatus _DocStatus
@AbapCatalog.sqlViewName: 'IENGSNPREFDOC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType: {serviceQuality: #C,
                          dataClass: #MIXED,
                          sizeCategory: #L}
@EndUserText.label: 'Engineering Snapshot Ref Obj Document'
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_EngSnpshtRefDoc
  as select from I_EngSnpshtObjRef    as EngSnpshtObjRef
    inner join   I_EngSnpshtHdr       as EngSnpshtHdr       on EngSnpshtObjRef.EngSnapshotUUID = EngSnpshtHdr.EngSnapshotUUID
    inner join   I_DocumentInfoRecord as DocumentInfoRecord on  EngSnpshtObjRef.EngSnpshtRefKey1 = DocumentInfoRecord.DocumentInfoRecordDocType
                                                            and EngSnpshtObjRef.EngSnpshtRefKey2 = DocumentInfoRecord.DocumentInfoRecordDocNumber
                                                            and EngSnpshtObjRef.EngSnpshtRefKey3 = DocumentInfoRecord.DocumentInfoRecordDocPart
                                                            and EngSnpshtObjRef.EngSnpshtRefKey4 = DocumentInfoRecord.DocumentInfoRecordDocVersion
  association [0..1] to I_DocumentInfoRecordDocStatus as _DocStatus                on  $projection.DocumentType           = _DocStatus.DocumentInfoRecordDocType
                                                                                   and $projection.InternalDocumentStatus = _DocStatus.InternalDocumentStatus
  association [0..1] to I_DocumentInfoRecordDocPrt    as _DocumentInfoRecordDocPrt on  $projection.DocumentType       = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocType
                                                                                   and $projection.DocumentInfoRecord = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocNumber
                                                                                   and $projection.DocumentPart       = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocPart
                                                                                   and $projection.DocumentVersion    = _DocumentInfoRecordDocPrt.DocumentInfoRecordDocVersion
{
  key EngSnpshtObjRef.EngSnapshotRefUUID,
  key DocumentInfoRecord.DocumentInfoRecordDocType    as DocumentType,
  key DocumentInfoRecord.DocumentInfoRecordDocNumber  as DocumentInfoRecord,
  key DocumentInfoRecord.DocumentInfoRecordDocPart    as DocumentPart,
  key DocumentInfoRecord.DocumentInfoRecordDocVersion as DocumentVersion,
      EngSnpshtObjRef.EngSnapshotUUID,
      EngSnpshtHdr.EngSnapshotID,
      EngSnpshtHdr.EngSnpshtRevisionNumber,
      EngSnpshtObjRef.EngSnpshtRefType,
      InternalDocumentStatus,
      @Semantics.user.createdBy: true
      EngSnpshtObjRef.CreatedByUser,
      @Semantics.systemDateTime.createdAt: true
      EngSnpshtObjRef.CreationDateTime,
      @Semantics.user.lastChangedBy: true
      EngSnpshtObjRef.LastChangedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      EngSnpshtObjRef.LastChangeDateTime,
      _DocumentInfoRecordDocPrt.DocumentDescription,
      _DocType,
      _DocNumber,
      _DocVersion,
      _DocStatus
}
where
  (
       EngSnpshtObjRef.EngSnpshtRefType                  = 'DOC'
    or EngSnpshtObjRef.EngSnpshtRefType                  = 'VDOC'
    or EngSnpshtObjRef.EngSnpshtRefType                  = 'MPD'
  )
  and  DocumentInfoRecord.DocInfoRecdIsMarkedForDeletion = ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_DOCUMENTINFORECORD",
"I_DOCUMENTINFORECORDDOCPRT",
"I_ENGSNPSHTHDR",
"I_ENGSNPSHTOBJREF"
],
"ASSOCIATED":
[
"I_DOCUMENTINFORECORDDOCNUMBER",
"I_DOCUMENTINFORECORDDOCPRT",
"I_DOCUMENTINFORECORDDOCSTATUS",
"I_DOCUMENTINFORECORDDOCTYPE",
"I_DOCUMENTINFORECORDDOCVERSION"
],
"BASE":
[
"I_DOCUMENTINFORECORD"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/