P_LatestGIRltdMatDocDate

DDL: P_LATESTGIRLTDMATDOCDATE SQL: PLTSTGIRLTDDAT Type: view BASIC

P_LatestGIRltdMatDocDate is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (I_SDDocumentProcessFlow) and exposes 3 fields with key fields PrecedingDocument, PrecedingDocumentCategory.

Data Sources (1)

SourceAliasJoin Type
I_SDDocumentProcessFlow Flow from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PLTSTGIRLTDDAT view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #BASIC view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PrecedingDocument I_SDDocumentProcessFlow PrecedingDocument
KEY PrecedingDocumentCategory I_SDDocumentProcessFlow PrecedingDocumentCategory
MaxCreationDate
@AbapCatalog.sqlViewName: 'PLTSTGIRLTDDAT'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #BASIC

define view P_LatestGIRltdMatDocDate 
as select from I_SDDocumentProcessFlow as Flow   
{
  key Flow.PrecedingDocument,
  key Flow.PrecedingDocumentCategory,
  max(CreationDate) as MaxCreationDate  
}
  
where Flow.SubsequentDocumentCategory = 'R'         
   or Flow.SubsequentDocumentCategory = 'h'
   
group by PrecedingDocument,
         PrecedingDocumentCategory
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SDDOCUMENTPROCESSFLOW"
],
"ASSOCIATED":
[],
"BASE":
[],
"VERSION":0
}
}*/