@AbapCatalog.sqlViewName: 'PSDPOPROCFLW'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L
@VDM.viewType: #COMPOSITE
@VDM.private: true
define view P_SDDocumentPurchOrdProcFlow
as select from I_SDDocumentMultiLevelProcFlow
{
key DocRelationshipUUID,
//Preceding
PrecedingDocument,
PrecedingDocumentItem,
PrecedingDocumentCategory,
//Subsequent
SubsequentDocument,
cast(substring(SubsequentDocumentItem,2,5) as ebelp) as SubsequentDocumentItem ,
SubsequentDocumentItem as Original,
SubsequentDocumentCategory,
//Process Flow Level
ProcessFlowLevel
}
where SubsequentDocumentCategory = 'V' --and ( PrecedingDocumentCategory = 'C' or PrecedingDocumentCategory = 'I' or PrecedingDocumentCategory = 'L' )
and ( PrecedingDocumentCategory = 'C'
or PrecedingDocumentCategory = 'I'
or PrecedingDocumentCategory = 'L')
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SDDOCUMENTMULTILEVELPROCFLOW"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/