@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel: {
usageType: {
dataClass: #TRANSACTIONAL,
serviceQuality: #B,
sizeCategory: #XL
}
}
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.lifecycle.contract.type:#SAP_INTERNAL_API
@VDM.viewType: #COMPOSITE
@EndUserText.label : 'Process Flow entity for subsequent docs'
define view entity I_CmplProcessFlowSubsequent
as select from I_SDDocumentMultiLevelProcFlow
association [1..*] to I_CmplProcessFlowSubsequent as _CmplProcessFlowSubsequent
on $projection.PrecedingDocument = _CmplProcessFlowSubsequent.SubsequentDocument
and $projection.PrecedingDocumentItem = _CmplProcessFlowSubsequent.SubsequentDocumentItem
{
key DocRelationshipUUID,
PrecedingDocument,
PrecedingDocumentItem,
SubsequentDocument,
SubsequentDocumentItem,
PrecedingDocumentCategory,
SubsequentDocumentCategory,
/* This association is used as hierarchy data provider to get subsequent documents */
_CmplProcessFlowSubsequent
}
where
(
I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'C' --> Outbound Delivery
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'H' --> Invoice
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'M' --> Credit Memo Request
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'O' --> Debit Memo Request
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'P' --> Customer Return
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'T' --> Credit Memo
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'J' --> Debit Memo
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'K' --> Order w/o charge
or I_SDDocumentMultiLevelProcFlow.SubsequentDocumentCategory = 'L' --> Returns Delivery
)
and (
I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'C' --> Outbound Delivery
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'H' --> Invoice
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'M' --> Credit Memo Request
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'O' --> Debit Memo Request
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'P' --> Debit Memo Request
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'T' --> Customer Return
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'J' --> Credit Memo
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'K' --> Debit Memo
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'L' --> Order w/o charge
or I_SDDocumentMultiLevelProcFlow.PrecedingDocumentCategory = 'T' --> Returns Delivery
)
Depth:
1
2
3
4
5
All
Reload
I_CmplProcessFlowSubsequent view_entity