I_CollCustDsputCoCodeAssgmt
Customers Company Code Assignment
I_CollCustDsputCoCodeAssgmt is a Composite CDS View that provides data about "Customers Company Code Assignment" in SAP S/4HANA. It reads from 3 data sources (I_CollsSgmtCompanyCodeAssgmt, I_CustomerCompany, I_DsputCaseCompanyCodeDfltVal) and exposes 8 fields with key fields Customer, CollectionSegment, CompanyCode. It has 4 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_CollsSgmtCompanyCodeAssgmt | I_CollsSgmtCompanyCodeAssgmt | inner |
| I_CustomerCompany | I_CustomerCompany | inner |
| I_DsputCaseCompanyCodeDfltVal | I_DsputCaseCompanyCodeDfltVal | inner |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | I_BusinessPartner | _BusinessPartner | $projection.BusinessPartner = _BusinessPartner.BusinessPartner |
| [0..1] | I_CollectionSegment | _CollectionSegment | $projection.CollectionSegment = _CollectionSegment.CollectionSegment |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ICLSCSTDSPCMPCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Customers Company Code Assignment | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.representativeKey | CompanyCode | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Customer | P_CollsAccountCollsSegment | Customer | |
| KEY | CollectionSegment | P_CollsAccountCollsSegment | CollectionSegment | |
| KEY | CompanyCode | I_DsputCaseCompanyCodeDfltVal | CompanyCode | |
| BusinessPartner | P_CollsAccountCollsSegment | BusinessPartner | ||
| _Customer | _Customer | |||
| _CompanyCode | _CompanyCode | |||
| _CollectionSegment | _CollectionSegment | |||
| _BusinessPartner | _BusinessPartner |
@AbapCatalog: { sqlViewName: 'ICLSCSTDSPCMPCD',
compiler: { compareFilter: true },
preserveKey: true }
@AccessControl: { authorizationCheck: #CHECK,
personalData: { blocking: #BLOCKED_DATA_EXCLUDED } }
@EndUserText: { label: 'Customers Company Code Assignment' }
@VDM: { viewType: #COMPOSITE,
lifecycle: { contract: { type: #PUBLIC_LOCAL_API } } }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #C,
sizeCategory: #S,
dataClass: #MIXED },
semanticKey: [ 'CompanyCode' ],
representativeKey: 'CompanyCode' }
define root view I_CollCustDsputCoCodeAssgmt
as select distinct from P_CollsAccountCollsSegment
inner join I_CollsSgmtCompanyCodeAssgmt on P_CollsAccountCollsSegment.CollectionSegment = I_CollsSgmtCompanyCodeAssgmt.CollectionSegment
inner join I_CustomerCompany on I_CollsSgmtCompanyCodeAssgmt.CompanyCode = I_CustomerCompany.CompanyCode
and P_CollsAccountCollsSegment.Customer = I_CustomerCompany.Customer
inner join I_DsputCaseCompanyCodeDfltVal on I_CustomerCompany.CompanyCode = I_DsputCaseCompanyCodeDfltVal.CompanyCode
// VDM Associations
// Customer
association [0..1] to I_Customer as _Customer on $projection.Customer = _Customer.Customer
// Company Code
association [0..1] to I_CompanyCode as _CompanyCode on $projection.CompanyCode = _CompanyCode.CompanyCode
// Business Partner
association [0..1] to I_BusinessPartner as _BusinessPartner on $projection.BusinessPartner = _BusinessPartner.BusinessPartner
// Collection Segment
association [0..1] to I_CollectionSegment as _CollectionSegment on $projection.CollectionSegment = _CollectionSegment.CollectionSegment
{
// VDM Fields
key P_CollsAccountCollsSegment.Customer as Customer,
key P_CollsAccountCollsSegment.CollectionSegment as CollectionSegment,
key I_DsputCaseCompanyCodeDfltVal.CompanyCode as CompanyCode,
P_CollsAccountCollsSegment.BusinessPartner as BusinessPartner,
// Exposed Associations
_Customer,
_CompanyCode,
_CollectionSegment,
_BusinessPartner
}
where
OriginType = '000'
Learn More
- 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 Annotations — A Complete Guide
- 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