SAP SQLM_API_GET_NEXT_DATA_PACKAGE Function Module for SQL Monitor API: Get Next Data Package









SQLM_API_GET_NEXT_DATA_PACKAGE is a standard sqlm api get next data package SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SQL Monitor API: Get Next Data Package 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 sqlm api get next data package FM, simply by entering the name SQLM_API_GET_NEXT_DATA_PACKAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function SQLM_API_GET_NEXT_DATA_PACKAGE 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 'SQLM_API_GET_NEXT_DATA_PACKAGE'"SQL Monitor API: Get Next Data Package
EXPORTING
* I_TIMEFRAME = "
* I_FILTER_TABLENAME_RANGE = "
* I_FILTER_RUNLEVEL_RANGE = "
* I_FILTER_STMTKIND_RANGE = "
* I_FILTER_EXCLUDE_TECH_RECORDS = ' ' "
* I_FILTER_INCLUDE_RANGE = "
* I_PACKAGE_SIZE = C_PACKAGE_SIZE_DEFLT "
* I_COMPUTE_STATISTICS = 'X' "
* I_OFFSET_RECORD = "
* I_FILTER_PACKAGE_RANGE = "
* I_FILTER_OBJNAME_RANGE = "
* I_FILTER_OBJTYPE_RANGE = "
* I_FILTER_REQUESTNAME_RANGE = "
* I_FILTER_REQUESTTYPE_RANGE = "

IMPORTING
E_DATA_PACKAGE = "
E_NEXT_OFFSET_RECORD = "

EXCEPTIONS
SQLM_API_FAILURE = 1
.



IMPORTING Parameters details for SQLM_API_GET_NEXT_DATA_PACKAGE

I_TIMEFRAME -

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

I_FILTER_TABLENAME_RANGE -

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

I_FILTER_RUNLEVEL_RANGE -

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

I_FILTER_STMTKIND_RANGE -

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

I_FILTER_EXCLUDE_TECH_RECORDS -

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

I_FILTER_INCLUDE_RANGE -

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

I_PACKAGE_SIZE -

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

I_COMPUTE_STATISTICS -

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

I_OFFSET_RECORD -

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

I_FILTER_PACKAGE_RANGE -

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

I_FILTER_OBJNAME_RANGE -

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

I_FILTER_OBJTYPE_RANGE -

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

I_FILTER_REQUESTNAME_RANGE -

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

I_FILTER_REQUESTTYPE_RANGE -

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

EXPORTING Parameters details for SQLM_API_GET_NEXT_DATA_PACKAGE

E_DATA_PACKAGE -

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

E_NEXT_OFFSET_RECORD -

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

EXCEPTIONS details

SQLM_API_FAILURE -

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

Copy and paste ABAP code example for SQLM_API_GET_NEXT_DATA_PACKAGE 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:
lv_i_timeframe  TYPE SQLM_API_TIME_FRAME, "   
lv_e_data_package  TYPE SQLM_API_RECORDS, "   
lv_sqlm_api_failure  TYPE SQLM_API_RECORDS, "   
lv_i_filter_tablename_range  TYPE SQLM_API_TABLENAME_RANGE, "   
lv_i_filter_runlevel_range  TYPE SQLM_API_RUNLEVEL_RANGE, "   
lv_i_filter_stmtkind_range  TYPE SQLM_API_STMTKIND_RANGE, "   
lv_i_filter_exclude_tech_records  TYPE XFLAG, "   SPACE
lv_i_filter_include_range  TYPE SQLM_API_INCLUDE_RANGE, "   
lv_i_package_size  TYPE INT4, "   C_PACKAGE_SIZE_DEFLT
lv_e_next_offset_record  TYPE SQLM_API_RECORD, "   
lv_i_compute_statistics  TYPE XFLAG, "   'X'
lv_i_offset_record  TYPE SQLM_API_RECORD, "   
lv_i_filter_package_range  TYPE SQLM_API_PACKAGE_RANGE, "   
lv_i_filter_objname_range  TYPE SQLM_API_OBJNAME_RANGE, "   
lv_i_filter_objtype_range  TYPE SQLM_API_OBJTYPE_RANGE, "   
lv_i_filter_requestname_range  TYPE SQLM_API_REQNAME_RANGE, "   
lv_i_filter_requesttype_range  TYPE SQLM_API_REQTYPE_RANGE. "   

  CALL FUNCTION 'SQLM_API_GET_NEXT_DATA_PACKAGE'  "SQL Monitor API: Get Next Data Package
    EXPORTING
         I_TIMEFRAME = lv_i_timeframe
         I_FILTER_TABLENAME_RANGE = lv_i_filter_tablename_range
         I_FILTER_RUNLEVEL_RANGE = lv_i_filter_runlevel_range
         I_FILTER_STMTKIND_RANGE = lv_i_filter_stmtkind_range
         I_FILTER_EXCLUDE_TECH_RECORDS = lv_i_filter_exclude_tech_records
         I_FILTER_INCLUDE_RANGE = lv_i_filter_include_range
         I_PACKAGE_SIZE = lv_i_package_size
         I_COMPUTE_STATISTICS = lv_i_compute_statistics
         I_OFFSET_RECORD = lv_i_offset_record
         I_FILTER_PACKAGE_RANGE = lv_i_filter_package_range
         I_FILTER_OBJNAME_RANGE = lv_i_filter_objname_range
         I_FILTER_OBJTYPE_RANGE = lv_i_filter_objtype_range
         I_FILTER_REQUESTNAME_RANGE = lv_i_filter_requestname_range
         I_FILTER_REQUESTTYPE_RANGE = lv_i_filter_requesttype_range
    IMPORTING
         E_DATA_PACKAGE = lv_e_data_package
         E_NEXT_OFFSET_RECORD = lv_e_next_offset_record
    EXCEPTIONS
        SQLM_API_FAILURE = 1
. " SQLM_API_GET_NEXT_DATA_PACKAGE




ABAP code using 7.40 inline data declarations to call FM SQLM_API_GET_NEXT_DATA_PACKAGE

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_i_filter_exclude_tech_records) = ' '.
 
 
DATA(ld_i_package_size) = C_PACKAGE_SIZE_DEFLT.
 
 
DATA(ld_i_compute_statistics) = 'X'.
 
 
 
 
 
 
 


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!