ABAP获取登陆用户信息(SAP登录增强)

需求:系统未启用SAP审计功能,要求自开发实现记录所有登陆用户的信息。

方案:SMOD -> EXIT_SAPLSUSF_001

本文作者: GavinDong

版权属于: GavinDong博客

文章链接: https://www.gavindong.com/2567.html

如果使用过程中遇到问题,可 **点击此处** 交流沟通。

版权所有,转载时必须以链接形式注明作者和原始出处及本声明。

发表评论

登录后才能评论

评论列表(3条)

  • ag
    ag 2018.06.07 14:48

    注意:每一个Client中都需要进SMOD激活增强之后才会生效,否则代码过去了、但逻辑不生效。

  • ag
    ag 2018.06.05 16:59

    常用GET***方法:

    GET_CACHE_PROP Read Value of a Cache Property
    GET_COMPUTER_NAME Get Computer Name
    GET_DESKTOP_DIRECTORY Get Desktop Directory
    GET_DRIVE_FREE_SPACE_MEGABYTE Returns Drive’s Free Space in MB
    GET_DRIVE_TYPE Get Drive Type
    GET_FILE_SEPARATOR Get File Separator
    GET_FREE_SPACE_FOR_DRIVE Returns Free Space on Drive
    GET_GUI_PROPERTIES Returns Stream of GUI Properties
    GET_GUI_VERSION Returns the Upload/Download Paths
    GET_IP_ADDRESS Gets IP Address
    GET_LF_FOR_DESTINATION_GUI Destinations’ SAP GUI Line Feed
    GET_PLATFORM Return Operating System Platform
    GET_PROPERTY Get_Property
    GET_PROPERTY_GUI_OBJECT GetProperty rc=GUI_OBJECT, You Can Check obj With ‘IS_VALID’
    GET_SAPGUI_DIRECTORY Gets GUI Start Directory
    GET_SAPGUI_WORKDIR Returns ..\\Documents and Settings\DNR\SAPWorkdir (Example)
    GET_SAPLOGON_ENCODING Return to saplogon Codepage
    GET_SYSTEM_DIRECTORY Get System Directory
    GET_TEMP_DIRECTORY Returns the Path to the TEMP Directory
    GET_UPLOAD_DOWNLOAD_PATH returns the upload/download paths
    GET_USER_NAME Get User Name
    GET_WINDOWS_DIRECTORY Get Windows Directory

  • ag
    ag 2018.06.05 16:59

    在执行CL_GUI_FRONTEND_SERVICES的一些方法后,要加一个CALL METHOD CL_GUI_CFW=>FLUSH . 否则取不到数据!

email