SAP RSPC_PROCESS_GET_INFO Function Module for Determine which process is currently running
RSPC_PROCESS_GET_INFO is a standard rspc process get info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine which process is currently running 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 rspc process get info FM, simply by entering the name RSPC_PROCESS_GET_INFO into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSPC_BACKEND
Program Name: SAPLRSPC_BACKEND
Main Program: SAPLRSPC_BACKEND
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSPC_PROCESS_GET_INFO 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 'RSPC_PROCESS_GET_INFO'"Determine which process is currently running.
EXPORTING
* I_CHAIN = "Process Chain
I_TYPE = "Process Type
* I_VARIANT = "Process Variant (Name)
* I_LOGID = "Restart: Log-id of a run of a process chain
* I_EVENTID = "Restart: Results of the backgound processing
* I_EVENTPARM = "Restart: Paramter of a batch event (e.g. job name/ job count )
* I_WAIT = "Restart: Seconds
IMPORTING
E_EVENTID = "Background Processing Event
E_T_VARIABLES = "Process Chain Variables
E_EVENTPARM = "Background Event Parameters (for Example, Jobname/Jobcount)
E_JOBCOUNT = "Job ID
E_BATCHDATE = "Release Date for Background Scheduling
E_BATCHTIME = "Release time of scheduled background job
E_OBJECT = "Object Type Name
E_OBJTYPE = "Type of Object (CL or BO)
E_T_PROCESSLIST = "Predecessor and Successor Processes (Process Chain Maint.)
E_LOGID = "Log ID of a Process Chain Run
IMPORTING Parameters details for RSPC_PROCESS_GET_INFO
I_CHAIN - Process Chain
Data type: RSPC_CHAINOptional: Yes
Call by Reference: Yes
I_TYPE - Process Type
Data type: RSPC_TYPEOptional: No
Call by Reference: Yes
I_VARIANT - Process Variant (Name)
Data type: RSPC_VARIANTOptional: Yes
Call by Reference: Yes
I_LOGID - Restart: Log-id of a run of a process chain
Data type: RSPC_LOGIDOptional: Yes
Call by Reference: Yes
I_EVENTID - Restart: Results of the backgound processing
Data type: BTCEVENTIDOptional: Yes
Call by Reference: Yes
I_EVENTPARM - Restart: Paramter of a batch event (e.g. job name/ job count )
Data type: BTCEVTPARMOptional: Yes
Call by Reference: Yes
I_WAIT - Restart: Seconds
Data type: RSPC_SECONDSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSPC_PROCESS_GET_INFO
E_EVENTID - Background Processing Event
Data type: BTCEVENTIDOptional: No
Call by Reference: Yes
E_T_VARIABLES - Process Chain Variables
Data type: RSPC_T_VARIABLESOptional: No
Call by Reference: Yes
E_EVENTPARM - Background Event Parameters (for Example, Jobname/Jobcount)
Data type: BTCEVTPARMOptional: No
Call by Reference: Yes
E_JOBCOUNT - Job ID
Data type: BTCJOBCNTOptional: No
Call by Reference: Yes
E_BATCHDATE - Release Date for Background Scheduling
Data type: BTCRELDTOptional: No
Call by Reference: Yes
E_BATCHTIME - Release time of scheduled background job
Data type: BTCRELTMOptional: No
Call by Reference: Yes
E_OBJECT - Object Type Name
Data type: SEOCLSNAMEOptional: No
Call by Reference: Yes
E_OBJTYPE - Type of Object (CL or BO)
Data type: RSPC_OBJECTTYPEOptional: No
Call by Reference: Yes
E_T_PROCESSLIST - Predecessor and Successor Processes (Process Chain Maint.)
Data type: RSPC_T_PROCESSLISTOptional: No
Call by Reference: Yes
E_LOGID - Log ID of a Process Chain Run
Data type: RSPC_LOGIDOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSPC_PROCESS_GET_INFO 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_chain | TYPE RSPC_CHAIN, " | |||
| lv_e_eventid | TYPE BTCEVENTID, " | |||
| lv_e_t_variables | TYPE RSPC_T_VARIABLES, " | |||
| lv_i_type | TYPE RSPC_TYPE, " | |||
| lv_e_eventparm | TYPE BTCEVTPARM, " | |||
| lv_i_variant | TYPE RSPC_VARIANT, " | |||
| lv_e_jobcount | TYPE BTCJOBCNT, " | |||
| lv_i_logid | TYPE RSPC_LOGID, " | |||
| lv_e_batchdate | TYPE BTCRELDT, " | |||
| lv_i_eventid | TYPE BTCEVENTID, " | |||
| lv_e_batchtime | TYPE BTCRELTM, " | |||
| lv_e_object | TYPE SEOCLSNAME, " | |||
| lv_i_eventparm | TYPE BTCEVTPARM, " | |||
| lv_i_wait | TYPE RSPC_SECONDS, " | |||
| lv_e_objtype | TYPE RSPC_OBJECTTYPE, " | |||
| lv_e_t_processlist | TYPE RSPC_T_PROCESSLIST, " | |||
| lv_e_logid | TYPE RSPC_LOGID. " |
|   CALL FUNCTION 'RSPC_PROCESS_GET_INFO' "Determine which process is currently running |
| EXPORTING | ||
| I_CHAIN | = lv_i_chain | |
| I_TYPE | = lv_i_type | |
| I_VARIANT | = lv_i_variant | |
| I_LOGID | = lv_i_logid | |
| I_EVENTID | = lv_i_eventid | |
| I_EVENTPARM | = lv_i_eventparm | |
| I_WAIT | = lv_i_wait | |
| IMPORTING | ||
| E_EVENTID | = lv_e_eventid | |
| E_T_VARIABLES | = lv_e_t_variables | |
| E_EVENTPARM | = lv_e_eventparm | |
| E_JOBCOUNT | = lv_e_jobcount | |
| E_BATCHDATE | = lv_e_batchdate | |
| E_BATCHTIME | = lv_e_batchtime | |
| E_OBJECT | = lv_e_object | |
| E_OBJTYPE | = lv_e_objtype | |
| E_T_PROCESSLIST | = lv_e_t_processlist | |
| E_LOGID | = lv_e_logid | |
| . " RSPC_PROCESS_GET_INFO | ||
ABAP code using 7.40 inline data declarations to call FM RSPC_PROCESS_GET_INFO
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