SAP GRPC_SCRIPT_RULE_CONNECTOR Function Module for Connector Assignment
GRPC_SCRIPT_RULE_CONNECTOR is a standard grpc script rule connector SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Connector Assignment 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 grpc script rule connector FM, simply by entering the name GRPC_SCRIPT_RULE_CONNECTOR into the relevant SAP transaction such as SE37 or SE38.
Function Group: GRPC_RULEENGINE
Program Name: SAPLGRPC_RULEENGINE
Main Program: SAPLGRPC_RULEENGINE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function GRPC_SCRIPT_RULE_CONNECTOR 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 'GRPC_SCRIPT_RULE_CONNECTOR'"Connector Assignment.
EXPORTING
* I_SCRIPT = "Single-Character Flag
* I_RULE = "Boolean Variable (X=True, -=False, Space=Unknown)
TABLES
* ET_MESSAGE = "Table with BAPI Return Information
* ET_RULE_LIST = "Table type of Rule
* ET_SCRIPT_LIST = "Script Table
IMPORTING Parameters details for GRPC_SCRIPT_RULE_CONNECTOR
I_SCRIPT - Single-Character Flag
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RULE - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GRPC_SCRIPT_RULE_CONNECTOR
ET_MESSAGE - Table with BAPI Return Information
Data type: BAPIRETTABOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_RULE_LIST - Table type of Rule
Data type: GRPC_T_API_RULEOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_SCRIPT_LIST - Script Table
Data type: GRPC_T_API_SCRIPTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GRPC_SCRIPT_RULE_CONNECTOR 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_script | TYPE BOOLEAN, " | |||
| lt_et_message | TYPE STANDARD TABLE OF BAPIRETTAB, " | |||
| lv_i_rule | TYPE BOOLEAN, " | |||
| lt_et_rule_list | TYPE STANDARD TABLE OF GRPC_T_API_RULE, " | |||
| lt_et_script_list | TYPE STANDARD TABLE OF GRPC_T_API_SCRIPT. " |
|   CALL FUNCTION 'GRPC_SCRIPT_RULE_CONNECTOR' "Connector Assignment |
| EXPORTING | ||
| I_SCRIPT | = lv_i_script | |
| I_RULE | = lv_i_rule | |
| TABLES | ||
| ET_MESSAGE | = lt_et_message | |
| ET_RULE_LIST | = lt_et_rule_list | |
| ET_SCRIPT_LIST | = lt_et_script_list | |
| . " GRPC_SCRIPT_RULE_CONNECTOR | ||
ABAP code using 7.40 inline data declarations to call FM GRPC_SCRIPT_RULE_CONNECTOR
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.Search for further information about these or an SAP related objects