C_BusPartRelationship
Consumption view for BUPA relationships
C_BusPartRelationship is a Consumption CDS View that provides data about "Consumption view for BUPA relationships" in SAP S/4HANA. It reads from 1 data source (I_BusPartRelationshipTP_2) and exposes 28 fields with key fields RelationshipNumber, BusinessPartner1, BusinessPartner2, ValidityEndDate. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BusPartRelationshipTP_2 | I_BusPartRelationshipTP_2 | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_BusinessPartner | _BusinessPartner | $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner |
| [0..1] | C_BPRelshpCompanyInterest | _BPRelshpCompanyInterest | $projection.RelationshipNumber = _BPRelshpCompanyInterest.RelationshipNumber and $projection.BusinessPartner1 = _BPRelshpCompanyInterest.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelshpCompanyInterest.BusinessPartner2 and $projection.ValidityEndDate = _BPRelshpCompanyInterest.ValidityEndDate |
| [0..1] | I_BusPartRelshpCategoryVH | _BPRoleCategoryText | $projection.RelationshipCategory = _BPRoleCategoryText.RelationshipCategory and $projection.BusPartRelshpIsRoleDefinition = _BPRoleCategoryText.BusPartRelshpIsRoleDefinition and $projection.BPRelshpCatIsInFwdDirection = _BPRoleCategoryText.BPRelshpCatIsInFwdDirection |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CBUPAREL2 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Consumption view for BUPA relationships | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.type | #CONSUMPTION | view | |
| ObjectModel.text.control | #ASSOCIATED_TEXT_UI_HIDDEN | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RelationshipNumber | RelationshipNumber | ||
| KEY | BusinessPartner1 | BusinessPartner1 | ||
| KEY | BusinessPartner2 | BusinessPartner2 | ||
| KEY | ValidityEndDate | ValidityEndDate | ||
| RelationshipCategory | RelationshipCategory | |||
| ValidityStartDate | ValidityStartDate | |||
| RelationshipNumberForEdit | RelationshipNumberForEdit | |||
| BusinessPartner1ForEdit | BusinessPartner1ForEdit | |||
| BusinessPartner2ForEdit | BusinessPartner2ForEdit | |||
| ValidityEndDateForEdit | ValidityEndDateForEdit | |||
| IsStandardRelationship | IsStandardRelationship | |||
| BPRelationshipType | BPRelationshipType | |||
| BusPartRelshpIsRoleDefinition | BusPartRelshpIsRoleDefinition | |||
| BPRelshpCatIsInFwdDirection | BPRelshpCatIsInFwdDirection | |||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| LastChangedByUser | LastChangedByUser | |||
| LastChangeDate | LastChangeDate | |||
| LastChangeTime | LastChangeTime | |||
| BPRelshpCoIntrstDataIsHidden | BPRelshpCoIntrstDataIsHidden | |||
| BPRelshpCntctPersnDataIsHidden | BPRelshpCntctPersnDataIsHidden | |||
| BusPartRelshpCatDescription | _BPRoleCategoryText | BusPartRelshpCatDescription | ||
| _BusinessPartner | _BusinessPartner | |||
| _BPRelshpCompanyInterest | _BPRelshpCompanyInterest | |||
| _BusinessPartner1 | _BusinessPartner1 | |||
| _BusinessPartner2 | _BusinessPartner2 | |||
| _BPRoleCategoryText | _BPRoleCategoryText |
@AbapCatalog.sqlViewName: 'CBUPAREL2'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Consumption view for BUPA relationships'
@Metadata.allowExtensions: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XXL,
dataClass: #MASTER
}
@ObjectModel.type: #CONSUMPTION
@ObjectModel: {
semanticKey: [ 'RelationshipNumber','BusinessPartner1', 'BusinessPartner2','ValidityEndDate'],
createEnabled,
updateEnabled,
deleteEnabled,
text.control: #ASSOCIATED_TEXT_UI_HIDDEN //texts will be shown together with the Code values. if the Code values are hidden, then texts wont be visible in UI. no independent visibility for text fields
}
@VDM.viewType: #CONSUMPTION
@AbapCatalog.preserveKey:true
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view C_BusPartRelationship as select from I_BusPartRelationshipTP_2
association [1..1] to C_BusinessPartner as _BusinessPartner on $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner
association [0..1] to C_BPRelshpCompanyInterest as _BPRelshpCompanyInterest on $projection.RelationshipNumber = _BPRelshpCompanyInterest.RelationshipNumber
and $projection.BusinessPartner1 = _BPRelshpCompanyInterest.BusinessPartner1
and $projection.BusinessPartner2 = _BPRelshpCompanyInterest.BusinessPartner2
and $projection.ValidityEndDate = _BPRelshpCompanyInterest.ValidityEndDate
association [0..1] to I_BusPartRelshpCategoryVH as _BPRoleCategoryText on $projection.RelationshipCategory = _BPRoleCategoryText.RelationshipCategory
and $projection.BusPartRelshpIsRoleDefinition = _BPRoleCategoryText.BusPartRelshpIsRoleDefinition
and $projection.BPRelshpCatIsInFwdDirection = _BPRoleCategoryText.BPRelshpCatIsInFwdDirection
{
key RelationshipNumber,
key BusinessPartner1,
key BusinessPartner2,
key ValidityEndDate,
@ObjectModel.text.element: ['BusPartRelshpCatDescription']
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
@ObjectModel.mandatory: true
RelationshipCategory,
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
ValidityStartDate,
RelationshipNumberForEdit,
@ObjectModel.text.association: '_BusinessPartner1'
BusinessPartner1ForEdit,
@ObjectModel.text.association: '_BusinessPartner2'
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
@ObjectModel.mandatory: true
BusinessPartner2ForEdit,
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
@ObjectModel.mandatory: true
ValidityEndDateForEdit,
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
IsStandardRelationship,
BPRelationshipType,
BusPartRelshpIsRoleDefinition,
BPRelshpCatIsInFwdDirection,
//Texts
@ObjectModel.readOnly:true
CreatedByUser,
@ObjectModel.readOnly:true
CreationDate,
@ObjectModel.readOnly:true
CreationTime,
@ObjectModel.readOnly:true
LastChangedByUser,
@ObjectModel.readOnly:true
LastChangeDate,
@ObjectModel.readOnly:true
LastChangeTime,
BPRelshpCoIntrstDataIsHidden,
BPRelshpCntctPersnDataIsHidden,
@ObjectModel.readOnly: true
_BPRoleCategoryText.BusPartRelshpCatDescription,
@ObjectModel.association.type: [#TO_COMPOSITION_ROOT,#TO_COMPOSITION_PARENT]
_BusinessPartner,
@ObjectModel.association.type:[#TO_COMPOSITION_CHILD]
_BPRelshpCompanyInterest,
_BusinessPartner1,
_BusinessPartner2,
_BPRoleCategoryText
} where RelationshipCategory <> 'BUR001'
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