I_PurchaseOrderPartnerAPI01

DDL: I_PURCHASEORDERPARTNERAPI01 SQL: IPURORDPARTAPI01 Type: view BASIC

Purchase Order Partner

I_PurchaseOrderPartnerAPI01 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

I_PurchaseOrderPartnerAPI01 is a Basic CDS View that provides data about "Purchase Order Partner" in SAP S/4HANA. It reads from 1 data source (I_PurchaseOrderPartner) and exposes 14 fields with key fields PurchaseOrder, PurchasingOrganization, SupplierSubrange, Plant, PartnerFunction. It has 1 association to related views.

SAP Help Documentation

CategoryCDS Views for Purchase Orders
Purpose
This CDS view retrieves the details on partners involved in the purchasing operation. Instead of the supplier as the order recipient, other business partners can appear in various roles, for example as goods supplier or as invoicing party. To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: M_BEST_BSA (Document type in purchase order) M_BEST_EKO (Purchasing organization in purchase order) M_BEST_EKG (Purchasing group in purchase order)

Structure
Important Fields Important fields in this view include the following: Field Name Description PurchaseOrder Purchase order number PurchasingOrganization Purchasing organization SupplierSubrange Supplier subrange Plant Plant PartnerFunction Partner function Partner counter Partner counter CreatedByUser Name of person responsible for creating the object CreationDate Record creation date Supplier Supplier SupplierHierarchyCategory Hierarchy category: supplier hierarchy SupplierContact Number of contact person EmploymentInternalID Personnel number DefaultPartner Default partner

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSourcing & Procurement
Application ComponentMM-PUR-PO
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageSourcing & Procurement for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view retrieves the details on partners involved in the purchasing operation. Instead of the supplier as the order recipient, other business partners can appear in various roles, for example as goods supplier or as invoicing party.</p> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
I_PurchaseOrderPartner partner from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PurchaseOrderAPI01 _PurchaseOrder _PurchaseOrder.PurchaseOrder = $projection.PurchaseOrder

Annotations (12)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IPURORDPARTAPI01 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
EndUserText.label Purchase Order Partner view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder I_PurchaseOrderPartner PurchaseOrder Purchasing Document Number
KEY PurchasingOrganization I_PurchaseOrderPartner PurchasingOrganization Purchasing Organization
KEY SupplierSubrange SupplierSubrange Supplier Subrange
KEY Plant Plant Valuation Area
KEY PartnerFunction Partner Function
KEY PartnerCounter PartnerCounter Partner counter
CreatedByUser I_PurchaseOrderPartner CreatedByUser Name of Person Responsible for Creating the Object
CreationDate I_PurchaseOrderPartner CreationDate Record Created On
Supplier I_PurchaseOrderPartner Supplier Account Number of Supplier
SupplierHierarchyCategory SupplierHierarchyCategory Hierarchy Category: Supplier Hierarchy
SupplierContact SupplierContact Number of Contact Person
EmploymentInternalID EmploymentInternalID WorkForce Assgmt ID
DefaultPartner DefaultPartner Default Partner
_PurchaseOrder _PurchaseOrder

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_PurchaseOrderPartnerAPI01.
-- 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: IPURORDPARTAPI01

CREATE VIEW I_PurchaseOrderPartnerAPI01 AS
SELECT
  partner.PurchaseOrder AS PurchaseOrder,
  partner.PurchasingOrganization AS PurchasingOrganization,
  SupplierSubrange,
  Plant,
  cast ( PartnerFunction as parvw preserving type ) AS PartnerFunction,
  PartnerCounter,
  partner.CreatedByUser AS CreatedByUser,
  partner.CreationDate AS CreationDate,
  partner.Supplier AS Supplier,
  SupplierHierarchyCategory,
  SupplierContact,
  EmploymentInternalID,
  DefaultPartner
FROM I_PurchaseOrderPartner AS partner
LEFT OUTER JOIN I_PurchaseOrderAPI01 AS _PurchaseOrder ON _PurchaseOrder.PurchaseOrder = PurchaseOrder  -- association [1..1]
;