I_SupplierPartnerFunc_2

DDL: I_SUPPLIERPARTNERFUNC_2 SQL: ISUPLPARTFUNC2 Type: view BASIC

Interface for Supplier PF

I_SupplierPartnerFunc_2 is a Basic CDS View that provides data about "Interface for Supplier PF" in SAP S/4HANA. It reads from 2 data sources (tpar, wyt3) and exposes 15 fields with key fields Supplier, PurchasingOrganization, SupplierSubrange, Plant, PartnerFunction. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
tpar tpar inner
wyt3 wyt3 from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_SupplierPurchasingOrg _SupplierPurchasing $projection.Supplier = _SupplierPurchasing.Supplier and $projection.PurchasingOrganization = _SupplierPurchasing.PurchasingOrganization

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ISUPLPARTFUNC2 view
VDM.viewType #BASIC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Interface for Supplier PF view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY Supplier wyt3 lifnr Vendor no.
KEY PurchasingOrganization wyt3 ekorg Purchasing Org.
KEY SupplierSubrange wyt3 ltsnr Suppl. Subrange
KEY Plant wyt3 werks Receiving Plant
KEY PartnerFunction
KEY PartnerCounter wyt3 parza Partner counter
DefaultPartner wyt3 defpa Default Partner
CreationDate wyt3 erdat Entered On
CreatedByUser wyt3 ernam User Name
PartnerFunctionType tpar nrart Partner Type
pernrelseendasReferenceSupplier
ContactPerson wyt3 parnr Responsible
PersonnelNumber wyt3 pernr Personnel no.
AuthorizationGroup _SupplierPurchasing AuthorizationGroup AuthorizGroup
_SupplierPurchasing _SupplierPurchasing

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_2.
-- 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: ISUPLPARTFUNC2

CREATE VIEW I_SupplierPartnerFunc_2 AS
SELECT
  wyt3.lifnr AS Supplier,
  wyt3.ekorg AS PurchasingOrganization,
  wyt3.ltsnr AS SupplierSubrange,
  wyt3.werks AS Plant,
  cast( wyt3.parvw as parvw_unv) 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 = 'AP' then wyt3.parnr when tpar.nrart = 'PE' then wyt3.pernr else '' end as ReferenceSupplier AS pernrelseendasReferenceSupplier,
  wyt3.parnr AS ContactPerson,
  wyt3.pernr AS PersonnelNumber,
  _SupplierPurchasing.AuthorizationGroup AS AuthorizationGroup
FROM wyt3
INNER JOIN tpar ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_SupplierPurchasingOrg AS _SupplierPurchasing ON Supplier = _SupplierPurchasing.Supplier AND PurchasingOrganization = _SupplierPurchasing.PurchasingOrganization  -- association [1..1]
;