当前位置:网站首页>SAP 自开发记录用户登录日志等信息
SAP 自开发记录用户登录日志等信息
2022-07-05 12:32:00 【rogerix4】
1. 增强点
- 增强对象:SMOD/CMOD->SUSR0001 登陆到 SAP 系统后的用户出口
- 增强出口:EXIT_SAPLSUSF_001
2. 增强实施
- 日志记录表

- 增强代码

*&---------------------------------------------------------------------* *& 包含 ZXUSRU01 *&---------------------------------------------------------------------* DATA: ls_zbc_login_info TYPE zbc_login_info, "ref USR041 l_opcode_usr_attr(1) TYPE x VALUE 5, l_sysno(2), l_platform TYPE i. "generate GUID CALL FUNCTION 'RS_DME_MG_GENERATE_GUID' IMPORTING e_guid_32 = ls_zbc_login_info-zguid. "UNAME ls_zbc_login_info-bname = sy-uname. "Terminal ID CALL 'ThUsrInfo' ID 'OPCODE' FIELD l_opcode_usr_attr ID 'TID' FIELD ls_zbc_login_info-termid. "Terminal CALL FUNCTION 'TERMINAL_ID_GET' EXPORTING username = sy-uname IMPORTING terminal = ls_zbc_login_info-terminal EXCEPTIONS multiple_terminal_id = 1 no_terminal_found = 2 OTHERS = 3. "Plateform CALL METHOD cl_gui_frontend_services=>get_platform RECEIVING platform = l_platform. CASE l_platform. WHEN 1. ls_zbc_login_info-zplat = 'PLATFORM_MAC'. WHEN 2. ls_zbc_login_info-zplat = 'PLATFORM_NT40'. WHEN 3. ls_zbc_login_info-zplat = 'PLATFORM_WINDOWS95'. WHEN 4. ls_zbc_login_info-zplat = 'PLATFORM_WINDOWS98'. WHEN 5. ls_zbc_login_info-zplat = 'PLATFORM_NT50'. WHEN 6. ls_zbc_login_info-zplat = 'PLATFORM_OS2'. WHEN 7. ls_zbc_login_info-zplat = 'PLATFORM_LINUX'. WHEN 8. ls_zbc_login_info-zplat = 'PLATFORM_HPUX'. WHEN 9. ls_zbc_login_info-zplat = 'PLATFORM_TRU64'. WHEN 10. ls_zbc_login_info-zplat = 'PLATFORM_AIX'. WHEN 11. ls_zbc_login_info-zplat = 'PLATFORM_SOLARIS'. WHEN 12. ls_zbc_login_info-zplat = 'PLATFORM_MACOSX'. WHEN 13. ls_zbc_login_info-zplat = 'PLATFORM_WINDOWSXP'. WHEN 14. ls_zbc_login_info-zplat = 'PLATFORM_WINDOWS7/8/10'. WHEN OTHERS. ls_zbc_login_info-zplat = 'PLATFORM_UNKNOWN'. ENDCASE. "server CALL 'C_GET_SYSTEM_NUMBER' ID 'SYSTEM' FIELD l_sysno. ls_zbc_login_info-server = sy-host && '_' && sy-sysid && '_' && l_sysno. "language ls_zbc_login_info-sprache = sy-langu. "logon date ls_zbc_login_info-logon_date = sy-datum. "logon time ls_zbc_login_info-logon_time = sy-uzeit. INSERT zbc_login_info FROM ls_zbc_login_info.
3. 日志

边栏推荐
- Clear neo4j database data
- Average lookup length when hash table lookup fails
- Pytorch two-layer loop to realize the segmentation of large pictures
- ZABBIX agent2 installation
- Full text search of MySQL
- [figure neural network] GNN from entry to mastery
- ZABBIX ODBC database monitoring
- Semantic segmentation experiment: UNET network /msrc2 dataset
- Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
- Flume common commands and basic operations
猜你喜欢

Hexadecimal conversion summary

Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)

Redis highly available sentinel cluster

Redis's memory elimination mechanism, read this article is enough.

Pytorch two-layer loop to realize the segmentation of large pictures

JDBC exercise - query data encapsulated into object return & simple login demo

Preliminary exploration of basic knowledge of MySQL

NPM install reports an error

Implementing Yang Hui triangle with cyclic queue C language

Resnet+attention project complete code learning
随机推荐
Why do you always fail in automated tests?
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
JDBC -- use JDBC connection to operate MySQL database
Basic operations of MySQL data table, addition, deletion and modification & DML
A new WiFi option for smart home -- the application of simplewifi in wireless smart home
Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password
Distributed solution - distributed session consistency problem
Pytoch loads the initialization V3 pre training model and reports an error
MySQL view
Redis highly available sentinel cluster
Distributed cache architecture - cache avalanche & penetration & hit rate
Learning items
ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
Semantic segmentation experiment: UNET network /msrc2 dataset
Swift - enables textview to be highly adaptive
MySQL trigger
C language structure is initialized as a function parameter
Flume common commands and basic operations
ZABBIX customized monitoring disk IO performance