P_BPToSuplrCustCoCodeMapping

DDL: P_BPTOSUPLRCUSTCOCODEMAPPING Type: view_entity COMPOSITE

P_BPToSuplrCustCoCodeMapping is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_CompanyCode, I_CompanyCode, I_CustomerCompany, I_SupplierCompany) and exposes 7 fields with key fields BusinessPartner, BusinessPartnerUUID, CompanyCode, BusinessPartnerUUID, CompanyCode.

Data Sources (4)

SourceAliasJoin Type
I_CompanyCode _CompanyCode inner
I_CompanyCode _CompanyCode inner
I_CustomerCompany _CustomerCompany union
I_SupplierCompany _SupplierCompany from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MIXED view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner
KEY BusinessPartnerUUID
KEY CompanyCode I_SupplierCompany CompanyCode Receiver Company Code
BusinessPartner
KEY BusinessPartnerUUID
KEY CompanyCode I_CustomerCompany CompanyCode Receiver Company Code
Country I_CompanyCode Country Venue: Ctry/Reg

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_BPToSuplrCustCoCodeMapping.
-- 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.

CREATE VIEW P_BPToSuplrCustCoCodeMapping AS
SELECT
  _SupplierCompany._Supplier._SupplierToBusinessPartner._BusinessPartner.BusinessPartner AS BusinessPartner,
  _SupplierCompany._Supplier._SupplierToBusinessPartner.BusinessPartnerUUID AS BusinessPartnerUUID,
  _SupplierCompany.CompanyCode AS CompanyCode,
  _CompanyCode.Country AS Country
FROM I_SupplierCompany AS _SupplierCompany
INNER JOIN I_CompanyCode AS _CompanyCode ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_CustomerCompany
;