SAP STUM_WP_TOTAL_ACTIVITY Function Module for Returns the Current Activity of All SAP Work Processes









STUM_WP_TOTAL_ACTIVITY is a standard stum wp total activity SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Returns the Current Activity of All SAP Work Processes processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for stum wp total activity FM, simply by entering the name STUM_WP_TOTAL_ACTIVITY into the relevant SAP transaction such as SE37 or SE38.

Function Group: STUM
Program Name: SAPLSTUM
Main Program: SAPLSTUM
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function STUM_WP_TOTAL_ACTIVITY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'STUM_WP_TOTAL_ACTIVITY'"Returns the Current Activity of All SAP Work Processes
EXPORTING
* GET_ONLY_RESTRICTED_DATA = ' ' "Only get information about WP status (quicker)
* WITH_CPU = 0 "Determine CPU time (1) or do not determine CPU time (0)
* SHOW_STATUS_ON_GUI = ' ' "Display status in SAP GUI message line
* GET_NO_DB_LOCK_INFO = ' ' "

TABLES
WP_TOTAL_INFO = "Table of activity of all SAP work processes
COMMUNICATION_ERRORS = "Table of unreachable servers and error text
USED_WP = "Table of work processes used for analysis
.



IMPORTING Parameters details for STUM_WP_TOTAL_ACTIVITY

GET_ONLY_RESTRICTED_DATA - Only get information about WP status (quicker)

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_CPU - Determine CPU time (1) or do not determine CPU time (0)

Data type: TSKH_DUMMY-WITH_CPU
Optional: Yes
Call by Reference: No ( called with pass by value option)

SHOW_STATUS_ON_GUI - Display status in SAP GUI message line

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

GET_NO_DB_LOCK_INFO -

Data type: WPTOTLIHLP-NO_DB_LOCK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for STUM_WP_TOTAL_ACTIVITY

WP_TOTAL_INFO - Table of activity of all SAP work processes

Data type: WPTOTLINFO
Optional: No
Call by Reference: No ( called with pass by value option)

COMMUNICATION_ERRORS - Table of unreachable servers and error text

Data type: WPTOTLICER
Optional: No
Call by Reference: No ( called with pass by value option)

USED_WP - Table of work processes used for analysis

Data type: WPTOTLIUWP
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for STUM_WP_TOTAL_ACTIVITY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_wp_total_info  TYPE STANDARD TABLE OF WPTOTLINFO, "   
lv_get_only_restricted_data  TYPE WPTOTLINFO, "   SPACE
lv_with_cpu  TYPE TSKH_DUMMY-WITH_CPU, "   0
lt_communication_errors  TYPE STANDARD TABLE OF WPTOTLICER, "   
lt_used_wp  TYPE STANDARD TABLE OF WPTOTLIUWP, "   
lv_show_status_on_gui  TYPE WPTOTLIUWP, "   SPACE
lv_get_no_db_lock_info  TYPE WPTOTLIHLP-NO_DB_LOCK. "   SPACE

  CALL FUNCTION 'STUM_WP_TOTAL_ACTIVITY'  "Returns the Current Activity of All SAP Work Processes
    EXPORTING
         GET_ONLY_RESTRICTED_DATA = lv_get_only_restricted_data
         WITH_CPU = lv_with_cpu
         SHOW_STATUS_ON_GUI = lv_show_status_on_gui
         GET_NO_DB_LOCK_INFO = lv_get_no_db_lock_info
    TABLES
         WP_TOTAL_INFO = lt_wp_total_info
         COMMUNICATION_ERRORS = lt_communication_errors
         USED_WP = lt_used_wp
. " STUM_WP_TOTAL_ACTIVITY




ABAP code using 7.40 inline data declarations to call FM STUM_WP_TOTAL_ACTIVITY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
DATA(ld_get_only_restricted_data) = ' '.
 
"SELECT single WITH_CPU FROM TSKH_DUMMY INTO @DATA(ld_with_cpu).
 
 
 
DATA(ld_show_status_on_gui) = ' '.
 
"SELECT single NO_DB_LOCK FROM WPTOTLIHLP INTO @DATA(ld_get_no_db_lock_info).
DATA(ld_get_no_db_lock_info) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!