P_ProdAllocPlngBusPartners

DDL: P_PRODALLOCPLNGBUSPARTNERS SQL: PPABOBJ_PLNGBPS Type: view COMPOSITE

P_ProdAllocPlngBusPartners is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_ContactPerson, I_Customer, I_PersWrkAgrmtAllSrchHelp, I_Supplier) and exposes 9 fields with key fields BusinessPartner, SDDocumentPartnerType, SDDocumentPartnerType, SDDocumentPartnerType, SDDocumentPartnerType.

Data Sources (4)

SourceAliasJoin Type
I_ContactPerson contact union
I_Customer customer from
I_PersWrkAgrmtAllSrchHelp employee union
I_Supplier vendor union

Annotations (8)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PPABOBJ_PLNGBPS view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner
KEY SDDocumentPartnerType
SupplierasBusinessPartner
KEY SDDocumentPartnerType
ContactPersonasBusinessPartner
KEY SDDocumentPartnerType
PersonWorkAgreementasBusinessPartner
KEY SDDocumentPartnerType
BusinessPartnerName I_PersWrkAgrmtAllSrchHelp PersonFullName Full Name

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 P_ProdAllocPlngBusPartners.
-- 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: PPABOBJ_PLNGBPS

CREATE VIEW P_ProdAllocPlngBusPartners AS
SELECT
  ltrim(customer.Customer,' ') AS BusinessPartner,
  'KU' AS SDDocumentPartnerType,
  customer.BPCustomerName as BusinessPartnerName AS SupplierasBusinessPartner,
  vendor.BPSupplierName as BusinessPartnerName AS ContactPersonasBusinessPartner,
  case when contact.FirstName <> '' or contact.LastName <> '' then substring(rtrim(replace(concat(contact.FirstName, concat(' &', contact.LastName)), '&', ''),' '),1,80) else '' end as BusinessPartnerName AS PersonWorkAgreementasBusinessPartner,
  employee.PersonFullName AS BusinessPartnerName
FROM I_Customer AS customer
-- UNION with additional select branch(es): I_Supplier, I_ContactPerson, I_PersWrkAgrmtAllSrchHelp
;