P_PL_SAFTBusinessPartner
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)
| Source | Alias | Join Type |
|---|---|---|
| P_PL_SAFTTaxItemAgg | P_PL_SAFTTaxItemAgg | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_BusinessPartnerSupplier | _BPSupplier | _BPSupplier.Supplier = $projection.Supplier |
| [0..*] | I_BusinessPartnerCustomer | _BPCustomer | _BPCustomer.Customer = $projection.Customer |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA