I_SupplierPartnerFunc

DDL: I_SUPPLIERPARTNERFUNC SQL: ISUPLPARTFUNC Type: view BASIC

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

CategoryCDS Views for Business Partner
Data CategoryDIMENSION
Purpose
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

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessDatabase & Data Management
Application ComponentLO-MD-BP
CapabilitiesAssociation Target for Defining CDS Entities, Analytical Dimension, Data Source for Data Extraction
PackageDatabase & Data Management for SAP S/4HANA Cloud Private Edition

Documentation

Data Sources (2)

SourceAliasJoin Type
tpar tpar inner
wyt3 wyt3 from

Associations (5)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;