/DMBE/C_CompanyCode_w_BP
Company Code with BP
/DMBE/C_CompanyCode_w_BP is a CDS View that provides data about "Company Code with BP" in SAP S/4HANA. It reads from 5 data sources (/dmbe/i_Bp_Company_Code, I_CompanyCode, I_CompanyCode, /dmbe/i_CompanyCode_Enabled, /dmbe/i_CompanyCode_Enabled) and exposes 15 fields with key fields CompanyCode, BPCounterParty, BPCounterParty. It has 1 association to related views.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| /dmbe/i_Bp_Company_Code | _Bp_Company_Code | inner |
| I_CompanyCode | _Company | from |
| I_CompanyCode | _Company | union_all |
| /dmbe/i_CompanyCode_Enabled | _EnabledCompany | inner |
| /dmbe/i_CompanyCode_Enabled | _EnabledCompany | inner |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_DCBBusinessPartner | _BusinessPartner | _BusinessPartner.BusinessPartner = $projection.BPCounterParty |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.sqlViewName | /DMBE/CCOMPWBP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Company Code with BP | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_CompanyCode | CompanyCode | Receiver Company Code |
| KEY | BPCounterParty | /dmbe/i_Bp_Company_Code | BPCounterParty | Counterparty |
| CompanyCodeName | /dmbe/i_CompanyCode_Enabled | companyname | Text | |
| Country | Country | Venue: Ctry/Reg | ||
| Company | Company | Owner | ||
| _Country | _Country | |||
| _GlobalCompany | _GlobalCompany | |||
| CompanyCodeasCompanyCode | ||||
| KEY | BPCounterParty | Counterparty | ||
| CompanyCodeName | /dmbe/i_CompanyCode_Enabled | companyname | Text | |
| Country | Country | Venue: Ctry/Reg | ||
| Company | Company | Owner | ||
| _Country | _Country | |||
| _GlobalCompany | _GlobalCompany | |||
| _BusinessPartner | _BusinessPartner |
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 /DMBE/C_CompanyCode_w_BP.
-- 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: /DMBE/CCOMPWBP
CREATE VIEW /DMBE/C_CompanyCode_w_BP AS
SELECT
_Company.CompanyCode AS CompanyCode,
_Bp_Company_Code.BPCounterParty AS BPCounterParty,
_EnabledCompany.companyname AS CompanyCodeName,
Country,
Company
FROM I_CompanyCode AS _Company
INNER JOIN /dmbe/i_CompanyCode_Enabled AS _EnabledCompany ON /* join condition not captured in parsed metadata */
INNER JOIN /dmbe/i_Bp_Company_Code AS _Bp_Company_Code ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_DCBBusinessPartner AS _BusinessPartner ON _BusinessPartner.BusinessPartner = BPCounterParty -- association [0..1]
-- UNION ALL with additional select branch(es): I_CompanyCode
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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