1 DATA: gt_values TYPE STANDARD TABLE OF usvalues.
2 CALL FUNCTION 'SUSR_USER_AUTH_FOR_OBJ_GET'
3 EXPORTING
4 * NEW_BUFFERING = 3
5 * MANDANT = SY-MANDT
6 user_name = sy-uname
7 * SEL_OBJECT =
8 * NO_TRACE =
9 * OPTIMIZE =
10 * RESPECT_DISABLEMNT_4_AUTH_CHK =
11 * SACF_SCENARIO = ' '
12 * IMPORTING
13 * FULLY_AUTHORIZED =
14 TABLES
15 values = gt_values
16 * IT_FILTERS =
17 EXCEPTIONS
18 user_name_not_exist = 1
19 not_authorized = 2
20 internal_error = 3
21 OTHERS = 4.
22 IF sy-subrc <> 0.
23 * Implement suitable error handling here
24 ENDIF.
ABAP-获取用户权限对象函数
最新推荐文章于 2023-11-22 09:05:08 发布