当前位置:网站首页>SAP self-development records user login logs and other information
SAP self-development records user login logs and other information
2022-07-05 12:42:00 【rogerix4】
1. Enhance point
- Strengthen the object :SMOD/CMOD->SUSR0001 Log in to SAP User exit behind the system
- Enhance export :EXIT_SAPLSUSF_001
2. Enhanced implementation
- Log sheet

- Strengthen the code

*&---------------------------------------------------------------------* *& contain 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. journal

边栏推荐
- Ecplise development environment configuration and simple web project construction
- MySQL view
- OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
- Correct opening method of redis distributed lock
- Cypher syntax of neo4j graph database
- View and modify the MySQL data storage directory under centos7
- Clear neo4j database data
- Array cyclic shift problem
- Annotation problem and hidden Markov model
- Redis's memory elimination mechanism, read this article is enough.
猜你喜欢

UNIX socket advanced learning diary -ipv4-ipv6 interoperability

JDBC -- use JDBC connection to operate MySQL database

Master-slave mode of redis cluster
![[superhard core] is the core technology of redis](/img/5e/d6438f09031c2acbea17441c316a2b.jpg)
[superhard core] is the core technology of redis

Migrate data from Mysql to neo4j database

Resnet18 actual battle Baoke dream spirit

SAP 自开发记录用户登录日志等信息

Take you hand in hand to develop a service monitoring component

ActiveMQ installation and deployment simple configuration (personal test)

Why learn harmonyos and how to get started quickly?
随机推荐
Distributed solution - distributed lock solution - redis based distributed lock implementation
SAP 自开发记录用户登录日志等信息
Using MySQL in docker
Understand kotlin from the perspective of an architect
Handwriting blocking queue: condition + lock
Anaconda creates a virtual environment and installs pytorch
[hdu 2096] Xiaoming a+b
Detailed steps for upgrading window mysql5.5 to 5.7.36
一款新型的智能家居WiFi选择方案——SimpleWiFi在无线智能家居中的应用
Redis master-slave configuration and sentinel mode
Correct opening method of redis distributed lock
Array cyclic shift problem
Solution to order timeout unpaid
VoneDAO破解组织发展效能难题
How does MySQL execute an SQL statement?
Redis clean cache
Deep discussion on the decoding of sent protocol
Image hyperspectral experiment: srcnn/fsrcnn
Introduction to relational model theory
View and modify the MySQL data storage directory under centos7