方法一:
call function 'TH_WPINFO'
wp_tab1即进程表
方法二:
DATA
OPCODE
TYPE X.
DATA: BEGIN OF USR_TABL OCCURS 10.
INCLUDE STRUCTURE UINFO.
DATA: END OF USR_TABL.
CLEAR USR_TABL.
FREE USR_TABL.
DATA: BEGIN OF USR_TABL OCCURS 10.
DATA: END OF USR_TABL.
* set the function call mode
OPCODE = 2.
* get list of all users actually logging on
CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE
ID 'TAB' FIELD USR_TABL-*SYS*.
* get list of all users actually logging on
USR_TABL即用户进程表