SAP Function TH_WP_DETAIL_INFO - Determine detailed information on a work process

Parameter Reference Type Length Default Optional Text
WITH_CPU TSKH_DUMMY-WITH_CPU X 1 1 X The CPU is to be determined
WP WPINFO-WP_NO C 2 'XX' X Number of the work process
WP_INDEX WPINFO-WP_INDEX I 4 999999 X

Parameter Reference Type Length Text
DBSTATREC PFDBCONSUBREC u 192 Current Statistics on Database Access
DIAREC PFDIAREC u 640 Current Statistics Record
MAINPROG SYST-CPROG C 40 ABAP Program, Caller in External Procedures
WPINFO WPINFO u 236 SM50 information line

Exception Text
TH_BAD_PARAMETER_VALUE Incorrect parameter value
TH_BAD_PARAMTER_LENGTH Structures in kernels and DDIC are different
TH_INTERNAL_ERROR Internal error in the task handler
TH_LIST_ERROR Error in the structure of an internal list
TH_NO_PARAMETER Parameter missing

1721031Use of WP_NO instead of WP_INDEX
900837No DB data in work process detail display