@VDM: {
private: true,
viewType: #COMPOSITE,
lifecycle.contract.type: #NONE
}
@AccessControl: {
authorizationCheck: #NOT_REQUIRED
}
@ObjectModel: {
usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #TRANSACTIONAL}
}
@Metadata: {
ignorePropagatedAnnotations: true
}
define view entity P_SrvcDocHavingSglPrdcssrQtan
as select from I_ServiceDocumentPredecessor as docflow
left outer to one join I_ServiceDocument as srvcdoc on docflow.ServiceDocumentUUID = srvcdoc.ServiceDocumentUUID
{
key docflow.ServiceDocumentUUID,
srvcdoc.ServiceDocument
}
where
docflow.ServiceDocumentRelationType = 'VONA'
and docflow.ServiceDocPrdcssrBusObjType = 'BUS2000116'
and docflow._ServiceDoc.ServiceDocumentIsQuotation = 'X'
group by
docflow.ServiceDocumentUUID,
srvcdoc.ServiceDocument
having
count(*) = 1
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SERVICEDOCUMENT",
"I_SERVICEDOCUMENTENHCD",
"I_SERVICEDOCUMENTPREDECESSOR"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/