I_PurgDocumentPartnerEnh

DDL: I_PURGDOCUMENTPARTNERENH SQL: IPURGDOCPARTNENH Type: view COMPOSITE Package: APPL_MM_COMP_PARTNER

Purchasing Document Partner Enhanced

I_PurgDocumentPartnerEnh is a Composite CDS View that provides data about "Purchasing Document Partner Enhanced" in SAP S/4HANA. It reads from 1 data source (I_PurchasingDocumentPartner) and exposes 27 fields with key fields PurchasingDocument, PurchasingDocumentItem, PurchasingOrganization, SupplierSubrange, Plant. It has 3 associations to related views. Part of development package APPL_MM_COMP_PARTNER.

Data Sources (1)

SourceAliasJoin Type
I_PurchasingDocumentPartner I_PurchasingDocumentPartner from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_SuplrContactCard _SupplierContactCard _SupplierContactCard.ContactCardID = $projection.Supplier
[0..1] P_ContactCardSupplierContact _ContactCardSupplierContact _ContactCardSupplierContact.ContactCardSemanticObjectType = 'SupplierContact' and _ContactCardSupplierContact.ContactCardSemanticObjectID = $projection.SupplierContact and _ContactCardSupplierContact.ContactCardType = 'SupplierContact'
[0..*] I_PartnerTypeText _PartnerTypeText _PartnerTypeText.PurchasingDocumentPartnerType = $projection.PurchasingDocumentPartnerType

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPURGDOCPARTNENH view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
AccessControl.personalData.blocking #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
EndUserText.label Purchasing Document Partner Enhanced view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument I_PurchasingDocumentPartner PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem I_PurchasingDocumentPartner PurchasingDocumentItem Purchasing Doc. Item
KEY PurchasingOrganization I_PurchasingDocumentPartner PurchasingOrganization Purchasing Organization
KEY SupplierSubrange I_PurchasingDocumentPartner SupplierSubrange Suppl. Subrange
KEY Plant I_PurchasingDocumentPartner Plant Valuation Area
KEY PartnerFunction I_PurchasingDocumentPartner PartnerFunction Partner Functn
KEY PartnerCounter I_PurchasingDocumentPartner PartnerCounter Partner counter
PurchasingDocumentCategory I_PurchasingDocumentPartner PurchasingDocumentCategory Doc. Category
PurchasingDocumentType I_PurchasingDocumentPartner PurchasingDocumentType RFQ Type
CreatedByUser I_PurchasingDocumentPartner CreatedByUser User Name
CreationDate I_PurchasingDocumentPartner CreationDate Time Stamp
PurchasingDocumentPartnerType PurchasingDocumentPartnerType Partner Type
Supplier I_PurchasingDocumentPartner Supplier Supplier
SupplierContact I_PurchasingDocumentPartner SupplierContact Contact Person
PersonWorkAgreement I_PurchasingDocumentPartner PersonWorkAgreement Personnel No.
EmploymentInternalID I_PurchasingDocumentPartner EmploymentInternalID WorkForce Assgmt ID
DefaultPartner I_PurchasingDocumentPartner DefaultPartner Default Partner
_PurchasingDocument _PurchasingDocument
_PurchasingDocumentItem _PurchasingDocumentItem
_PurchasingOrganization _PurchasingOrganization
_Plant _Plant
_PartnerFunction _PartnerFunction
_PartnerFunctionText _PartnerFunctionText
_PartnerTypeText _PartnerTypeText
_Supplier _Supplier
_SupplierContact _SupplierContact
_PersonWorkAgreement _PersonWorkAgreement

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_PurgDocumentPartnerEnh.
-- 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: IPURGDOCPARTNENH

CREATE VIEW I_PurgDocumentPartnerEnh AS
SELECT
  I_PurchasingDocumentPartner.PurchasingDocument AS PurchasingDocument,
  I_PurchasingDocumentPartner.PurchasingDocumentItem AS PurchasingDocumentItem,
  I_PurchasingDocumentPartner.PurchasingOrganization AS PurchasingOrganization,
  I_PurchasingDocumentPartner.SupplierSubrange AS SupplierSubrange,
  I_PurchasingDocumentPartner.Plant AS Plant,
  I_PurchasingDocumentPartner.PartnerFunction AS PartnerFunction,
  I_PurchasingDocumentPartner.PartnerCounter AS PartnerCounter,
  I_PurchasingDocumentPartner.PurchasingDocumentCategory AS PurchasingDocumentCategory,
  I_PurchasingDocumentPartner.PurchasingDocumentType AS PurchasingDocumentType,
  I_PurchasingDocumentPartner.CreatedByUser AS CreatedByUser,
  I_PurchasingDocumentPartner.CreationDate AS CreationDate,
  PurchasingDocumentPartnerType,
  I_PurchasingDocumentPartner.Supplier AS Supplier,
  I_PurchasingDocumentPartner.SupplierContact AS SupplierContact,
  I_PurchasingDocumentPartner.PersonWorkAgreement AS PersonWorkAgreement,
  I_PurchasingDocumentPartner.EmploymentInternalID AS EmploymentInternalID,
  I_PurchasingDocumentPartner.DefaultPartner AS DefaultPartner
FROM I_PurchasingDocumentPartner
LEFT OUTER JOIN I_SuplrContactCard AS _SupplierContactCard ON _SupplierContactCard.ContactCardID = Supplier  -- association [0..1]
LEFT OUTER JOIN P_ContactCardSupplierContact AS _ContactCardSupplierContact ON _ContactCardSupplierContact.ContactCardSemanticObjectType = 'SupplierContact' AND _ContactCardSupplierContact.ContactCardSemanticObjectID = SupplierContact AND _ContactCardSupplierContact.ContactCardType = 'SupplierContact'  -- association [0..1]
LEFT OUTER JOIN I_PartnerTypeText AS _PartnerTypeText ON _PartnerTypeText.PurchasingDocumentPartnerType = PurchasingDocumentPartnerType  -- association [0..*]
;