SQLM_API_GET_TOTALS is a standard SAP function module that performs SQL Monitor API: Get totals functionality. This is available within standard R/3 SAP systems depending on version and release level.
Below are the pattern details for this FM showing its interface including any import, export and tables parameters. There is also a list of Exceptions and for your convenience any standard documentation available. All this information and more can also be viewed if you enter the function module name SQLM_API_GET_TOTALS into the relevant SAP transaction such as SE37 or SE80.
CALL FUNCTION 'SQLM_API_GET_TOTALS' "SQL Monitor API: Get totals
* EXPORTING
* i_snapshot_id = " sqlm_api_snapshot_id
* i_filter_package_range = " sqlm_api_package_range
* i_filter_objname_range = " sqlm_api_objname_range
* i_filter_objtype_range = " sqlm_api_objtype_range
* i_filter_include_range = " sqlm_api_include_range
* i_filter_requestname_range = " sqlm_api_reqname_range
* i_filter_requesttype_range = " sqlm_api_reqtype_range
* i_filter_exclude_technical_rec = ABAP_FALSE " xflag
IMPORTING
e_totals = " sqlm_api_totals
EXCEPTIONS
SQLM_API_FAILURE = 1 "
. " SQLM_API_GET_TOTALS