C_ACMContractBusinessPartnerVH

DDL: C_ACMCONTRACTBUSINESSPARTNERVH SQL: CPARTNERVH Type: view CONSUMPTION

Search for Business Partner

C_ACMContractBusinessPartnerVH is a Consumption CDS View that provides data about "Search for Business Partner" in SAP S/4HANA. It reads from 8 data sources and exposes 17 fields with key fields Side, Counterparty, SalePurchasingOrganization, BusinessPartner, ActiveAddressID.

Data Sources (8)

SourceAliasJoin Type
I_ACMBusinessPartnerDetailsVH BusinessPartnerDetails inner
P_CounterPartyWithSide Counterparty from
P_CounterPartyWithSide Counterparty union
I_CustomerSalesArea Customer inner
I_ACMCustPartnerDetailsVH CustomerPartnerDetails inner
I_BusinessPartnerPartFunc CustomerPartnerFunction inner
I_SupplierPurchasingOrg Supplier inner
I_SupplierPartnerFunc SupplierPartnerFunction inner

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CPARTNERVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #ORGANIZATIONAL view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
Metadata.allowExtensions true view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Search for Business Partner view

Fields (17)

KeyFieldSource TableSource FieldDescription
KEY Side P_CounterPartyWithSide Side Side
KEY Counterparty P_CounterPartyWithSide Counterparty Supplier
KEY SalePurchasingOrganization I_BusinessPartnerPartFunc SalesOrganization Purchasing Organization
KEY BusinessPartner
KEY ActiveAddressID I_ACMCustPartnerDetailsVH ActiveAddressID Address Number
BusinessPartnerName1 I_ACMCustPartnerDetailsVH BusinessPartnerName1 Name
CustomerSupplierCityName I_ACMCustPartnerDetailsVH CustomerSupplierCityName City
CustomerSupplierPostalCode I_ACMCustPartnerDetailsVH CustomerSupplierPostalCode Postal Code
SideasSide
KEY Counterparty P_CounterPartyWithSide Counterparty Supplier
KEY SalePurchasingOrganization I_SupplierPartnerFunc PurchasingOrganization Purchasing Organization
KEY ContactPerson0endasBusinessPartner
KEY ActiveAddressID I_ACMBusinessPartnerDetailsVH ActiveAddressID Address Number
BusinessPartnerName1 I_ACMBusinessPartnerDetailsVH BusinessPartnerName1 Name
CustomerSupplierCityName I_ACMBusinessPartnerDetailsVH CustomerSupplierCityName City
CustomerSupplierPostalCode I_ACMBusinessPartnerDetailsVH CustomerSupplierPostalCode Postal Code
CustomerSupplierStreetName I_ACMBusinessPartnerDetailsVH CustomerSupplierStreetName Street Code

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 C_ACMContractBusinessPartnerVH.
-- 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: CPARTNERVH

CREATE VIEW C_ACMContractBusinessPartnerVH AS
SELECT
  Counterparty.Side AS Side,
  Counterparty.Counterparty AS Counterparty,
  CustomerPartnerFunction.SalesOrganization AS SalePurchasingOrganization,
  ltrim(CustomerPartnerFunction.BPCustomerNumber,'0') AS BusinessPartner,
  CustomerPartnerDetails.ActiveAddressID AS ActiveAddressID,
  CustomerPartnerDetails.BusinessPartnerName1 AS BusinessPartnerName1,
  CustomerPartnerDetails.CustomerSupplierCityName AS CustomerSupplierCityName,
  CustomerPartnerDetails.CustomerSupplierPostalCode AS CustomerSupplierPostalCode,
  CustomerPartnerDetails.CustomerSupplierStreetName as CustomerSupplierStreetName AS SideasSide,
  case when SupplierPartnerFunction.ReferenceSupplier is not initial and SupplierPartnerFunction.ReferenceSupplier is not null and SupplierPartnerFunction.ReferenceSupplier <> '' then ltrim(SupplierPartnerFunction.ReferenceSupplier,'0') else ltrim(SupplierPartnerFunction.ContactPerson,'0') end as BusinessPartner AS ContactPerson0endasBusinessPartner,
  BusinessPartnerDetails.CustomerSupplierStreetName AS CustomerSupplierStreetName
FROM P_CounterPartyWithSide AS Counterparty
INNER JOIN I_CustomerSalesArea AS Customer ON /* join condition not captured in parsed metadata */
INNER JOIN I_BusinessPartnerPartFunc AS CustomerPartnerFunction ON /* join condition not captured in parsed metadata */
INNER JOIN I_ACMCustPartnerDetailsVH AS CustomerPartnerDetails ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierPurchasingOrg AS Supplier ON /* join condition not captured in parsed metadata */
INNER JOIN I_SupplierPartnerFunc AS SupplierPartnerFunction ON /* join condition not captured in parsed metadata */
INNER JOIN I_ACMBusinessPartnerDetailsVH AS BusinessPartnerDetails ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): P_CounterPartyWithSide
;