R_CustomerContactInclDraft
Customer Contact with Draft
R_CustomerContactInclDraft is a Composite CDS View that provides data about "Customer Contact with Draft" in SAP S/4HANA. It reads from 2 data sources (I_CustomerContactAttribute, I_CustomerContactAttributeDrft) and exposes 10 fields with key field CustomerContactUUID. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CustomerContactAttribute | I_CustomerContactAttribute | from |
| I_CustomerContactAttributeDrft | I_CustomerContactAttributeDrft | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CustomerContactAttributeDrft | _CustomerContactDraft | $projection.CustomerContactUUID = _CustomerContactDraft.CustomerContactUUID |
| [0..1] | I_DraftAdministrativeData | _DraftAdministrativeData | $projection.DraftAdministrativeDataUUID = _DraftAdministrativeData.DraftUUID and _DraftAdministrativeData.DraftEntityType = 'R_CUSTOMERCONTACTATTRIBUTETP' |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Customer Contact with Draft | view | |
| AbapCatalog.sqlViewName | RCCTDRAFT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerContactUUID | CustomerContactUUID | ||
| DraftAdministrativeDataUUID | _CustomerContactDraft | DraftAdministrativeDataUUID | ||
| BusinessPartner | BusinessPartner | |||
| CollectionSegment | CollectionSegment | |||
| _BusinessPartner | _BusinessPartner | |||
| DraftAdministrativeDataUUID | DraftAdministrativeDataUUID | |||
| BusinessPartner | BusinessPartner | |||
| CollectionSegment | CollectionSegment | |||
| _BusinessPartner | _BusinessPartner | |||
| _CollectionSegment | _CollectionSegment |
@EndUserText.label: 'Customer Contact with Draft'
@AbapCatalog: { sqlViewName: 'RCCTDRAFT',
compiler: { compareFilter: true },
preserveKey: true }
@AccessControl: { authorizationCheck: #MANDATORY }
@VDM: { viewType: #COMPOSITE,
lifecycle: { contract: { type: #SAP_INTERNAL_API } } }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #X,
sizeCategory: #L,
dataClass: #TRANSACTIONAL } }
define view R_CustomerContactInclDraft
as select from I_CustomerContactAttribute
// Draft
association [0..1] to I_CustomerContactAttributeDrft as _CustomerContactDraft on $projection.CustomerContactUUID = _CustomerContactDraft.CustomerContactUUID
{
key CustomerContactUUID,
_CustomerContactDraft.DraftAdministrativeDataUUID,
BusinessPartner,
CollectionSegment,
_BusinessPartner,
_CollectionSegment
}
union all select from I_CustomerContactAttributeDrft
association [0..1] to I_DraftAdministrativeData as _DraftAdministrativeData on $projection.DraftAdministrativeDataUUID = _DraftAdministrativeData.DraftUUID
and _DraftAdministrativeData.DraftEntityType = 'R_CUSTOMERCONTACTATTRIBUTETP'
{
key CustomerContactUUID,
DraftAdministrativeDataUUID,
BusinessPartner,
CollectionSegment,
_BusinessPartner,
_CollectionSegment
}
where
HasActiveEntity <> 'X'
and _DraftAdministrativeData.DraftIsCreatedByMe = 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CUSTOMERCONTACTATTRIBUTE",
"I_CUSTOMERCONTACTATTRIBUTEDRFT",
"I_DRAFTADMINISTRATIVEDATA"
],
"ASSOCIATED":
[
"I_BUSINESSPARTNER",
"I_COLLECTIONSEGMENT",
"I_CUSTOMERCONTACTATTRIBUTEDRFT"
],
"BASE":
[
"I_CUSTOMERCONTACTATTRIBUTE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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