当前位置:网站首页>An ABAP tool that can print the browsing history of a user in the system for BSP applications
An ABAP tool that can print the browsing history of a user in the system for BSP applications
2022-08-10 15:33:00 【Wang Zixi】
As long as one user is there SAP ABAP browsed in the system BSP 页面,Browsing history will be left behind.
The tool parses out these records,Print out the historical events browsed by the user,and the name of the page viewed.
使用方法很简单,Simply enter the username to be queried:
下图显示,我在 2018年8月10日之后,no longer there AG3 system browsed BSP 应用了:
工具源代码:
REPORT ztool_display_page_name.
PARAMETERS: name TYPE trdir-unam OBLIGATORY DEFAULT 'WANGJER'.
DATA: lt_trdir TYPE STANDARD TABLE OF trdir,
lt_page TYPE STANDARD TABLE OF o2pagdir.
TYPES: BEGIN OF ty_impl,
name TYPE o2pagdir-implclass,
END OF ty_impl.
TYPES: tt_impl TYPE STANDARD TABLE OF ty_impl.
START-OF-SELECTION.
SELECT * INTO TABLE lt_trdir FROM trdir WHERE unam = name.
IF sy-subrc <> 0 .
WRITE: / 'No browse history found for current user'.
RETURN.
ENDIF.
DATA: lt_impl TYPE tt_impl,
ls_trdir TYPE trdir,
ls_impl TYPE ty_impl.
LOOP AT lt_trdir INTO ls_trdir.
ls_impl-name = ls_trdir-name.
APPEND ls_impl TO lt_impl.
ENDLOOP.
SELECT * INTO TABLE lt_page FROM o2pagdir FOR ALL ENTRIES IN lt_impl
WHERE changedby = name AND implclass = lt_impl-name.
SORT lt_page BY changedon DESCENDING.
LOOP AT lt_page ASSIGNING FIELD-SYMBOL(<page>).
WRITE: / <page>-implclass COLOR COL_GROUP, ' Last accessed on:', <page>-changedon COLOR COL_KEY,
' Component name: ' , <page>-applname+0(20) COLOR COL_NEGATIVE, ' view name: ', <page>-pagename+0(30) COLOR COL_POSITIVE.
ENDLOOP.
边栏推荐
猜你喜欢
E. Cross Swapping (and check out deformation/good questions)
Cesium Quick Start 4-Polylines primitive usage explanation
Redis -- Nosql
12海里、24海里、200海里的意义及名称
Cesium快速上手4-Polylines图元使用讲解
基于 Azuki 系列:NFT估值分析框架“DRIC”
无线网络、HTTP缓存、IPv6
fatal error C1083 Unable to open include file 'io.h' No such file
FP6378AS5CTR SOT-23-5 高效1MHz2A同步降压调节器
fastposter v2.9.1 programmer must-have poster generator
随机推荐
数据类型与整型存储
pm2 static file service
关于async\await 的理解和思考
MySQL batch update and batch update method of different values of multiple records
fastposter v2.9.1 programmer must-have poster generator
富爸爸穷爸爸之读书笔记
metaForce佛萨奇2.0系统开发功能逻辑介绍
Scala collections
Basic learning of XML
SWIG教程《一》
Introduction to program debugging and its use
Systemui status bar to add a new icon
[Letter from Wu Enda] The development of reinforcement learning!
Pagoda panel open Redis to specify the network machine
Steam教育在新时代中综合学习论
Redis -- Nosql
Lilac Garden
fatal error C1083 Unable to open include file 'io.h' No such file
scala 基础篇
数据在内存中的存储