@AbapCatalog.sqlViewName: 'PCSHFLWGLCOMB'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_CashFlowItemGLAccountComb
as select from P_CashFlowItemGLAccount
{
key CashFlowScopeForAccounting,
key CompanyCode,
key GLAccount
}
union select from I_CashFlowGLAccountDetn as GLAccount
inner join I_CompanyCode as CompanyCode on GLAccount.ChartOfAccounts = CompanyCode.ChartOfAccounts
inner join P_CashFlowItemGLAccount as flow on flow.CompanyCode = CompanyCode.CompanyCode
and flow.GLAccount = GLAccount.GLAccount
{
key flow.CashFlowScopeForAccounting,
key flow.CompanyCode,
key GLAccount.CashFlowLocalGLAccountForAPAR as GLAccount
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CASHFLOWGLACCOUNTDETN",
"I_COMPANYCODE",
"P_CASHFLOWITEMGLACCOUNT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/