R_BPUsrRoleText

DDL: R_BPUSRROLETEXT Type: view_entity BASIC

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)

SourceAliasJoin Type
bpu_rolecat_whl bpu_rolecat_whl inner
tb003 Role from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/