P_OffsettingAccountVH is a Composite CDS View that provides data about "Private view for Offsetting Account Value Help" in SAP S/4HANA. It reads from 5 data sources (I_Customer, I_GLAccountInChartOfAccounts, I_GLAccountInChartOfAccounts, I_GLAccountInChartOfAccounts, I_Supplier) and exposes 9 fields with key fields ChartOfAccounts, OffsettingAccount, ChartOfAccounts, OffsettingAccount, ChartOfAccounts. Part of development package FINS_FIS_FICO.
@AbapCatalog.entityBuffer.definitionAllowed: false@Metadata.ignorePropagatedAnnotations: true@VDM.viewType: #COMPOSITE@AccessControl.authorizationCheck: #NOT_REQUIRED@VDM.private:truedefineviewentity P_OffsettingAccountVH asselectfrom I_GLAccountInChartOfAccounts as I_GLAccountInChartOfAccounts
{
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
keycast(I_GLAccountInChartOfAccounts.GLAccount as fis_gkont preserving type ) as OffsettingAccount,
keycast('S' as farp_gkoar preserving type ) as OffsettingAccountType
}
unionallselectfrom I_GLAccountInChartOfAccounts as I_GLAccountInChartOfAccounts {
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
keycast(I_GLAccountInChartOfAccounts.GLAccount as fis_gkont preserving type ) as OffsettingAccount,
keycast('A' as farp_gkoar preserving type ) as OffsettingAccountType
//I_GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName as OffsettingAccountFullName
}
unionallselectfrom I_GLAccountInChartOfAccounts as I_GLAccountInChartOfAccounts {
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
keycast(I_GLAccountInChartOfAccounts.GLAccount as fis_gkont preserving type ) as OffsettingAccount,
keycast('M' as farp_gkoar preserving type ) as OffsettingAccountType
//I_GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName as OffsettingAccountFullName
}
unionallselectfrom I_Customer as I_Customer {
keycast(' ' as fis_ktopl preserving type ) as ChartOfAccounts,
keycast(I_Customer.Customer as fis_gkont preserving type ) as OffsettingAccount,
keycast('D' as farp_gkoar preserving type ) as OffsettingAccountType
//I_Customer.CustomerFullName as OffsettingAccountFullName
}
unionallselectfrom I_Supplier as I_Supplier {
keycast(' ' as fis_ktopl preserving type ) as ChartOfAccounts,
keycast(I_Supplier.Supplier as fis_gkont preserving type ) as OffsettingAccount,
keycast('K' as farp_gkoar preserving type ) as OffsettingAccountType
//I_Supplier.SupplierFullName as OffsettingAccountFullName
}