P_LatestGIRltdMatDocDate

DDL: P_LATESTGIRLTDMATDOCDATE SQL: PLTSTGIRLTDDAT Type: view BASIC Package: ODATA_LE_PROCESSFLOW

Latest Goods Issue Related Material Document Date

P_LatestGIRltdMatDocDate is a Basic CDS View that provides data about "Latest Goods Issue Related Material Document Date" in SAP S/4HANA. It reads from 1 data source (I_SDDocumentProcessFlow) and exposes 3 fields with key fields PrecedingDocument, PrecedingDocumentCategory. Part of development package ODATA_LE_PROCESSFLOW.

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