P_BPPartnerFunctionNumber
Union view of various partner types
P_BPPartnerFunctionNumber is a Composite CDS View that provides data about "Union view of various partner types" in SAP S/4HANA. It reads from 4 data sources (I_ContactPerson, I_Customer, I_PersWrkAgrmtSrchHelp_1, I_Supplier) and exposes 28 fields with key fields BusinessPartner, PartnerFunctionType, PartnerFunctionType, PartnerFunctionType, PartnerFunctionType. Part of development package VDM_MD_BP.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_ContactPerson | I_ContactPerson | union |
| I_Customer | I_Customer | from |
| I_PersWrkAgrmtSrchHelp_1 | I_PersWrkAgrmtSrchHelp_1 | union |
| I_Supplier | I_Supplier | union |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PBPPFNUMBER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | I_Customer | Customer | Sold-to Party |
| KEY | PartnerFunctionType | |||
| BusinessPartnerName | Full Name | |||
| OrganizationBPName1 | I_Customer | OrganizationBPName1 | Last Name | |
| BusinessPartnerName1 | I_Customer | BusinessPartnerName1 | Last Name | |
| OrganizationBPName2 | I_Customer | OrganizationBPName2 | First Name | |
| BusinessPartnerName2 | I_Customer | BusinessPartnerName2 | First Name | |
| SupplierasBusinessPartner | ||||
| KEY | PartnerFunctionType | |||
| BusinessPartnerName | Full Name | |||
| OrganizationBPName1 | I_Supplier | OrganizationBPName1 | Last Name | |
| BusinessPartnerName1 | I_Supplier | BusinessPartnerName1 | Last Name | |
| OrganizationBPName2 | I_Supplier | OrganizationBPName2 | First Name | |
| BusinessPartnerName2 | I_Supplier | BusinessPartnerName2 | First Name | |
| KEY | PartnerFunctionType | |||
| BusinessPartnerName | PersonFullName | Full Name | ||
| OrganizationBPName1 | LastName | Last Name | ||
| BusinessPartnerName1 | LastName | Last Name | ||
| OrganizationBPName2 | FirstName | First Name | ||
| BusinessPartnerName2 | FirstName | First Name | ||
| ContactPersonasBusinessPartner | ||||
| KEY | PartnerFunctionType | |||
| BusinessPartnerName | Full Name | |||
| OrganizationBPName1 | I_ContactPerson | LastName | Last Name | |
| BusinessPartnerName1 | I_ContactPerson | LastName | Last Name | |
| OrganizationBPName2 | I_ContactPerson | FirstName | First Name | |
| BusinessPartnerName2 | I_ContactPerson | FirstName | First Name | |
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed |
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_BPPartnerFunctionNumber.
-- 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: PBPPFNUMBER
CREATE VIEW P_BPPartnerFunctionNumber AS
SELECT
I_Customer.Customer AS BusinessPartner,
cast ( 'KU' as char2 ) AS PartnerFunctionType,
I_Customer._CustomerToBusinessPartner._BusinessPartner.BusinessPartnerName AS BusinessPartnerName,
I_Customer.OrganizationBPName1 AS OrganizationBPName1,
I_Customer.BusinessPartnerName1 AS BusinessPartnerName1,
I_Customer.OrganizationBPName2 AS OrganizationBPName2,
I_Customer.BusinessPartnerName2 AS BusinessPartnerName2,
I_Customer.IsBusinessPurposeCompleted AS SupplierasBusinessPartner,
IsBusinessPurposeCompleted AS ContactPersonasBusinessPartner,
IsBusinessPurposeCompleted
FROM I_Customer
-- UNION with additional select branch(es): I_Supplier, I_PersWrkAgrmtSrchHelp_1, I_ContactPerson
;
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