R_BPUsrRoleText
Business PartnerUser Role Text
R_BPUsrRoleText is a Basic CDS View that provides data about "Business PartnerUser Role Text" in SAP S/4HANA. It reads from 2 data sources (bpu_rolecat_whl, tb003) and exposes 4 fields with key fields Language, Role. It has 2 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| bpu_rolecat_whl | bpu_rolecat_whl | inner |
| tb003 | Role | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BusinessPartnerRoleText | _RoleText | _RoleText.BusinessPartnerRole = Role.role and _RoleText.Language = $session.system_language |
| [0..1] | I_BusinessPartnerRoleText | _RoleTextBasicRoleCategory | _RoleTextBasicRoleCategory.BusinessPartnerRole = bpu_rolecat_whl.basic_rolecategory and _RoleTextBasicRoleCategory.Language = $session.system_language |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Business PartnerUser Role Text | view | |
| ObjectModel.dataCategory | #TEXT | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| Search.searchable | true | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Language | _RoleText | Language | |
| KEY | Role | tb003 | role | |
| RoleCategory | tb003 | rolecategory | ||
| BasicRoleCategory | bpu_rolecat_whl | basic_rolecategory |
@EndUserText.label: 'Business PartnerUser Role Text'
@AbapCatalog.viewEnhancementCategory: [#NONE]
@ObjectModel.dataCategory: #TEXT
@AccessControl.authorizationCheck: #CHECK
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #SAP_INTERNAL_API
}
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XL,
dataClass: #MASTER
}
@Search.searchable: true
define view entity R_BPUsrRoleText
as select from tb003 as Role
inner join bpu_rolecat_whl on bpu_rolecat_whl.rolecategory = Role.rolecategory
and bpu_rolecat_whl.hcm_integration_code = '1' //Dependent from HCM Integration Switch
and bpu_rolecat_whl.solution_characteristic_code = '2' //Cloud & OnPremise
left outer to one join bum_wf_d_roletxt on bum_wf_d_roletxt.rolecategory = Role.rolecategory
and bum_wf_d_roletxt.spras = $session.system_language
association [0..1] to I_BusinessPartnerRoleText as _RoleText on _RoleText.BusinessPartnerRole = Role.role
and _RoleText.Language = $session.system_language
association [0..1] to I_BusinessPartnerRoleText as _RoleTextBasicRoleCategory on _RoleTextBasicRoleCategory.BusinessPartnerRole = bpu_rolecat_whl.basic_rolecategory
and _RoleTextBasicRoleCategory.Language = $session.system_language
{
@Semantics.language: true
key _RoleText.Language as Language,
key Role.role as Role,
Role.rolecategory as RoleCategory,
@UI.hidden: true
bpu_rolecat_whl.basic_rolecategory as BasicRoleCategory,
@Semantics.text: true
@EndUserText.label: 'Role Description'
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
case
when bum_wf_d_roletxt.rlctitle is not initial
then bum_wf_d_roletxt.rlctitle
when _RoleTextBasicRoleCategory.BusinessPartnerRoleShortName is not initial
then _RoleTextBasicRoleCategory.BusinessPartnerRoleShortName
else _RoleText.BusinessPartnerRoleShortName
end as BusinessPartnerRoleShortName
}
where
_RoleText.Language = $session.system_language
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNERROLETEXT",
"BPU_ROLECAT_WHL",
"BUM_WF_D_ROLETXT",
"TB003"
],
"ASSOCIATED":
[],
"BASE":
[],
"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