@EndUserText.label : 'Number of Invoicing Orders for Contract Account'
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName : 'IECACCTINVCGORDC'
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking : #('TRANSACTIONAL_DATA')
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.sizeCategory: #XL
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_UtilsContrAcctInvcgOrderCntr
as select from I_UtilitiesInvoicingOrder as UtilitiesInvoicingOrder
inner join I_UtilitiesBillingDocument as UtilitiesBillingDocument on UtilitiesBillingDocument.UtilitiesBillingDocument = UtilitiesInvoicingOrder.UtilitiesBillingDocument
inner join I_UtilitiesContract as UtilitiesContract on UtilitiesContract.UtilitiesContract = UtilitiesInvoicingOrder.UtilitiesContract
association [1..*] to I_UtilitiesContract as _UtilitiesContract on $projection.ContractAccount = _UtilitiesContract.ContractAccount
{
key UtilitiesInvoicingOrder.ContractAccount,
@Semantics.businessDate.at: true
key UtilitiesBillingDocument.ScheduledUtilitiesBillingDate,
@ObjectModel.foreignKey.association : '_UtilitiesPortion'
key UtilitiesInvoicingOrder.UtilitiesPortion,
@ObjectModel.foreignKey.association : '_UtilitiesBillingReason'
key UtilitiesInvoicingOrder.UtilitiesBillingReason,
@ObjectModel.foreignKey.association : '_InvcUtilsContractsJointly'
UtilitiesContract.UtilsContrJointInvcType,
count(*) as NmbrOfUtilsInvcgOrdrs,
/* Associations */
UtilitiesInvoicingOrder._UtilitiesPortion,
UtilitiesInvoicingOrder._UtilitiesBillingReason,
UtilitiesContract._InvcUtilsContractsJointly,
_UtilitiesContract
}
where
UtilitiesInvoicingOrder.UtilsBillgSimulationReason = ''
and UtilitiesInvoicingOrder.UtilsBillgDocIsNotReleased = ''
and UtilsInvoicingOrdSrceType = 'A'
and UtilitiesContract.UtilitiesMoveInDate <= UtilitiesBillingDocument.ScheduledUtilitiesBillingDate
and UtilitiesContract.UtilitiesMoveOutDate >= UtilitiesBillingDocument.ScheduledUtilitiesBillingDate
group by
UtilitiesInvoicingOrder.ContractAccount,
UtilitiesBillingDocument.ScheduledUtilitiesBillingDate,
UtilitiesInvoicingOrder.UtilitiesPortion,
UtilitiesInvoicingOrder.UtilitiesBillingReason,
UtilitiesContract.UtilsContrJointInvcType
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_UTILITIESBILLINGDOCUMENT",
"I_UTILITIESCONTRACT",
"I_UTILITIESINVOICINGORDER"
],
"ASSOCIATED":
[
"I_INVCUTILSCONTRACTSJOINTLY",
"I_UTILITIESBILLINGREASON",
"I_UTILITIESCONTRACT",
"I_UTILITIESPORTION"
],
"BASE":
[
"I_UTILITIESCONTRACT",
"I_UTILITIESINVOICINGORDER"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
I_UtilsContrAcctInvcgOrderCntr view