SAP GRPCRTA_RULEID_READ Function Module for Read Rule data from GRC Server









GRPCRTA_RULEID_READ is a standard grpcrta ruleid read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Rule data from GRC Server 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 grpcrta ruleid read FM, simply by entering the name GRPCRTA_RULEID_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: GRPCRTA_UI_COMMON
Program Name: SAPLGRPCRTA_UI_COMMON
Main Program: SAPLGRPCRTA_UI_COMMON
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function GRPCRTA_RULEID_READ 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 'GRPCRTA_RULEID_READ'"Read Rule data from GRC Server
EXPORTING
I_CONTROL_ID = "Control ID
I_RULEID = "Rule ID
I_ORGUNITID = "Org Unit ID
I_RFCDEST = "Logical destination (specified in function call)
I_TIMEFRAME = "Timeframe
I_TF_YEAR = "Time fram year
I_CONNECTOR = "Logical destination (specified in function call)

IMPORTING
ET_GLOBAL_VALUES = "Global variables
ES_RETURN = "Return parameter
ET_SCRIPT_INFO = "Script and Rule Criteria Assignment
ET_TRANS = "Trans
ET_SCHEMA_ORDER = "Schema Order
ET_RULEVARIABLES = "Rule variables
ET_RULE = "Rule Table
ET_DEFICIENCY = "Deficiency
ES_OLSP = "OLSP Range table
ES_COMPLIANCE = "Compliance Parameters
ES_HEADER = "Structure for XML Header Data
.



IMPORTING Parameters details for GRPCRTA_RULEID_READ

I_CONTROL_ID - Control ID

Data type: GRPCRTA_CONTROL_ID
Optional: No
Call by Reference: Yes

I_RULEID - Rule ID

Data type: GRPCRTA_RULEID
Optional: No
Call by Reference: Yes

I_ORGUNITID - Org Unit ID

Data type: GRPCRTA_ORGUNIT_ID
Optional: No
Call by Reference: Yes

I_RFCDEST - Logical destination (specified in function call)

Data type: RFCDEST
Optional: No
Call by Reference: Yes

I_TIMEFRAME - Timeframe

Data type: GRPCRTA_TIMEFRAME
Optional: No
Call by Reference: Yes

I_TF_YEAR - Time fram year

Data type: GRPCRTA_GRCP_TF_YEAR
Optional: No
Call by Reference: Yes

I_CONNECTOR - Logical destination (specified in function call)

Data type: RFCDEST
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for GRPCRTA_RULEID_READ

ET_GLOBAL_VALUES - Global variables

Data type: GRPCRTA_T_GLOBALVARIABLES
Optional: No
Call by Reference: Yes

ES_RETURN - Return parameter

Data type: BAPIRETURN1
Optional: No
Call by Reference: Yes

ET_SCRIPT_INFO - Script and Rule Criteria Assignment

Data type: GRPCRTA_T_SCRIPT_INFO
Optional: No
Call by Reference: Yes

ET_TRANS - Trans

Data type: GRPCRTA_T_TRANS
Optional: No
Call by Reference: Yes

ET_SCHEMA_ORDER - Schema Order

Data type: GRPCRTA_T_SCHEMAORDER
Optional: No
Call by Reference: Yes

ET_RULEVARIABLES - Rule variables

Data type: GRPCRTA_T_RULEVARIABLES
Optional: No
Call by Reference: Yes

ET_RULE - Rule Table

Data type: GRPCRTA_T_RULE
Optional: No
Call by Reference: Yes

ET_DEFICIENCY - Deficiency

Data type: GRPCRTA_T_DEFDS
Optional: No
Call by Reference: Yes

ES_OLSP - OLSP Range table

Data type: GRPCRTA_S_OLSP
Optional: No
Call by Reference: Yes

ES_COMPLIANCE - Compliance Parameters

Data type: GRPCRTA_S_COMPPAR
Optional: No
Call by Reference: Yes

ES_HEADER - Structure for XML Header Data

Data type: GRPCRTA_XML_HEADER
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for GRPCRTA_RULEID_READ 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_control_id  TYPE GRPCRTA_CONTROL_ID, "   
lv_et_global_values  TYPE GRPCRTA_T_GLOBALVARIABLES, "   
lv_es_return  TYPE BAPIRETURN1, "   
lv_et_script_info  TYPE GRPCRTA_T_SCRIPT_INFO, "   
lv_et_trans  TYPE GRPCRTA_T_TRANS, "   
lv_i_ruleid  TYPE GRPCRTA_RULEID, "   
lv_i_orgunitid  TYPE GRPCRTA_ORGUNIT_ID, "   
lv_et_schema_order  TYPE GRPCRTA_T_SCHEMAORDER, "   
lv_i_rfcdest  TYPE RFCDEST, "   
lv_et_rulevariables  TYPE GRPCRTA_T_RULEVARIABLES, "   
lv_et_rule  TYPE GRPCRTA_T_RULE, "   
lv_i_timeframe  TYPE GRPCRTA_TIMEFRAME, "   
lv_i_tf_year  TYPE GRPCRTA_GRCP_TF_YEAR, "   
lv_et_deficiency  TYPE GRPCRTA_T_DEFDS, "   
lv_es_olsp  TYPE GRPCRTA_S_OLSP, "   
lv_i_connector  TYPE RFCDEST, "   
lv_es_compliance  TYPE GRPCRTA_S_COMPPAR, "   
lv_es_header  TYPE GRPCRTA_XML_HEADER. "   

  CALL FUNCTION 'GRPCRTA_RULEID_READ'  "Read Rule data from GRC Server
    EXPORTING
         I_CONTROL_ID = lv_i_control_id
         I_RULEID = lv_i_ruleid
         I_ORGUNITID = lv_i_orgunitid
         I_RFCDEST = lv_i_rfcdest
         I_TIMEFRAME = lv_i_timeframe
         I_TF_YEAR = lv_i_tf_year
         I_CONNECTOR = lv_i_connector
    IMPORTING
         ET_GLOBAL_VALUES = lv_et_global_values
         ES_RETURN = lv_es_return
         ET_SCRIPT_INFO = lv_et_script_info
         ET_TRANS = lv_et_trans
         ET_SCHEMA_ORDER = lv_et_schema_order
         ET_RULEVARIABLES = lv_et_rulevariables
         ET_RULE = lv_et_rule
         ET_DEFICIENCY = lv_et_deficiency
         ES_OLSP = lv_es_olsp
         ES_COMPLIANCE = lv_es_compliance
         ES_HEADER = lv_es_header
. " GRPCRTA_RULEID_READ




ABAP code using 7.40 inline data declarations to call FM GRPCRTA_RULEID_READ

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



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!