P_CN_GoldenTaxCustomerBankAgg

DDL: P_CN_GOLDENTAXCUSTOMERBANKAGG Type: view COMPOSITE

P_CN_GoldenTaxCustomerBankAgg is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CustomerBankDetails) and exposes 6 fields with key fields Customer, BankCountry. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CustomerBankDetails I_CustomerBankDetails from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_Bank_2 _Bank $projection.BankCountry = _Bank.BankCountry and $projection.Bank = _Bank.BankInternalID
[1..1] I_Country _Country $projection.BankCountry = _Country.Country
[1] P_CN_GoldenTaxCustomerBank _GTBank $projection.Customer = _GTBank.Customer and $projection.BankCountry = _GTBank.BankCountry and $projection.Bank = _GTBank.Bank

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.sqlViewName PCNGTCUSTBANKAGG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY Customer Customer Sold-to Party
KEY BankCountry BankCountry Bank Ctry/Rgn. Key
Bank
_Bank _Bank
_Country _Country
_GTBank _GTBank

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_CN_GoldenTaxCustomerBankAgg.
-- 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.

CREATE VIEW P_CN_GoldenTaxCustomerBankAgg AS
SELECT
  Customer,
  BankCountry,
  min(Bank) AS Bank
FROM I_CustomerBankDetails
LEFT OUTER JOIN I_Bank_2 AS _Bank ON BankCountry = _Bank.BankCountry AND Bank = _Bank.BankInternalID  -- association [1..1]
LEFT OUTER JOIN I_Country AS _Country ON BankCountry = _Country.Country  -- association [1..1]
LEFT OUTER JOIN P_CN_GoldenTaxCustomerBank AS _GTBank ON Customer = _GTBank.Customer AND BankCountry = _GTBank.BankCountry AND Bank = _GTBank.Bank  -- association [1]
;