R_BPUsrRoleCurrent
Business User Role Current (valid today)
R_BPUsrRoleCurrent is a Composite CDS View that provides data about "Business User Role Current (valid today)" in SAP S/4HANA. It reads from 1 data source (R_BPUsrRole) and exposes 8 fields with key field BusinessPartnerUUID. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| R_BPUsrRole | R_BPUsrRole | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_BusinessPartnerRoleText | _RoleText | $projection.BusinessPartnerRole = _RoleText.BusinessPartnerRole and _RoleText.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Business User Role Current (valid today) | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessPartnerUUID | R_BPUsrRole | BusinessPartnerUUID | |
| BusinessPartner | R_BPUsrRole | BusinessPartner | ||
| BusinessPartnerRole | R_BPUsrRole | BusinessPartnerRole | ||
| BPUsrRoleValidFromDate | R_BPUsrRole | BPUsrRoleValidFromDate | ||
| BPUsrRoleValidToDate | R_BPUsrRole | BPUsrRoleValidToDate | ||
| RoleCategory | R_BPUsrRole | RoleCategory | ||
| BPIdentificationCategory | R_BPUsrRole | BPIdentificationCategory | ||
| BPRoleCategoryUsageCode | R_BPUsrRole | BPRoleCategoryUsageCode |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED /*#CHECK*/
@EndUserText.label: 'Business User Role Current (valid today)'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #XL,
dataClass: #MASTER
}
@VDM: {
viewType: #COMPOSITE,
lifecycle.contract.type: #SAP_INTERNAL_API
}
define view entity R_BPUsrRoleCurrent
as select from R_BPUsrRole
left outer to one join R_BPUsrRoleText on R_BPUsrRoleText.RoleCategory = R_BPUsrRole.RoleCategory
and R_BPUsrRoleText.Language = $session.system_language
association [0..1] to I_BusinessPartnerRoleText as _RoleText on $projection.BusinessPartnerRole = _RoleText.BusinessPartnerRole
and _RoleText.Language = $session.system_language
{
key R_BPUsrRole.BusinessPartnerUUID as BusinessPartnerUUID,
R_BPUsrRole.BusinessPartner as BusinessPartner,
R_BPUsrRole.BusinessPartnerRole as BusinessPartnerRole,
R_BPUsrRole.BPUsrRoleValidFromDate as BPUsrRoleValidFromDate,
R_BPUsrRole.BPUsrRoleValidToDate as BPUsrRoleValidToDate,
R_BPUsrRole.RoleCategory as RoleCategory,
R_BPUsrRole.BPIdentificationCategory as BPIdentificationCategory,
R_BPUsrRole.BPRoleCategoryUsageCode as BPRoleCategoryUsageCode,
case
when R_BPUsrRoleText.BusinessPartnerRoleShortName is not initial
then R_BPUsrRoleText.BusinessPartnerRoleShortName
else _RoleText.BusinessPartnerRoleShortName
end as BusinessPartnerRoleShortName
}
where
R_BPUsrRole.BPUsrRoleValidFromDate <= $session.system_date
and R_BPUsrRole.BPUsrRoleValidToDate >= $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BUSINESSPARTNERROLETEXT",
"R_BPUSRROLE",
"R_BPUSRROLETEXT"
],
"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