I_SupplierPartnerFunc
Supplier Purchasing Partner Function
I_SupplierPartnerFunc (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
SupplierPartnerFunction · Database & Data Management
I_SupplierPartnerFunc is a Basic CDS View (Dimension) that provides data about "Supplier Purchasing Partner Function" in SAP S/4HANA. It reads from 2 data sources (tpar, wyt3) and exposes 20 fields with key fields Supplier, PurchasingOrganization, SupplierSubrange, Plant, PartnerFunction. It has 5 associations to related views.
SAP Help Documentation
| Category | CDS Views for Business Partner |
|---|---|
| Data Category | DIMENSION |
This CDS view is designed to provide detailed information about supplier partner functions within a purchasing organization. It integrates data from various tables to offer a comprehensive view of supplier relationships, including their roles, associated purchasing organizations, and other relevant attributes. This CDS view provides the data to answer the following business questions: What are the partner functions associated with each supplier within a specific purchasing organization? Who are the default partners for suppliers, and what are their creation details? What types of partner functions are assigned to suppliers, and how are they categorized? How can suppliers be referenced based on their partner function type? What are the contact details, such as contact person and personnel number, for each supplier partner function? What is the authorization group associated with a supplier's purchasing organization? How are suppliers linked to specific plants and supplier subranges?
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: BEGRU_LFA1 – Authorization Group for Suppliers EKORG – Purchasing Organization B_BUP_DCPD – Business Partner Processing
Structure
Important Fields Important fields in this view include the following: Field Name Description Supplier Supplier ID PurchasingOrganization Purchasing Organization SupplierSubrange Supplier Subrange Plant Plant PartnerFunction Partner Function PartnerCounter Partner counter DefaultPartner Default Partner CreationDate Created On CreatedByUser Name of the person responsible for creating the object PartnerFunctionType Partner Type ReferenceSupplier Reference to other Supplier ContactPerson Number of Contact Person PersonnelNumber Personnel Number AuthorizationGroup Authorization Group
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Database & Data Management |
| Application Component | LO-MD-BP |
| Capabilities | Association Target for Defining CDS Entities, Analytical Dimension, Data Source for Data Extraction |
| Package | Database & Data Management for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_PurchasingOrganization | _PurchasingOrganization | $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization |
| [0..1] | I_SupplierSubrange | _SupplierSubrange | $projection.Supplier = _SupplierSubrange.Supplier and $projection.SupplierSubrange = _SupplierSubrange.SupplierSubrange |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_SupplierPartnerCounter | _SupplierPartnerCounter | $projection.PartnerCounter = _SupplierPartnerCounter.PartnerCounter |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISUPLPARTFUNC | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.sapObjectNodeType.name | SupplierPartnerFunction | view | |
| ObjectModel.representativeKey | PartnerFunction | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Supplier Purchasing Partner Function | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Supplier | wyt3 | lifnr | Account Number of Supplier |
| KEY | PurchasingOrganization | wyt3 | ekorg | Purchasing Organization |
| KEY | SupplierSubrange | wyt3 | ltsnr | Supplier Subrange |
| KEY | Plant | wyt3 | werks | Receiving Plant |
| KEY | PartnerFunction | wyt3 | parvw | Partner Function |
| KEY | PartnerCounter | wyt3 | parza | Partner counter |
| DefaultPartner | wyt3 | defpa | Default Partner | |
| CreationDate | wyt3 | erdat | Record Created On | |
| CreatedByUser | wyt3 | ernam | Name of Person Responsible for Creating the Object | |
| PartnerFunctionType | tpar | nrart | Type of partner number | |
| pernrelseendasReferenceSupplier | ||||
| ContactPerson | parnr | Number of Contact Person | ||
| PersonnelNumber | pernr | Personnel Number | ||
| AuthorizationGroup | _SupplierPurchasing | AuthorizationGroup | Authorization Group | |
| _SupplierPurchasing | _SupplierPurchasing | |||
| _Supplier | _Supplier | |||
| _PurchasingOrganization | _PurchasingOrganization | |||
| _SupplierSubrange | _SupplierSubrange | |||
| _Plant | _Plant | |||
| _SupplierPartnerCounter | _SupplierPartnerCounter |
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_SupplierPartnerFunc.
-- 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: ISUPLPARTFUNC
CREATE VIEW I_SupplierPartnerFunc AS
SELECT
wyt3.lifnr AS Supplier,
wyt3.ekorg AS PurchasingOrganization,
wyt3.ltsnr AS SupplierSubrange,
wyt3.werks AS Plant,
wyt3.parvw AS PartnerFunction,
wyt3.parza AS PartnerCounter,
wyt3.defpa AS DefaultPartner,
wyt3.erdat AS CreationDate,
wyt3.ernam AS CreatedByUser,
tpar.nrart AS PartnerFunctionType,
case when tpar.nrart = 'LI' then wyt3.lifn2 when tpar.nrart = 'WK' then wyt3.werks when tpar.nrart = 'AP' then wyt3.parnr when tpar.nrart = 'PE' then wyt3.pernr else '' end as ReferenceSupplier AS pernrelseendasReferenceSupplier,
parnr AS ContactPerson,
pernr AS PersonnelNumber,
_SupplierPurchasing.AuthorizationGroup AS AuthorizationGroup
FROM wyt3
INNER JOIN tpar ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [1..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN I_SupplierSubrange AS _SupplierSubrange ON Supplier = _SupplierSubrange.Supplier AND SupplierSubrange = _SupplierSubrange.SupplierSubrange -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_SupplierPartnerCounter AS _SupplierPartnerCounter ON PartnerCounter = _SupplierPartnerCounter.PartnerCounter -- association [0..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