SAP GRPCRTA_PC_GET_GRC_DATA Function Module for Get data from GRC system









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

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



Function GRPCRTA_PC_GET_GRC_DATA 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_PC_GET_GRC_DATA'"Get data from GRC system
EXPORTING
I_RFCDEST = "Logical destination (specified in function call)
I_FLAG = "Check flag
* I_TIMEFRAME = "Time frame
* I_TIMEFRAME_Y = "Year
* I_SEARCH_PATTERN = "search pattern
* I_FREQUENCY = "Time frame
* I_SRFCDEST = "Source Connector
* I_REGULATIONID = "Regulation ID

IMPORTING
I_TIMEFRAME_INFO = "structure info for timeframe
E_SYSTEMINFO = "GRPCRTA PC Server System Info
ES_RETURN = "Return parameter

TABLES
* T_TIMEFRAME_LIST = "value set for timeframe
* T_SUBPRO_RAN = "Structure for ranges for subprocess
* I_CONNECTOR_LIST = "Table for Connector mapping
* T_TIMEFRAME_DETAIL = "Timeframe detail
* I_FREQ_LST = "Tbale for storing Freq list
* T_TIMEFRAME_Y_LIST = "Table for timeframe year
* T_ORGLIST = "Org unit list
* T_PROCESSLIST = "Table for process list
* T_SUBPROCESSLIST = "Table for subprocess list
* T_CONTROL_SRES = "Table for control list
* T_CONTROL_RULE = "Table for Rule list
* T_ORG_RAN = "Range table for Organisation
* T_PRO_RAN = "Rabge table for Process ranges
.



IMPORTING Parameters details for GRPCRTA_PC_GET_GRC_DATA

I_RFCDEST - Logical destination (specified in function call)

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

I_FLAG - Check flag

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

I_TIMEFRAME - Time frame

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

I_TIMEFRAME_Y - Year

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

I_SEARCH_PATTERN - search pattern

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

I_FREQUENCY - Time frame

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

I_SRFCDEST - Source Connector

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

I_REGULATIONID - Regulation ID

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

EXPORTING Parameters details for GRPCRTA_PC_GET_GRC_DATA

I_TIMEFRAME_INFO - structure info for timeframe

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

E_SYSTEMINFO - GRPCRTA PC Server System Info

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

ES_RETURN - Return parameter

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

TABLES Parameters details for GRPCRTA_PC_GET_GRC_DATA

T_TIMEFRAME_LIST - value set for timeframe

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

T_SUBPRO_RAN - Structure for ranges for subprocess

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

I_CONNECTOR_LIST - Table for Connector mapping

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

T_TIMEFRAME_DETAIL - Timeframe detail

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

I_FREQ_LST - Tbale for storing Freq list

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

T_TIMEFRAME_Y_LIST - Table for timeframe year

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

T_ORGLIST - Org unit list

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

T_PROCESSLIST - Table for process list

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

T_SUBPROCESSLIST - Table for subprocess list

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

T_CONTROL_SRES - Table for control list

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

T_CONTROL_RULE - Table for Rule list

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

T_ORG_RAN - Range table for Organisation

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

T_PRO_RAN - Rabge table for Process ranges

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

Copy and paste ABAP code example for GRPCRTA_PC_GET_GRC_DATA 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_rfcdest  TYPE RFCDES-RFCDEST, "   
lv_i_timeframe_info  TYPE GRPCRTA_S_TIMEFRAME_INFO, "   
lt_t_timeframe_list  TYPE STANDARD TABLE OF GRPCRTA_T_API_TIMEFRAME, "   
lt_t_subpro_ran  TYPE STANDARD TABLE OF GRPCRTA_T_SUBPRO_RAN, "   
lt_i_connector_list  TYPE STANDARD TABLE OF GRPCRTA_T_CONNECTOR_LIST, "   
lt_t_timeframe_detail  TYPE STANDARD TABLE OF GRPCRTA_T_TIMEFRAME_LIST, "   
lt_i_freq_lst  TYPE STANDARD TABLE OF GRPCRTA_T_FREQUENCY_LIST, "   
lv_i_flag  TYPE GRPCRTA_CHECK_FLAG, "   
lv_e_systeminfo  TYPE GRPCRTA_SYSTEMINFO, "   
lt_t_timeframe_y_list  TYPE STANDARD TABLE OF GRPCRTA_T_TF_YEAR, "   
lv_es_return  TYPE BAPIRETURN1, "   
lt_t_orglist  TYPE STANDARD TABLE OF GRPCRTA_T_ORGLIST, "   
lv_i_timeframe  TYPE GRPCRTA_PCDETIMEFRAME, "   
lv_i_timeframe_y  TYPE GRPCRTA_PCDEYEAR, "   
lt_t_processlist  TYPE STANDARD TABLE OF GRPCRTA_T_PRO_LIST, "   
lv_i_search_pattern  TYPE GRPCRTA_SEARCH_PATTERN, "   
lt_t_subprocesslist  TYPE STANDARD TABLE OF GRPCRTA_T_SUBPRO_LIST, "   
lv_i_frequency  TYPE GRPCRTA_FREQ, "   
lt_t_control_sres  TYPE STANDARD TABLE OF GRPCRTA_T_CONTROL_LIST, "   
lv_i_srfcdest  TYPE RFCDES-RFCDEST, "   
lt_t_control_rule  TYPE STANDARD TABLE OF GRPCRTA_T_RULE_LIST, "   
lt_t_org_ran  TYPE STANDARD TABLE OF GRPCRTA_T_ORG_RAN, "   
lv_i_regulationid  TYPE GRPCRTA_REGULATIONID, "   
lt_t_pro_ran  TYPE STANDARD TABLE OF GRPCRTA_T_PROCESS_RAN. "   

  CALL FUNCTION 'GRPCRTA_PC_GET_GRC_DATA'  "Get data from GRC system
    EXPORTING
         I_RFCDEST = lv_i_rfcdest
         I_FLAG = lv_i_flag
         I_TIMEFRAME = lv_i_timeframe
         I_TIMEFRAME_Y = lv_i_timeframe_y
         I_SEARCH_PATTERN = lv_i_search_pattern
         I_FREQUENCY = lv_i_frequency
         I_SRFCDEST = lv_i_srfcdest
         I_REGULATIONID = lv_i_regulationid
    IMPORTING
         I_TIMEFRAME_INFO = lv_i_timeframe_info
         E_SYSTEMINFO = lv_e_systeminfo
         ES_RETURN = lv_es_return
    TABLES
         T_TIMEFRAME_LIST = lt_t_timeframe_list
         T_SUBPRO_RAN = lt_t_subpro_ran
         I_CONNECTOR_LIST = lt_i_connector_list
         T_TIMEFRAME_DETAIL = lt_t_timeframe_detail
         I_FREQ_LST = lt_i_freq_lst
         T_TIMEFRAME_Y_LIST = lt_t_timeframe_y_list
         T_ORGLIST = lt_t_orglist
         T_PROCESSLIST = lt_t_processlist
         T_SUBPROCESSLIST = lt_t_subprocesslist
         T_CONTROL_SRES = lt_t_control_sres
         T_CONTROL_RULE = lt_t_control_rule
         T_ORG_RAN = lt_t_org_ran
         T_PRO_RAN = lt_t_pro_ran
. " GRPCRTA_PC_GET_GRC_DATA




ABAP code using 7.40 inline data declarations to call FM GRPCRTA_PC_GET_GRC_DATA

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 RFCDEST FROM RFCDES INTO @DATA(ld_i_rfcdest).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_i_srfcdest).
 
 
 
 
 


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!