SAP SAPWL_SNAPSHOT_FROM_REMOTE_SYS Function Module for









SAPWL_SNAPSHOT_FROM_REMOTE_SYS is a standard sapwl snapshot from remote sys SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sapwl snapshot from remote sys FM, simply by entering the name SAPWL_SNAPSHOT_FROM_REMOTE_SYS into the relevant SAP transaction such as SE37 or SE38.

Function Group: SAPWL_GLOB_STAT
Program Name: SAPLSAPWL_GLOB_STAT
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SAPWL_SNAPSHOT_FROM_REMOTE_SYS 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 'SAPWL_SNAPSHOT_FROM_REMOTE_SYS'"
EXPORTING
* SELECT_SYSTEM = ' ' "
* SELECT_SERVER = ' ' "
* WAIT_SECONDS = "
* TIME_RESOLUTION = 60 "
* TASKTYPES_PER_WORKPROCESS = "
* TCODES_WITH_DYNPRO_NUMBER = "
* TERMINAL_INSTEAD_OF_USERNAME = "
* READ_TIME_ZONE = "
READ_START_DATE = "
READ_START_TIME = "
READ_END_DATE = "
READ_END_TIME = "
* READ_CLIENT = "
* READ_USERNAME = "
* READ_WORKPROCESS = 'FFFF' "

IMPORTING
SPOOL_PRINT_STATISTIC = "SAP Workload: Workload: Spool: Print information

TABLES
* SUMMARY = "SAP Workload: Workload: Summary, task type dependent
* USER_STATISTIC = "SAP Workload: Workload: User of transactions & reports
* MEMORY_STATISTIC = "SAP Workload: Workload: Memory use statistics
* RFC_CLIENT_STATISTIC = "SAP Workload: Workload: RFC client statistics
* RFC_SERVER_STATISTIC = "SAP Workload: Workload: RFC server statistics
* RFC_CLIENT_DEST_STATISTIC = "SAP Workload: Workload: RFC client destination statistics
* RFC_SERVER_DEST_STATISTIC = "SAP Workload: Workload: RFC server destination statistics
* SPOOL_ACTIVITY_STATISTIC = "SAP Workload: Workload: Spool: Actions
* AS_STATISTIC = "SAP Workload: Global SAP R/3: Aggregated Application Stats
* AS_HITL_DBCALLS = "
* AS_HITL_RESPTI = "
* HITLIST_DBCALLS = "SAP Workload: Workload: Hit list record
* DETAIL_TCODE_STATISTIC = "
* DBPROC_STATISTIC = "
* EXTERN_SYS_WORKLOAD_STAT = "SAP Workload: Server Statistics for Load thr. External Calls
* SERVER_RECS_RETURN_INFO = "SAP Workload: Global SAP R/3 Dest/Main Rec.Index/Return Info
* HITLIST_RESPTI = "SAP Workload: Workload: Hit list record
* ACCOUNTING_STATISTIC_TASKTYPE = "SAP Workload: Workload: Client-specific user stats. (ext.)
* TIME_STATISTIC = "SAP Workload: Workload: Time statistics
* TABLE_RECORD_STATISTIC = "SAP Workload: Workload: Table accesses per transact./report
* APPLICATION_STATISTIC = "SAP Workload: Workload: User statistics
* TERMINAL_IO_STATISTIC = "SAP Workload: Workload: Data volumes app.server<->pres.srv.
* TASKTYPE_STATISTIC = "SAP Workload: Workload: Task type/time statistics

EXCEPTIONS
COULD_NOT_GET_SERVER_LIST = 1 TIME_ZONE_NOT_FOUND = 2 AUTHORITY_NOT_FOUND = 3 COMMUNICATION_ERROR = 4 SYSTEM_ERROR = 5 UNKNOWN_ERROR = 6 NO_HOP_OVER_THIS_RELEASE = 7
.



IMPORTING Parameters details for SAPWL_SNAPSHOT_FROM_REMOTE_SYS

SELECT_SYSTEM -

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

SELECT_SERVER -

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

WAIT_SECONDS -

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

TIME_RESOLUTION -

Data type: SAPWLPSTRC-TIME_RES
Default: 60
Optional: Yes
Call by Reference: No ( called with pass by value option)

TASKTYPES_PER_WORKPROCESS -

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

TCODES_WITH_DYNPRO_NUMBER -

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

TERMINAL_INSTEAD_OF_USERNAME -

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

READ_TIME_ZONE -

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

READ_START_DATE -

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

READ_START_TIME -

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

READ_END_DATE -

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

READ_END_TIME -

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

READ_CLIENT -

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

READ_USERNAME -

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

READ_WORKPROCESS -

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

EXPORTING Parameters details for SAPWL_SNAPSHOT_FROM_REMOTE_SYS

SPOOL_PRINT_STATISTIC - SAP Workload: Workload: Spool: Print information

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

TABLES Parameters details for SAPWL_SNAPSHOT_FROM_REMOTE_SYS

SUMMARY - SAP Workload: Workload: Summary, task type dependent

Data type: SGLWLSUMRY
Optional: Yes
Call by Reference: Yes

USER_STATISTIC - SAP Workload: Workload: User of transactions & reports

Data type: SGLWLUENTI
Optional: Yes
Call by Reference: Yes

MEMORY_STATISTIC - SAP Workload: Workload: Memory use statistics

Data type: SGLWLMEM
Optional: Yes
Call by Reference: Yes

RFC_CLIENT_STATISTIC - SAP Workload: Workload: RFC client statistics

Data type: SGLWLRFCC
Optional: Yes
Call by Reference: Yes

RFC_SERVER_STATISTIC - SAP Workload: Workload: RFC server statistics

Data type: SGLWLRFCS
Optional: Yes
Call by Reference: Yes

RFC_CLIENT_DEST_STATISTIC - SAP Workload: Workload: RFC client destination statistics

Data type: SGLWLRFCCD
Optional: Yes
Call by Reference: Yes

RFC_SERVER_DEST_STATISTIC - SAP Workload: Workload: RFC server destination statistics

Data type: SGLWLRFCSD
Optional: Yes
Call by Reference: Yes

SPOOL_ACTIVITY_STATISTIC - SAP Workload: Workload: Spool: Actions

Data type: SGLWLSPOAC
Optional: Yes
Call by Reference: Yes

AS_STATISTIC - SAP Workload: Global SAP R/3: Aggregated Application Stats

Data type: SGLWLVDAS
Optional: Yes
Call by Reference: Yes

AS_HITL_DBCALLS -

Data type: SGLWLASHIT
Optional: Yes
Call by Reference: Yes

AS_HITL_RESPTI -

Data type: SGLWLASHIT
Optional: Yes
Call by Reference: Yes

HITLIST_DBCALLS - SAP Workload: Workload: Hit list record

Data type: SGLWLHITL
Optional: Yes
Call by Reference: Yes

DETAIL_TCODE_STATISTIC -

Data type: SGLWLTCDET
Optional: Yes
Call by Reference: Yes

DBPROC_STATISTIC -

Data type: SGLWLDBPRO
Optional: Yes
Call by Reference: Yes

EXTERN_SYS_WORKLOAD_STAT - SAP Workload: Server Statistics for Load thr. External Calls

Data type: SGLWLSRVEX
Optional: Yes
Call by Reference: Yes

SERVER_RECS_RETURN_INFO - SAP Workload: Global SAP R/3 Dest/Main Rec.Index/Return Info

Data type: SGLDESTREC
Optional: Yes
Call by Reference: Yes

HITLIST_RESPTI - SAP Workload: Workload: Hit list record

Data type: SGLWLHITL
Optional: Yes
Call by Reference: Yes

ACCOUNTING_STATISTIC_TASKTYPE - SAP Workload: Workload: Client-specific user stats. (ext.)

Data type: SGLWLUSWLX
Optional: Yes
Call by Reference: Yes

TIME_STATISTIC - SAP Workload: Workload: Time statistics

Data type: SGLWLTIMES
Optional: Yes
Call by Reference: Yes

TABLE_RECORD_STATISTIC - SAP Workload: Workload: Table accesses per transact./report

Data type: SGLWLTABTR
Optional: Yes
Call by Reference: Yes

APPLICATION_STATISTIC - SAP Workload: Workload: User statistics

Data type: SGLWLUSTCX
Optional: Yes
Call by Reference: Yes

TERMINAL_IO_STATISTIC - SAP Workload: Workload: Data volumes app.server<->pres.srv.

Data type: SGLWLTMBYT
Optional: Yes
Call by Reference: Yes

TASKTYPE_STATISTIC - SAP Workload: Workload: Task type/time statistics

Data type: SGLWLTSKTI
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

COULD_NOT_GET_SERVER_LIST -

Data type:
Optional: No
Call by Reference: Yes

TIME_ZONE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

AUTHORITY_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

COMMUNICATION_ERROR - RFC Communication Error

Data type:
Optional: No
Call by Reference: Yes

SYSTEM_ERROR - RFC System Error

Data type:
Optional: No
Call by Reference: Yes

UNKNOWN_ERROR - Unknown Error

Data type:
Optional: No
Call by Reference: Yes

NO_HOP_OVER_THIS_RELEASE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SAPWL_SNAPSHOT_FROM_REMOTE_SYS 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_summary  TYPE STANDARD TABLE OF SGLWLSUMRY, "   
lv_select_system  TYPE SGLWLSYSID, "   SPACE
lv_spool_print_statistic  TYPE SGLWLSPOPR, "   
lv_could_not_get_server_list  TYPE SGLWLSPOPR, "   
lv_select_server  TYPE RFCDEST, "   SPACE
lt_user_statistic  TYPE STANDARD TABLE OF SGLWLUENTI, "   
lv_wait_seconds  TYPE I, "   
lt_memory_statistic  TYPE STANDARD TABLE OF SGLWLMEM, "   
lv_time_resolution  TYPE SAPWLPSTRC-TIME_RES, "   60
lt_rfc_client_statistic  TYPE STANDARD TABLE OF SGLWLRFCC, "   
lt_rfc_server_statistic  TYPE STANDARD TABLE OF SGLWLRFCS, "   
lv_tasktypes_per_workprocess  TYPE SAPWLPSTRC-FLAG, "   
lt_rfc_client_dest_statistic  TYPE STANDARD TABLE OF SGLWLRFCCD, "   
lv_tcodes_with_dynpro_number  TYPE SAPWLPSTRC-FLAG, "   
lt_rfc_server_dest_statistic  TYPE STANDARD TABLE OF SGLWLRFCSD, "   
lv_terminal_instead_of_username  TYPE SAPWLPSTRC-FLAG, "   
lt_spool_activity_statistic  TYPE STANDARD TABLE OF SGLWLSPOAC, "   
lt_as_statistic  TYPE STANDARD TABLE OF SGLWLVDAS, "   
lt_as_hitl_dbcalls  TYPE STANDARD TABLE OF SGLWLASHIT, "   
lt_as_hitl_respti  TYPE STANDARD TABLE OF SGLWLASHIT, "   
lv_read_time_zone  TYPE TIMEZONE, "   
lt_hitlist_dbcalls  TYPE STANDARD TABLE OF SGLWLHITL, "   
lv_time_zone_not_found  TYPE SGLWLHITL, "   
lt_detail_tcode_statistic  TYPE STANDARD TABLE OF SGLWLTCDET, "   
lt_dbproc_statistic  TYPE STANDARD TABLE OF SGLWLDBPRO, "   
lt_extern_sys_workload_stat  TYPE STANDARD TABLE OF SGLWLSRVEX, "   
lt_server_recs_return_info  TYPE STANDARD TABLE OF SGLDESTREC, "   
lt_hitlist_respti  TYPE STANDARD TABLE OF SGLWLHITL, "   
lv_read_start_date  TYPE SYDATUM, "   
lv_authority_not_found  TYPE SYDATUM, "   
lv_read_start_time  TYPE SYUZEIT, "   
lv_communication_error  TYPE SYUZEIT, "   
lt_accounting_statistic_tasktype  TYPE STANDARD TABLE OF SGLWLUSWLX, "   
lv_system_error  TYPE SGLWLUSWLX, "   
lv_read_end_date  TYPE SYDATUM, "   
lt_time_statistic  TYPE STANDARD TABLE OF SGLWLTIMES, "   
lv_read_end_time  TYPE SYUZEIT, "   
lv_unknown_error  TYPE SYUZEIT, "   
lt_table_record_statistic  TYPE STANDARD TABLE OF SGLWLTABTR, "   
lv_read_client  TYPE SAPWLCLINT, "   
lt_application_statistic  TYPE STANDARD TABLE OF SGLWLUSTCX, "   
lv_no_hop_over_this_release  TYPE SGLWLUSTCX, "   
lv_read_username  TYPE XUBNAME, "   
lt_terminal_io_statistic  TYPE STANDARD TABLE OF SGLWLTMBYT, "   
lv_read_workprocess  TYPE SAPWLPWPNO, "   'FFFF'
lt_tasktype_statistic  TYPE STANDARD TABLE OF SGLWLTSKTI. "   

  CALL FUNCTION 'SAPWL_SNAPSHOT_FROM_REMOTE_SYS'  "
    EXPORTING
         SELECT_SYSTEM = lv_select_system
         SELECT_SERVER = lv_select_server
         WAIT_SECONDS = lv_wait_seconds
         TIME_RESOLUTION = lv_time_resolution
         TASKTYPES_PER_WORKPROCESS = lv_tasktypes_per_workprocess
         TCODES_WITH_DYNPRO_NUMBER = lv_tcodes_with_dynpro_number
         TERMINAL_INSTEAD_OF_USERNAME = lv_terminal_instead_of_username
         READ_TIME_ZONE = lv_read_time_zone
         READ_START_DATE = lv_read_start_date
         READ_START_TIME = lv_read_start_time
         READ_END_DATE = lv_read_end_date
         READ_END_TIME = lv_read_end_time
         READ_CLIENT = lv_read_client
         READ_USERNAME = lv_read_username
         READ_WORKPROCESS = lv_read_workprocess
    IMPORTING
         SPOOL_PRINT_STATISTIC = lv_spool_print_statistic
    TABLES
         SUMMARY = lt_summary
         USER_STATISTIC = lt_user_statistic
         MEMORY_STATISTIC = lt_memory_statistic
         RFC_CLIENT_STATISTIC = lt_rfc_client_statistic
         RFC_SERVER_STATISTIC = lt_rfc_server_statistic
         RFC_CLIENT_DEST_STATISTIC = lt_rfc_client_dest_statistic
         RFC_SERVER_DEST_STATISTIC = lt_rfc_server_dest_statistic
         SPOOL_ACTIVITY_STATISTIC = lt_spool_activity_statistic
         AS_STATISTIC = lt_as_statistic
         AS_HITL_DBCALLS = lt_as_hitl_dbcalls
         AS_HITL_RESPTI = lt_as_hitl_respti
         HITLIST_DBCALLS = lt_hitlist_dbcalls
         DETAIL_TCODE_STATISTIC = lt_detail_tcode_statistic
         DBPROC_STATISTIC = lt_dbproc_statistic
         EXTERN_SYS_WORKLOAD_STAT = lt_extern_sys_workload_stat
         SERVER_RECS_RETURN_INFO = lt_server_recs_return_info
         HITLIST_RESPTI = lt_hitlist_respti
         ACCOUNTING_STATISTIC_TASKTYPE = lt_accounting_statistic_tasktype
         TIME_STATISTIC = lt_time_statistic
         TABLE_RECORD_STATISTIC = lt_table_record_statistic
         APPLICATION_STATISTIC = lt_application_statistic
         TERMINAL_IO_STATISTIC = lt_terminal_io_statistic
         TASKTYPE_STATISTIC = lt_tasktype_statistic
    EXCEPTIONS
        COULD_NOT_GET_SERVER_LIST = 1
        TIME_ZONE_NOT_FOUND = 2
        AUTHORITY_NOT_FOUND = 3
        COMMUNICATION_ERROR = 4
        SYSTEM_ERROR = 5
        UNKNOWN_ERROR = 6
        NO_HOP_OVER_THIS_RELEASE = 7
. " SAPWL_SNAPSHOT_FROM_REMOTE_SYS




ABAP code using 7.40 inline data declarations to call FM SAPWL_SNAPSHOT_FROM_REMOTE_SYS

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_select_system) = ' '.
 
 
 
DATA(ld_select_server) = ' '.
 
 
 
 
"SELECT single TIME_RES FROM SAPWLPSTRC INTO @DATA(ld_time_resolution).
DATA(ld_time_resolution) = 60.
 
 
 
"SELECT single FLAG FROM SAPWLPSTRC INTO @DATA(ld_tasktypes_per_workprocess).
 
 
"SELECT single FLAG FROM SAPWLPSTRC INTO @DATA(ld_tcodes_with_dynpro_number).
 
 
"SELECT single FLAG FROM SAPWLPSTRC INTO @DATA(ld_terminal_instead_of_username).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_read_workprocess) = 'FFFF'.
 
 


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!