P_OffsettingAccount

DDL: P_OFFSETTINGACCOUNT SQL: PFIOFFSETACCT Type: view COMPOSITE

P_OffsettingAccount is a Composite CDS View 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.

Data Sources (5)

SourceAliasJoin Type
I_Customer I_Customer union_all
I_GLAccountInChartOfAccounts I_GLAccountInChartOfAccounts union_all
I_GLAccountInChartOfAccounts I_GLAccountInChartOfAccounts union_all
I_GLAccountInChartOfAccounts I_GLAccountInChartOfAccounts union_all
I_Supplier I_Supplier from

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PFIOFFSETACCT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.buffering.status #NOT_ALLOWED view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY ChartOfAccounts
KEY OffsettingAccount
KEY OffsettingAccountType
OffsettingAccountName
KEY OffsettingAccount
KEY OffsettingAccountType
OffsettingAccountName
ChartOfAccounts
KEY OffsettingAccount
KEY OffsettingAccountType
OffsettingAccountName
ChartOfAccounts
KEY OffsettingAccount
KEY OffsettingAccountType
OffsettingAccountName
ChartOfAccounts
KEY OffsettingAccount
KEY OffsettingAccountType
OffsettingAccountName
OffsettingAccountShortName I_GLAccountTextRawData GLAccountName Short Text

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_OffsettingAccount.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PFIOFFSETACCT

CREATE VIEW P_OffsettingAccount AS
SELECT
  cast(' ' as fis_ktopl preserving type ) AS ChartOfAccounts,
  cast(I_Supplier.Supplier as fis_gkont preserving type ) AS OffsettingAccount,
  cast('K' as farp_gkoar preserving type ) AS OffsettingAccountType,
  cast(I_Supplier.SupplierName as fis_offsetting_acct_name preserving type ) AS OffsettingAccountName,
  I_GLAccountTextRawData.GLAccountName AS OffsettingAccountShortName
FROM I_Supplier
-- UNION ALL with additional select branch(es): I_Customer, I_GLAccountInChartOfAccounts
;