zoukankan      html  css  js  c++  java
  • 如何取得用户参数文件中的parameters-[BAPI_USER_GET_DETAIL]

    TCode:SU01或SU3中可以看到用户参数文件(user profile)中的parameter :

    这个parameters可以通过函数 BAPI_USER_GET_DETAIL

    例子代码

    REPORT ztest_get_user_parameter.
    
    DATA:lit_ret  TYPE STANDARD TABLE OF bapiret2,
         lit_para TYPE STANDARD TABLE OF bapiparam,
         lwa_para TYPE bapiparam.
    
    CALL FUNCTION 'BAPI_USER_GET_DETAIL'
      EXPORTING
        username  = sy-uname
    *   CACHE_RESULTS        = 'X'
    * IMPORTING
    *   LOGONDATA =
    *   DEFAULTS  =
    *   ADDRESS   =
    *   COMPANY   =
    *   SNC       =
    *   REF_USER  =
    *   ALIAS     =
    *   UCLASS    =
    *   LASTMODIFIED         =
    *   ISLOCKED  =
    *   IDENTITY  =
    *   ADMINDATA =
      TABLES
        parameter = lit_para
    *   PROFILES  =
    *   ACTIVITYGROUPS       =
        return    = lit_ret
    *   ADDTEL    =
    *   ADDFAX    =
    *   ADDTTX    =
    *   ADDTLX    =
    *   ADDSMTP   =
    *   ADDRML    =
    *   ADDX400   =
    *   ADDRFC    =
    *   ADDPRT    =
    *   ADDSSF    =
    *   ADDURI    =
    *   ADDPAG    =
    *   ADDCOMREM =
    *   PARAMETER1           =
    *   GROUPS    =
    *   UCLASSSYS =
    *   EXTIDHEAD =
    *   EXTIDPART =
    *   SYSTEMS   =
      .
    LOOP AT lit_para INTO lwa_para.
      WRITE:/ lwa_para-parid,lwa_para-partxt,lwa_para-parva.
    ENDLOOP.

    运行结果:

    也可以在表USR05中直接抽取数据:

    以上。

  • 相关阅读:
    idapython常用api记录7.0
    Ubuntu(16.0.4)上编译android8.1源码(资料最全版本)
    Frida常用方法
    Frida Java Hook 详解(安卓9):代码及示例(下)
    Frida Java Hook 详解(安卓9):代码及示例(上)
    windows命令行工具导出系统日志——wevtutil
    帆软 V9 Getshell
    和信创天云桌面命令执行
    天擎越权访问
    天擎-前台SQL注入
  • 原文地址:https://www.cnblogs.com/datie/p/11433533.html
Copyright © 2011-2022 走看看