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

Function GRPC_AC_CONNECTOR_DATA_CHECK 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_AC_CONNECTOR_DATA_CHECK'"Automated Control - Connector Data check.
EXPORTING
* I_CHECK_CONNECTOR = "Supplement for True Boolean Type: 'X' == True '' == False
* I_SCRIPT = "Script
* I_SCRIPTTYPE = "Script Type
* I_SYSTEMTYPE = "System Type
* I_CHECK_SCRIPT_DATA = "Supplement for True Boolean Type: 'X' == True '' == False
* I_CHECK_RULE_DATA = "Supplement for True Boolean Type: 'X' == True '' == False
* I_CHECK_TABNAME = "Supplement for True Boolean Type: 'X' == True '' == False
* I_CHECK_FIELDNAME = "Supplement for True Boolean Type: 'X' == True '' == False
* I_CHECK_GRPCRTA_CTRLDEF = "Supplement for True Boolean Type: 'X' == True '' == False
* I_CHECK_GRPCRTA_TSCRTBL = "Supplement for True Boolean Type: 'X' == True '' == False
* I_CONNECTOR = "Target Connector
* I_RULEID = "Rule
IMPORTING
E_RETURN_CODE = "Return Value of ABAP Statements
ET_MESSAGE = "Table with BAPI Return Information
EV_INVALID_TABNAME = "Table Name
EV_INVALID_FIELDNAME = "Field Name
EV_INVALID_RLCR = "Rule Criteria
EV_INVALID_CONNECTOR = "Target Connector
EV_INVALID_SCRIPT = "Script
TABLES
* IT_TABLE_FIELD = "Table and Fields Name
* IT_CONNECTOR = "Connector Table Type
* IT_RLCRSYSA = "Rule Criteria System Type Assignment
EXCEPTIONS
INVALID_CONNECTOR = 1 INVALID_CONNECTOR_FOR_SYSTYPE = 10 INVALID_RFC_CONNECTOR = 2 INVALID_TABNAME = 3 INVALID_FIELDNAME = 4 INVALID_RTA_SCRIPT_ENTRY = 5 INVALID_RULEID = 6 INVALID_SCRIPT = 7 INVALID_GRPCRTA_CTRLDEF = 8 INVALID_SYSTEM_ISSUE = 9
IMPORTING Parameters details for GRPC_AC_CONNECTOR_DATA_CHECK
I_CHECK_CONNECTOR - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_SCRIPT - Script
Data type: GRPC_SCRIPTOptional: Yes
Call by Reference: Yes
I_SCRIPTTYPE - Script Type
Data type: GRPC_SCRIPTTYPEOptional: Yes
Call by Reference: Yes
I_SYSTEMTYPE - System Type
Data type: GRPC_SYSTEMTYPEOptional: Yes
Call by Reference: Yes
I_CHECK_SCRIPT_DATA - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_CHECK_RULE_DATA - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_CHECK_TABNAME - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_CHECK_FIELDNAME - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_CHECK_GRPCRTA_CTRLDEF - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_CHECK_GRPCRTA_TSCRTBL - Supplement for True Boolean Type: 'X' == True '' == False
Data type: WDY_BOOLEANOptional: Yes
Call by Reference: Yes
I_CONNECTOR - Target Connector
Data type: GRPC_CONNECTOROptional: Yes
Call by Reference: Yes
I_RULEID - Rule
Data type: GRPC_RLEIDOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for GRPC_AC_CONNECTOR_DATA_CHECK
E_RETURN_CODE - Return Value of ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
ET_MESSAGE - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
EV_INVALID_TABNAME - Table Name
Data type: TABNAMEOptional: No
Call by Reference: Yes
EV_INVALID_FIELDNAME - Field Name
Data type: FIELDNAMEOptional: No
Call by Reference: Yes
EV_INVALID_RLCR - Rule Criteria
Data type: GRPC_RULEVAROptional: No
Call by Reference: Yes
EV_INVALID_CONNECTOR - Target Connector
Data type: GRPC_CONNECTOROptional: No
Call by Reference: Yes
EV_INVALID_SCRIPT - Script
Data type: GRPC_SCRIPTOptional: No
Call by Reference: Yes
TABLES Parameters details for GRPC_AC_CONNECTOR_DATA_CHECK
IT_TABLE_FIELD - Table and Fields Name
Data type: GRPC_T_TABNAME_FIELDNAMEOptional: Yes
Call by Reference: Yes
IT_CONNECTOR - Connector Table Type
Data type: GRPC_T_SCRIPT_CONNECTOROptional: Yes
Call by Reference: Yes
IT_RLCRSYSA - Rule Criteria System Type Assignment
Data type: GRPC_T_RLCRSYSAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INVALID_CONNECTOR -
Data type:Optional: No
Call by Reference: Yes
INVALID_CONNECTOR_FOR_SYSTYPE -
Data type:Optional: No
Call by Reference: Yes
INVALID_RFC_CONNECTOR -
Data type:Optional: No
Call by Reference: Yes
INVALID_TABNAME -
Data type:Optional: No
Call by Reference: Yes
INVALID_FIELDNAME -
Data type:Optional: No
Call by Reference: Yes
INVALID_RTA_SCRIPT_ENTRY -
Data type:Optional: No
Call by Reference: Yes
INVALID_RULEID -
Data type:Optional: No
Call by Reference: Yes
INVALID_SCRIPT -
Data type:Optional: No
Call by Reference: Yes
INVALID_GRPCRTA_CTRLDEF -
Data type:Optional: No
Call by Reference: Yes
INVALID_SYSTEM_ISSUE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for GRPC_AC_CONNECTOR_DATA_CHECK 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_e_return_code | TYPE SY-SUBRC, " | |||
| lt_it_table_field | TYPE STANDARD TABLE OF GRPC_T_TABNAME_FIELDNAME, " | |||
| lv_invalid_connector | TYPE GRPC_T_TABNAME_FIELDNAME, " | |||
| lv_i_check_connector | TYPE WDY_BOOLEAN, " | |||
| lv_i_script | TYPE GRPC_SCRIPT, " | |||
| lv_invalid_connector_for_systype | TYPE GRPC_SCRIPT, " | |||
| lv_i_scripttype | TYPE GRPC_SCRIPTTYPE, " | |||
| lv_i_systemtype | TYPE GRPC_SYSTEMTYPE, " | |||
| lv_et_message | TYPE BAPIRETTAB, " | |||
| lt_it_connector | TYPE STANDARD TABLE OF GRPC_T_SCRIPT_CONNECTOR, " | |||
| lv_i_check_script_data | TYPE WDY_BOOLEAN, " | |||
| lv_invalid_rfc_connector | TYPE WDY_BOOLEAN, " | |||
| lt_it_rlcrsysa | TYPE STANDARD TABLE OF GRPC_T_RLCRSYSA, " | |||
| lv_invalid_tabname | TYPE GRPC_T_RLCRSYSA, " | |||
| lv_i_check_rule_data | TYPE WDY_BOOLEAN, " | |||
| lv_ev_invalid_tabname | TYPE TABNAME, " | |||
| lv_i_check_tabname | TYPE WDY_BOOLEAN, " | |||
| lv_invalid_fieldname | TYPE WDY_BOOLEAN, " | |||
| lv_ev_invalid_fieldname | TYPE FIELDNAME, " | |||
| lv_ev_invalid_rlcr | TYPE GRPC_RULEVAR, " | |||
| lv_i_check_fieldname | TYPE WDY_BOOLEAN, " | |||
| lv_invalid_rta_script_entry | TYPE WDY_BOOLEAN, " | |||
| lv_invalid_ruleid | TYPE WDY_BOOLEAN, " | |||
| lv_ev_invalid_connector | TYPE GRPC_CONNECTOR, " | |||
| lv_i_check_grpcrta_ctrldef | TYPE WDY_BOOLEAN, " | |||
| lv_invalid_script | TYPE WDY_BOOLEAN, " | |||
| lv_ev_invalid_script | TYPE GRPC_SCRIPT, " | |||
| lv_i_check_grpcrta_tscrtbl | TYPE WDY_BOOLEAN, " | |||
| lv_i_connector | TYPE GRPC_CONNECTOR, " | |||
| lv_invalid_grpcrta_ctrldef | TYPE GRPC_CONNECTOR, " | |||
| lv_i_ruleid | TYPE GRPC_RLEID, " | |||
| lv_invalid_system_issue | TYPE GRPC_RLEID. " |
|   CALL FUNCTION 'GRPC_AC_CONNECTOR_DATA_CHECK' "Automated Control - Connector Data check |
| EXPORTING | ||
| I_CHECK_CONNECTOR | = lv_i_check_connector | |
| I_SCRIPT | = lv_i_script | |
| I_SCRIPTTYPE | = lv_i_scripttype | |
| I_SYSTEMTYPE | = lv_i_systemtype | |
| I_CHECK_SCRIPT_DATA | = lv_i_check_script_data | |
| I_CHECK_RULE_DATA | = lv_i_check_rule_data | |
| I_CHECK_TABNAME | = lv_i_check_tabname | |
| I_CHECK_FIELDNAME | = lv_i_check_fieldname | |
| I_CHECK_GRPCRTA_CTRLDEF | = lv_i_check_grpcrta_ctrldef | |
| I_CHECK_GRPCRTA_TSCRTBL | = lv_i_check_grpcrta_tscrtbl | |
| I_CONNECTOR | = lv_i_connector | |
| I_RULEID | = lv_i_ruleid | |
| IMPORTING | ||
| E_RETURN_CODE | = lv_e_return_code | |
| ET_MESSAGE | = lv_et_message | |
| EV_INVALID_TABNAME | = lv_ev_invalid_tabname | |
| EV_INVALID_FIELDNAME | = lv_ev_invalid_fieldname | |
| EV_INVALID_RLCR | = lv_ev_invalid_rlcr | |
| EV_INVALID_CONNECTOR | = lv_ev_invalid_connector | |
| EV_INVALID_SCRIPT | = lv_ev_invalid_script | |
| TABLES | ||
| IT_TABLE_FIELD | = lt_it_table_field | |
| IT_CONNECTOR | = lt_it_connector | |
| IT_RLCRSYSA | = lt_it_rlcrsysa | |
| EXCEPTIONS | ||
| INVALID_CONNECTOR = 1 | ||
| INVALID_CONNECTOR_FOR_SYSTYPE = 10 | ||
| INVALID_RFC_CONNECTOR = 2 | ||
| INVALID_TABNAME = 3 | ||
| INVALID_FIELDNAME = 4 | ||
| INVALID_RTA_SCRIPT_ENTRY = 5 | ||
| INVALID_RULEID = 6 | ||
| INVALID_SCRIPT = 7 | ||
| INVALID_GRPCRTA_CTRLDEF = 8 | ||
| INVALID_SYSTEM_ISSUE = 9 | ||
| . " GRPC_AC_CONNECTOR_DATA_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM GRPC_AC_CONNECTOR_DATA_CHECK
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.| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_return_code). | ||||
Search for further information about these or an SAP related objects