@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Business Lock Reason'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: { modelingPattern: #NONE,
representativeKey: 'CABusinessLockReason',
sapObjectNodeType.name: 'ContrAcctgBusinessLockReason',
supportedCapabilities: [ #CDS_MODELING_ASSOCIATION_TARGET,
#CDS_MODELING_DATA_SOURCE,
#SQL_DATA_SOURCE ],
usageType: { dataClass: #CUSTOMIZING,
serviceQuality: #C,
sizeCategory: #S } }
@VDM.viewType: #COMPOSITE
define view entity I_CABusinessLockReason
as select from I_CADunningLockReason as DunLockRsn
join I_CABusinessProcess as BusProc on BusProc.CABusinessProcess = '01'
association [1..1] to I_CABusinessProcess as _BusProcess on $projection.CABusinessProcess = _BusProcess.CABusinessProcess
association [0..*] to I_CABusinessLockReasonText as _Text on $projection.CABusinessProcess = _Text.CABusinessProcess
and $projection.CABusinessLockReason = _Text.CABusinessLockReason
{
@ObjectModel.foreignKey.association: '_BusProcess'
key BusProc.CABusinessProcess,
@ObjectModel.text.association: '_Text'
key DunLockRsn.CADunningLockReason as CABusinessLockReason,
_BusProcess,
_Text
}
union all select from I_CAPaymentLockReason as PaytLockRsn
join I_CABusinessProcess as BusProc on BusProc.CABusinessProcess = '02'
or BusProc.CABusinessProcess = '03'
or BusProc.CABusinessProcess = '10'
association [1..1] to I_CABusinessProcess as _BusProcess on $projection.CABusinessProcess = _BusProcess.CABusinessProcess
association [0..*] to I_CABusinessLockReasonText as _Text on $projection.CABusinessProcess = _Text.CABusinessProcess
and $projection.CABusinessLockReason = _Text.CABusinessLockReason
{
key BusProc.CABusinessProcess,
key PaytLockRsn.CAPaymentLockReason as CABusinessLockReason,
_BusProcess,
_Text
}
union all select from I_CAInterestLockReason as IntrstLockRsn
join I_CABusinessProcess as BusProc on BusProc.CABusinessProcess = '04'
association [1..1] to I_CABusinessProcess as _BusProcess on $projection.CABusinessProcess = _BusProcess.CABusinessProcess
association [0..*] to I_CABusinessLockReasonText as _Text on $projection.CABusinessProcess = _Text.CABusinessProcess
and $projection.CABusinessLockReason = _Text.CABusinessLockReason
{
key BusProc.CABusinessProcess,
key IntrstLockRsn.CAInterestLockReason as CABusinessLockReason,
_BusProcess,
_Text
}
union all select from I_CACorrespncDunLockReason as CorrespncDunLockRsn
join I_CABusinessProcess as BusProc on BusProc.CABusinessProcess = '07'
association [1..1] to I_CABusinessProcess as _BusProcess on $projection.CABusinessProcess = _BusProcess.CABusinessProcess
association [0..*] to I_CABusinessLockReasonText as _Text on $projection.CABusinessProcess = _Text.CABusinessProcess
and $projection.CABusinessLockReason = _Text.CABusinessLockReason
{
key BusProc.CABusinessProcess,
key CorrespncDunLockRsn.CACorrespncDunLockReason as CABusinessLockReason,
_BusProcess,
_Text
}
union all select from I_CAPostgAndClrgLockReason as PostgAndClrgLockRsn
join I_CABusinessProcess as BusProc on BusProc.CABusinessProcess = '09'
association [1..1] to I_CABusinessProcess as _BusProcess on $projection.CABusinessProcess = _BusProcess.CABusinessProcess
association [0..*] to I_CABusinessLockReasonText as _Text on $projection.CABusinessProcess = _Text.CABusinessProcess
and $projection.CABusinessLockReason = _Text.CABusinessLockReason
{
key BusProc.CABusinessProcess,
key PostgAndClrgLockRsn.CAPostgAndClrgLockReason as CABusinessLockReason,
_BusProcess,
_Text
}
union all select from I_CAInvcgLockReason as InvocgLockRsn
join I_CABusinessProcess as BusProc on BusProc.CABusinessProcess = '05'
or BusProc.CABusinessProcess = '12'
association [1..1] to I_CABusinessProcess as _BusProcess on $projection.CABusinessProcess = _BusProcess.CABusinessProcess
association [0..*] to I_CABusinessLockReasonText as _Text on $projection.CABusinessProcess = _Text.CABusinessProcess
and $projection.CABusinessLockReason = _Text.CABusinessLockReason
{
key BusProc.CABusinessProcess,
key InvocgLockRsn.CAInvcgLockReason as CABusinessLockReason,
_BusProcess,
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CABUSINESSPROCESS",
"I_CACORRESPNCDUNLOCKREASON",
"I_CADUNNINGLOCKREASON",
"I_CAINTERESTLOCKREASON",
"I_CAINVCGLOCKREASON",
"I_CAPAYMENTLOCKREASON",
"I_CAPOSTGANDCLRGLOCKREASON"
],
"ASSOCIATED":
[
"I_CABUSINESSLOCKREASONTEXT",
"I_CABUSINESSPROCESS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/