ABAP:获取用户权限

函数:SUSR_USER_AUTH_FOR_OBJ_GET

DATA:
      gv_object LIKE ust12-objct VALUE 'ZBUKRS',   "权限对象
      gt_values LIKE TABLE OF usvalues.            "权限字段与对应的值
 
  CALL FUNCTION 'SUSR_USER_AUTH_FOR_OBJ_GET'
    EXPORTING
*     NEW_BUFFERING             = 3
     mandant                   = sy-mandt
      user_name                 = sy-uname
     sel_object                 = gv_object
    TABLES
      values                    = gt_values .

 

posted @ 2023-12-05 13:12  阿胖的阿多  阅读(150)  评论(0编辑  收藏  举报