Chinaunix首页 | 论坛 | 博客
  • 博客访问: 701527
  • 博文数量: 145
  • 博客积分: 3446
  • 博客等级: 中校
  • 技术积分: 1567
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-30 13:58
文章分类

全部博文(145)

文章存档

2021年(1)

2020年(1)

2019年(1)

2018年(6)

2017年(1)

2016年(10)

2015年(12)

2014年(10)

2013年(15)

2012年(33)

2011年(21)

2010年(9)

2009年(18)

2008年(2)

2006年(5)

我的朋友

分类: Web开发

2018-09-04 14:08:32

方法 CL_CRM_UI_PROFILE_DETERM=>LOAD_PROFILES 来获取登录用户的business role。


有三个途径维护 角色

* get business role from user parameter
  IF iv_get_from_param EQ abap_true.
    me->load_from_user_parameteriv_user iv_user ).
    lv_sort 'PROFILE_NAME'.
  ENDIF.

* get business roles that are assigned to the user within organizational management
  IF iv_get_from_org EQ abap_true AND me->profiles_nested IS INITIAL.
    me->load_from_org_managementiv_user iv_user ).
    lv_sort 'PROFILE_DESCR'.
  ENDIF.

* alternatively get business roles having a PFCG role that is also assigned to the user
  IF iv_get_from_pfcg EQ abap_true AND me->profiles_nested IS INITIAL.
    me->load_from_pfcg_roleiv_user iv_user ).
    lv_sort 'PROFILE_DESCR'.
  ENDIF.


获取到 角色后, BADI:wcf_restrict_access_badi->get_business_role_white_list

可以增强,只显示特定白名单内的角色。


阅读(681) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~