I_CustomerPartnerFunction
Core for BP Partner Functions
I_CustomerPartnerFunction is a Basic CDS View that provides data about "Core for BP Partner Functions" in SAP S/4HANA. It reads from 2 data sources (knvp, tpar) and exposes 16 fields with key fields BusinessPartner, Customer, SalesOrganization, DistributionChannel, Division. It has 1 association to related views.
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Customer_to_BusinessPartner | _CustomerToBusinessPartner | $projection.Customer = _CustomerToBusinessPartner.Customer |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICUSTAPARTFUNC | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Core for BP Partner Functions | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartner | |||
| KEY | Customer | knvp | kunnr | Stock customer |
| KEY | SalesOrganization | knvp | vkorg | SD Sales Org. |
| KEY | DistributionChannel | knvp | vtweg | RefDistCh-Cust/Mat. |
| KEY | Division | knvp | spart | Source supplier |
| KEY | PartnerCounter | knvp | parza | Partner counter |
| KEY | PartnerFunction | |||
| ContactPerson | knvp | parnr | Responsible | |
| PartnerFunctionType | tpar | nrart | Partner Type | |
| pernrelseendasBPCustomerNumber | ||||
| CustomerPartnerDescription | knvp | knref | Partner Desc. | |
| DefaultPartner | knvp | defpa | Default Partner | |
| AddressID | knvp | adrnr | Sold-To Address | |
| BusinessPartnerUUID | _CustomerToBusinessPartner | BusinessPartnerUUID | UUID | |
| BusinessPartnerGrouping | ||||
| _CustomerToBusinessPartner | _CustomerToBusinessPartner |
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 I_CustomerPartnerFunction.
-- 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: ICUSTAPARTFUNC
CREATE VIEW I_CustomerPartnerFunction AS
SELECT
_CustomerToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
knvp.kunnr AS Customer,
knvp.vkorg AS SalesOrganization,
knvp.vtweg AS DistributionChannel,
knvp.spart AS Division,
knvp.parza AS PartnerCounter,
cast(knvp.parvw as parvw_unv) AS PartnerFunction,
knvp.parnr AS ContactPerson,
tpar.nrart AS PartnerFunctionType,
case when tpar.nrart = 'KU' then knvp.kunn2 when tpar.nrart = 'LI' then knvp.lifnr when tpar.nrart = 'AP' then knvp.parnr when tpar.nrart = 'PE' then knvp.pernr else '' end as BPCustomerNumber AS pernrelseendasBPCustomerNumber,
knvp.knref AS CustomerPartnerDescription,
knvp.defpa AS DefaultPartner,
knvp.adrnr AS AddressID,
_CustomerToBusinessPartner.BusinessPartnerUUID AS BusinessPartnerUUID,
_CustomerToBusinessPartner._BusinessPartner.BusinessPartnerGrouping AS BusinessPartnerGrouping
FROM knvp
INNER JOIN tpar ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Customer_to_BusinessPartner AS _CustomerToBusinessPartner ON Customer = _CustomerToBusinessPartner.Customer -- association [1..1]
;
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