P_PL_SAFTBusinessPartner

DDL: P_PL_SAFTBUSINESSPARTNER SQL: PPLSAFTBP Type: view COMPOSITE

P_PL_SAFTBusinessPartner is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_PL_SAFTTaxItemAgg) and exposes 9 fields with key fields TaxType, CompanyCode, AccountingDocument, FiscalYear. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_PL_SAFTTaxItemAgg P_PL_SAFTTaxItemAgg from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_BusinessPartnerSupplier _BPSupplier _BPSupplier.Supplier = $projection.Supplier
[0..*] I_BusinessPartnerCustomer _BPCustomer _BPCustomer.Customer = $projection.Customer

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PPLSAFTBP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #P view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY TaxType TaxType Tax Type
KEY CompanyCode CompanyCode Receiver Company Code
KEY AccountingDocument AccountingDocument Journal Entry
KEY FiscalYear FiscalYear G/L Fiscal Year
Customer Customer Sold-to Party
Supplier Supplier Supplier
BusinessPartnerendasBusinessPartner
_BPSupplier _BPSupplier
_BPCustomer _BPCustomer

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_PL_SAFTBusinessPartner.
-- 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: PPLSAFTBP

CREATE VIEW P_PL_SAFTBusinessPartner AS
SELECT
  TaxType,
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  Customer,
  Supplier,
  case when Customer <> '' then _BPCustomer.BusinessPartner else _BPSupplier.BusinessPartner end as BusinessPartner AS BusinessPartnerendasBusinessPartner
FROM P_PL_SAFTTaxItemAgg
LEFT OUTER JOIN I_BusinessPartnerSupplier AS _BPSupplier ON _BPSupplier.Supplier = Supplier  -- association [0..*]
LEFT OUTER JOIN I_BusinessPartnerCustomer AS _BPCustomer ON _BPCustomer.Customer = Customer  -- association [0..*]
;