C_ACMContractBusinessPartnerVH
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)
| Source | Alias | Join 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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA