SAP GRW_JOB_TEST Function Module for
GRW_JOB_TEST is a standard grw job test 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 grw job test FM, simply by entering the name GRW_JOB_TEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRWS
Program Name: SAPLGRWS
Main Program: SAPLGRWS
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GRW_JOB_TEST 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 'GRW_JOB_TEST'".
EXPORTING
I_LIB = "
IT_RNAME = "
* I_MESSAGE_LEVEL = 1 "
* I_TESTMODE = 'G' "
* IT_PARAMS = "
* I_TO_SAP_SPOOL = "
* IS_PRI_PARAMS = "
* IS_ARC_PARAMS = "
IMPORTING
E_SUBRC = "
ET_MESG = "
EXCEPTIONS
REPORT_GROUP_LOCKED = 1
IMPORTING Parameters details for GRW_JOB_TEST
I_LIB -
Data type: LIBOptional: No
Call by Reference: No ( called with pass by value option)
IT_RNAME -
Data type: GRW_T_RNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_MESSAGE_LEVEL -
Data type: SYSUBRCDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TESTMODE -
Data type: CDefault: 'G'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_PARAMS -
Data type: GRW_T_PARAMSOptional: Yes
Call by Reference: Yes
I_TO_SAP_SPOOL -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_PRI_PARAMS -
Data type: PRI_PARAMSOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_ARC_PARAMS -
Data type: ARC_PARAMSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for GRW_JOB_TEST
E_SUBRC -
Data type: SYSUBRCOptional: No
Call by Reference: Yes
ET_MESG -
Data type: TSMESGOptional: No
Call by Reference: Yes
EXCEPTIONS details
REPORT_GROUP_LOCKED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GRW_JOB_TEST 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_lib | TYPE LIB, " | |||
| lv_e_subrc | TYPE SYSUBRC, " | |||
| lv_report_group_locked | TYPE SYSUBRC, " | |||
| lv_et_mesg | TYPE TSMESG, " | |||
| lv_it_rname | TYPE GRW_T_RNAME, " | |||
| lv_i_message_level | TYPE SYSUBRC, " 1 | |||
| lv_i_testmode | TYPE C, " 'G' | |||
| lv_it_params | TYPE GRW_T_PARAMS, " | |||
| lv_i_to_sap_spool | TYPE FLAG, " | |||
| lv_is_pri_params | TYPE PRI_PARAMS, " | |||
| lv_is_arc_params | TYPE ARC_PARAMS. " |
|   CALL FUNCTION 'GRW_JOB_TEST' " |
| EXPORTING | ||
| I_LIB | = lv_i_lib | |
| IT_RNAME | = lv_it_rname | |
| I_MESSAGE_LEVEL | = lv_i_message_level | |
| I_TESTMODE | = lv_i_testmode | |
| IT_PARAMS | = lv_it_params | |
| I_TO_SAP_SPOOL | = lv_i_to_sap_spool | |
| IS_PRI_PARAMS | = lv_is_pri_params | |
| IS_ARC_PARAMS | = lv_is_arc_params | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| ET_MESG | = lv_et_mesg | |
| EXCEPTIONS | ||
| REPORT_GROUP_LOCKED = 1 | ||
| . " GRW_JOB_TEST | ||
ABAP code using 7.40 inline data declarations to call FM GRW_JOB_TEST
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_message_level) | = 1. | |||
| DATA(ld_i_testmode) | = 'G'. | |||
Search for further information about these or an SAP related objects