SAP RSPC_CHAIN_EXECUTE_REMOTE Function Module for Remote start process chain (internal -> external RSPC_API_CHAIN_START see)
RSPC_CHAIN_EXECUTE_REMOTE is a standard rspc chain execute remote SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Remote start process chain (internal -> external RSPC_API_CHAIN_START see) 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 chain execute remote FM, simply by entering the name RSPC_CHAIN_EXECUTE_REMOTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSPC_PROCESSES
Program Name: SAPLRSPC_PROCESSES
Main Program: SAPLRSPC_PROCESSES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function RSPC_CHAIN_EXECUTE_REMOTE 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_CHAIN_EXECUTE_REMOTE'"Remote start process chain (internal -> external RSPC_API_CHAIN_START see).
EXPORTING
I_CHAIN = "Process Chain
* I_LOGID = "Log ID of a Process Chain Run
* I_DESTINATION = "Logical Destination (Specified When Function Is Called)
* I_WIID = "Work Item ID
* I_LOGSYS = "Logical System
* I_REPAIR = "Instance to be Repaired (Repair Mode)
* I_REMOTEVARIANT = "Version of the Remote Process
IMPORTING
E_LOGID = "Log ID of a Process Chain Run
E_STATE = "Status of a Process
E_HOLD = "Repress Sending the Follow-On Event
IMPORTING Parameters details for RSPC_CHAIN_EXECUTE_REMOTE
I_CHAIN - Process Chain
Data type: RSPC_CHAINOptional: No
Call by Reference: No ( called with pass by value option)
I_LOGID - Log ID of a Process Chain Run
Data type: RSPC_LOGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DESTINATION - Logical Destination (Specified When Function Is Called)
Data type: RFCDESTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WIID - Work Item ID
Data type: SWW_WIIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LOGSYS - Logical System
Data type: LOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_REPAIR - Instance to be Repaired (Repair Mode)
Data type: RSPC_REPAIROptional: Yes
Call by Reference: No ( called with pass by value option)
I_REMOTEVARIANT - Version of the Remote Process
Data type: RSPC_VARIANTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSPC_CHAIN_EXECUTE_REMOTE
E_LOGID - Log ID of a Process Chain Run
Data type: RSPC_LOGIDOptional: No
Call by Reference: No ( called with pass by value option)
E_STATE - Status of a Process
Data type: RSPC_STATEOptional: No
Call by Reference: No ( called with pass by value option)
E_HOLD - Repress Sending the Follow-On Event
Data type: RSPC_HOLDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSPC_CHAIN_EXECUTE_REMOTE 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_logid | TYPE RSPC_LOGID, " | |||
lv_i_chain | TYPE RSPC_CHAIN, " | |||
lv_e_state | TYPE RSPC_STATE, " | |||
lv_i_logid | TYPE RSPC_LOGID, " | |||
lv_e_hold | TYPE RSPC_HOLD, " | |||
lv_i_destination | TYPE RFCDEST, " | |||
lv_i_wiid | TYPE SWW_WIID, " | |||
lv_i_logsys | TYPE LOGSYS, " | |||
lv_i_repair | TYPE RSPC_REPAIR, " | |||
lv_i_remotevariant | TYPE RSPC_VARIANT. " |
  CALL FUNCTION 'RSPC_CHAIN_EXECUTE_REMOTE' "Remote start process chain (internal -> external RSPC_API_CHAIN_START see) |
EXPORTING | ||
I_CHAIN | = lv_i_chain | |
I_LOGID | = lv_i_logid | |
I_DESTINATION | = lv_i_destination | |
I_WIID | = lv_i_wiid | |
I_LOGSYS | = lv_i_logsys | |
I_REPAIR | = lv_i_repair | |
I_REMOTEVARIANT | = lv_i_remotevariant | |
IMPORTING | ||
E_LOGID | = lv_e_logid | |
E_STATE | = lv_e_state | |
E_HOLD | = lv_e_hold | |
. " RSPC_CHAIN_EXECUTE_REMOTE |
ABAP code using 7.40 inline data declarations to call FM RSPC_CHAIN_EXECUTE_REMOTE
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