I_BusPartRelationshipTP_2
BO View fot BUPA Relationship
I_BusPartRelationshipTP_2 is a Transactional CDS View that provides data about "BO View fot BUPA Relationship" in SAP S/4HANA. It reads from 2 data sources (I_BPRelationship_2, I_BPRelationship_2) and exposes 47 fields with key fields RelationshipNumber, BusinessPartner1, BusinessPartner2, ValidityEndDate, BusinessPartner1. It has 2 associations to related views. Part of development package VDM_MD_BP.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_BPRelationship_2 | I_BPRelationship_2 | from |
| I_BPRelationship_2 | I_BPRelationship_2 | union_all |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BusinessPartnerTP | _BusinessPartner | $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner |
| [0..1] | I_BPRelshpCompanyInterestTP_2 | _BPRelshpCompanyInterest | $projection.RelationshipNumber = _BPRelshpCompanyInterest.RelationshipNumber and $projection.BusinessPartner1 = _BPRelshpCompanyInterest.BusinessPartner1 and $projection.BusinessPartner2 = _BPRelshpCompanyInterest.BusinessPartner2 and $projection.ValidityEndDate = _BPRelshpCompanyInterest.ValidityEndDate |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IBUPARELTP2 | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | BO View fot BUPA Relationship | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.writeDraftPersistence | bupa_rel_d | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| VDM.viewType | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | RelationshipNumber | RelationshipNumber | ||
| KEY | BusinessPartner1 | BusinessPartner1 | ||
| KEY | BusinessPartner2 | BusinessPartner2 | ||
| KEY | ValidityEndDate | ValidityEndDate | ||
| RelationshipCategory | RelationshipCategory | |||
| ValidityStartDate | ValidityStartDate | |||
| RelationshipNumberForEdit | RelationshipNumber | |||
| BusinessPartner1ForEdit | BusinessPartner1 | |||
| BusinessPartner2ForEdit | BusinessPartner2 | |||
| ValidityEndDateForEdit | ValidityEndDate | |||
| IsStandardRelationship | IsStandardRelationship | |||
| BPRelationshipType | BPRelationshipType | |||
| BusPartRelshpIsRoleDefinition | BusPartRelshpIsRoleDefinition | |||
| BPRelshpCatIsInFwdDirection | ||||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| LastChangedByUser | LastChangedByUser | |||
| LastChangeDate | LastChangeDate | |||
| LastChangeTime | LastChangeTime | |||
| _BusinessPartner | _BusinessPartner | |||
| _BPRelshpCompanyInterest | _BPRelshpCompanyInterest | |||
| _BusinessPartner1 | _BusinessPartner1 | |||
| ValidityEndDatekeyRelationshipNumber | ||||
| KEY | BusinessPartner1 | BusinessPartner2 | ||
| KEY | BusinessPartner2 | BusinessPartner1 | ||
| KEY | ValidityEndDate | ValidityEndDate | ||
| RelationshipCategory | RelationshipCategory | |||
| ValidityStartDate | ValidityStartDate | |||
| RelationshipNumberForEdit | RelationshipNumber | |||
| BusinessPartner1ForEdit | BusinessPartner2 | |||
| BusinessPartner2ForEdit | BusinessPartner1 | |||
| ValidityEndDateForEdit | ValidityEndDate | |||
| IsStandardRelationship | IsStandardRelationship | |||
| BPRelationshipType | BPRelationshipType | |||
| BusPartRelshpIsRoleDefinition | BusPartRelshpIsRoleDefinition | |||
| BPRelshpCatIsInFwdDirection | ||||
| CreatedByUser | CreatedByUser | |||
| CreationDate | CreationDate | |||
| CreationTime | CreationTime | |||
| LastChangedByUser | LastChangedByUser | |||
| LastChangeDate | LastChangeDate | |||
| LastChangeTime | LastChangeTime | |||
| _BusinessPartner | _BusinessPartner | |||
| _BPRelshpCompanyInterest | _BPRelshpCompanyInterest | |||
| _BusinessPartner1 | _BusinessPartner2 | |||
| _BusinessPartner2 | _BusinessPartner1 |
@AbapCatalog.sqlViewName: 'IBUPARELTP2'
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'BO View fot BUPA Relationship'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #B,
sizeCategory: #XXL,
dataClass: #MASTER
}
@ObjectModel: {
semanticKey: [ 'RelationshipNumber','BusinessPartner1', 'BusinessPartner2','ValidityEndDate'],
createEnabled,
updateEnabled,
deleteEnabled
}
@ObjectModel.writeDraftPersistence: 'bupa_rel_d'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.personalData.blocking: #REQUIRED
@ClientHandling.algorithm : #SESSION_VARIABLE
@Search.searchable: true
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@Consumption.dbHints: [ 'USE_HEX_PLAN' ]
define view I_BusPartRelationshipTP_2
as select from I_BPRelationship_2
association [1..1] to I_BusinessPartnerTP as _BusinessPartner on $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner
association [0..1] to I_BPRelshpCompanyInterestTP_2 as _BPRelshpCompanyInterest on $projection.RelationshipNumber = _BPRelshpCompanyInterest.RelationshipNumber
and $projection.BusinessPartner1 = _BPRelshpCompanyInterest.BusinessPartner1
and $projection.BusinessPartner2 = _BPRelshpCompanyInterest.BusinessPartner2
and $projection.ValidityEndDate = _BPRelshpCompanyInterest.ValidityEndDate
{
//I_BPRelationship
key RelationshipNumber,
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
key BusinessPartner1,
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
key BusinessPartner2,
key ValidityEndDate,
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
RelationshipCategory,
ValidityStartDate,
RelationshipNumber as RelationshipNumberForEdit,
BusinessPartner1 as BusinessPartner1ForEdit,
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
BusinessPartner2 as BusinessPartner2ForEdit,
ValidityEndDate as ValidityEndDateForEdit,
IsStandardRelationship,
BPRelationshipType,
BusPartRelshpIsRoleDefinition,
'X' as BPRelshpCatIsInFwdDirection,
//Administrative Data
CreatedByUser,
CreationDate,
CreationTime,
LastChangedByUser,
LastChangeDate,
LastChangeTime,
//Control fields
cast(
case
when RelationshipCategory = 'BURC01'
then ''
else 'X'
end as abap_boolean preserving type) as BPRelshpCoIntrstDataIsHidden,
cast(
case
when RelationshipCategory = 'BUR001'
then ''
else 'X'
end as abap_boolean preserving type) as BPRelshpCntctPersnDataIsHidden,
/* Associations */
@ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
_BusinessPartner,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
_BPRelshpCompanyInterest,
_BusinessPartner1,
_BusinessPartner2
} where RelationshipCategory <> 'BUR001'
union all select from I_BPRelationship_2
association [1..1] to I_BusinessPartnerTP as _BusinessPartner on $projection.BusinessPartner1 = _BusinessPartner.BusinessPartner
association [0..1] to I_BPRelshpCompanyInterestTP_2 as _BPRelshpCompanyInterest on $projection.RelationshipNumber = _BPRelshpCompanyInterest.RelationshipNumber
and $projection.BusinessPartner1 = _BPRelshpCompanyInterest.BusinessPartner1
and $projection.BusinessPartner2 = _BPRelshpCompanyInterest.BusinessPartner2
and $projection.ValidityEndDate = _BPRelshpCompanyInterest.ValidityEndDate
{//I_BPRelationship
key RelationshipNumber,
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
key BusinessPartner2 as BusinessPartner1,
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
key BusinessPartner1 as BusinessPartner2,
key ValidityEndDate,
@Search.defaultSearchElement: true
@Search.ranking: #HIGH
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
RelationshipCategory,
ValidityStartDate,
RelationshipNumber as RelationshipNumberForEdit,
BusinessPartner2 as BusinessPartner1ForEdit,
@ObjectModel.readOnly: 'EXTERNAL_CALCULATION'
BusinessPartner1 as BusinessPartner2ForEdit,
ValidityEndDate as ValidityEndDateForEdit,
IsStandardRelationship,
BPRelationshipType,
BusPartRelshpIsRoleDefinition,
cast(' ' as abap_boolean) as BPRelshpCatIsInFwdDirection,
//Administrative Data
CreatedByUser,
CreationDate,
CreationTime,
LastChangedByUser,
LastChangeDate,
LastChangeTime,
//Control fields
cast(
case
when RelationshipCategory = 'BURC01'
then ''
else 'X'
end as abap_boolean preserving type) as BPRelshpCoIntrstDataIsHidden,
cast(
case
when RelationshipCategory = 'BUR001'
then ''
else 'X'
end as abap_boolean preserving type) as BPRelshpCntctPersnDataIsHidden,
/* Associations */
@ObjectModel.association.type: [ #TO_COMPOSITION_ROOT, #TO_COMPOSITION_PARENT ]
_BusinessPartner,
@ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
_BPRelshpCompanyInterest,
_BusinessPartner2 as _BusinessPartner1,
_BusinessPartner1 as _BusinessPartner2
} 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