P_OffsettingAccount is a Composite CDS View that provides data about "Private union view for OffsettingAccount" in SAP S/4HANA. It reads from 5 data sources (I_Customer, I_GLAccountInChartOfAccounts, I_GLAccountInChartOfAccounts, I_GLAccountInChartOfAccounts, I_Supplier) and exposes 20 fields with key fields ChartOfAccounts, OffsettingAccount, OffsettingAccountType, OffsettingAccount, OffsettingAccountType. 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_OffsettingAccount asselectfrom 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,
cast(I_Supplier.SupplierName as fis_offsetting_acct_name preserving type ) as OffsettingAccountName,
cast(I_Supplier.OrganizationBPName1 as fis_offsetting_acct_short_name preserving type ) as OffsettingAccountShortName
//I_Supplier.SupplierFullName as OffsettingAccountFullName
}
unionallselectfrom 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,
cast(I_Customer.CustomerName as fis_offsetting_acct_name preserving type ) as OffsettingAccountName,
cast(I_Customer.OrganizationBPName1 as fis_offsetting_acct_short_name preserving type ) as OffsettingAccountShortName
//I_Customer.CustomerFullName as OffsettingAccountFullName
}
unionallselectfrom I_GLAccountInChartOfAccounts as I_GLAccountInChartOfAccounts
leftouter to one join I_GLAccountTextRawData as I_GLAccountTextRawData
on I_GLAccountInChartOfAccounts.ChartOfAccounts = I_GLAccountTextRawData.ChartOfAccounts
and I_GLAccountInChartOfAccounts.GLAccount = I_GLAccountTextRawData.GLAccount
and I_GLAccountTextRawData.Language = $session.system_language
{
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
keycast(I_GLAccountInChartOfAccounts.GLAccount as fis_gkont preserving type ) as OffsettingAccount,
keycast('S' as farp_gkoar preserving type ) as OffsettingAccountType,
cast(I_GLAccountTextRawData.GLAccountName as fis_offsetting_acct_name ) as OffsettingAccountName,
I_GLAccountTextRawData.GLAccountName as OffsettingAccountShortName
//I_GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName as OffsettingAccountFullName
}
//where I_GLAccountTextRawData.Language = $session.system_language
unionallselectfrom I_GLAccountInChartOfAccounts as I_GLAccountInChartOfAccounts
leftouter to one join I_GLAccountTextRawData as I_GLAccountTextRawData
on I_GLAccountInChartOfAccounts.ChartOfAccounts = I_GLAccountTextRawData.ChartOfAccounts
and I_GLAccountInChartOfAccounts.GLAccount = I_GLAccountTextRawData.GLAccount
and I_GLAccountTextRawData.Language = $session.system_language
{
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
keycast(I_GLAccountInChartOfAccounts.GLAccount as fis_gkont preserving type ) as OffsettingAccount,
keycast('A' as farp_gkoar preserving type ) as OffsettingAccountType,
cast(I_GLAccountTextRawData.GLAccountName as fis_offsetting_acct_name) as OffsettingAccountName,
I_GLAccountTextRawData.GLAccountName as OffsettingAccountShortName
//I_GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName as OffsettingAccountFullName
}
//where I_GLAccountTextRawData.Language = $session.system_language
unionallselectfrom I_GLAccountInChartOfAccounts as I_GLAccountInChartOfAccounts
leftouter to one join I_GLAccountTextRawData as I_GLAccountTextRawData
on I_GLAccountInChartOfAccounts.ChartOfAccounts = I_GLAccountTextRawData.ChartOfAccounts
and I_GLAccountInChartOfAccounts.GLAccount = I_GLAccountTextRawData.GLAccount
and I_GLAccountTextRawData.Language = $session.system_language
{
key I_GLAccountInChartOfAccounts.ChartOfAccounts,
keycast(I_GLAccountInChartOfAccounts.GLAccount as fis_gkont preserving type ) as OffsettingAccount,
keycast('M' as farp_gkoar preserving type ) as OffsettingAccountType,
cast(I_GLAccountTextRawData.GLAccountName as fis_offsetting_acct_name) as OffsettingAccountName,
I_GLAccountTextRawData.GLAccountName as OffsettingAccountShortName
//I_GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName as OffsettingAccountFullName
}
//where I_GLAccountTextRawData.Language = $session.system_language