SAP RSPC_CHAIN_MAINTAIN Function Module for Process Chain Maintenance









RSPC_CHAIN_MAINTAIN is a standard rspc chain maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Process Chain Maintenance 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 maintain FM, simply by entering the name RSPC_CHAIN_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function RSPC_CHAIN_MAINTAIN 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_MAINTAIN'"Process Chain Maintenance
EXPORTING
* I_CHAIN = "Process Chain
* I_NAVIGATION_TOOL = "Process Chains: Tool class for AWB integration
* I_S_NAVISTACK = "Process Chain Maintenance Navigation Stack
* I_DISPLAY_ONLY = 'X' "Display Only
* I_TYPE = "Process Type
* I_VARIANT = "Process Variant (Name)
* I_T_VARIANT = "Type and Variant
* I_LOGID = "Log ID of a Process Chain Run
* I_MODE = 'PLAN' "Display Mode Process Chain Maintenance
* I_CONTROL = 'NET' "Which control is used for display?
* I_VIEW = 'C' "Expert View or Simplified View
* I_NAVIGATION_CONTROL = "Navigation Control AWB

IMPORTING
E_EXIT = "Boolean
E_T_CHAINT = "Texts for Chain

EXCEPTIONS
INTERNAL_ERROR = 1 ABORTED_BY_USER = 2
.



IMPORTING Parameters details for RSPC_CHAIN_MAINTAIN

I_CHAIN - Process Chain

Data type: RSPC_CHAIN
Optional: Yes
Call by Reference: Yes

I_NAVIGATION_TOOL - Process Chains: Tool class for AWB integration

Data type: CL_RSPC_AWB_TOOL
Optional: Yes
Call by Reference: Yes

I_S_NAVISTACK - Process Chain Maintenance Navigation Stack

Data type: RSPC_S_NAVISTACK
Optional: Yes
Call by Reference: Yes

I_DISPLAY_ONLY - Display Only

Data type: RS_BOOL
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_TYPE - Process Type

Data type: RSPC_TYPE
Optional: Yes
Call by Reference: Yes

I_VARIANT - Process Variant (Name)

Data type: RSPC_VARIANT
Optional: Yes
Call by Reference: Yes

I_T_VARIANT - Type and Variant

Data type: RSPC_T_VARIANTE
Optional: Yes
Call by Reference: Yes

I_LOGID - Log ID of a Process Chain Run

Data type: RSPC_LOGID
Optional: Yes
Call by Reference: Yes

I_MODE - Display Mode Process Chain Maintenance

Data type: RSPC_FRONTENDMODE
Default: 'PLAN'
Optional: Yes
Call by Reference: Yes

I_CONTROL - Which control is used for display?

Data type: RSPC_CONTROLMODE
Default: 'NET'
Optional: Yes
Call by Reference: Yes

I_VIEW - Expert View or Simplified View

Data type: RSPC_VIEWMODE
Default: 'C'
Optional: Yes
Call by Reference: Yes

I_NAVIGATION_CONTROL - Navigation Control AWB

Data type: IF_RSAWBN_NAVIGATOR
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RSPC_CHAIN_MAINTAIN

E_EXIT - Boolean

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

E_T_CHAINT - Texts for Chain

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

EXCEPTIONS details

INTERNAL_ERROR - Error

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

ABORTED_BY_USER - User is fed up

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

Copy and paste ABAP code example for RSPC_CHAIN_MAINTAIN 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_exit  TYPE RS_BOOL, "   
lv_i_chain  TYPE RSPC_CHAIN, "   
lv_internal_error  TYPE RSPC_CHAIN, "   
lv_i_navigation_tool  TYPE CL_RSPC_AWB_TOOL, "   
lv_i_s_navistack  TYPE RSPC_S_NAVISTACK, "   
lv_i_display_only  TYPE RS_BOOL, "   'X'
lv_i_type  TYPE RSPC_TYPE, "   
lv_e_t_chaint  TYPE RSPC_T_CHAINT, "   
lv_aborted_by_user  TYPE RSPC_T_CHAINT, "   
lv_i_variant  TYPE RSPC_VARIANT, "   
lv_i_t_variant  TYPE RSPC_T_VARIANTE, "   
lv_i_logid  TYPE RSPC_LOGID, "   
lv_i_mode  TYPE RSPC_FRONTENDMODE, "   'PLAN'
lv_i_control  TYPE RSPC_CONTROLMODE, "   'NET'
lv_i_view  TYPE RSPC_VIEWMODE, "   'C'
lv_i_navigation_control  TYPE IF_RSAWBN_NAVIGATOR. "   

  CALL FUNCTION 'RSPC_CHAIN_MAINTAIN'  "Process Chain Maintenance
    EXPORTING
         I_CHAIN = lv_i_chain
         I_NAVIGATION_TOOL = lv_i_navigation_tool
         I_S_NAVISTACK = lv_i_s_navistack
         I_DISPLAY_ONLY = lv_i_display_only
         I_TYPE = lv_i_type
         I_VARIANT = lv_i_variant
         I_T_VARIANT = lv_i_t_variant
         I_LOGID = lv_i_logid
         I_MODE = lv_i_mode
         I_CONTROL = lv_i_control
         I_VIEW = lv_i_view
         I_NAVIGATION_CONTROL = lv_i_navigation_control
    IMPORTING
         E_EXIT = lv_e_exit
         E_T_CHAINT = lv_e_t_chaint
    EXCEPTIONS
        INTERNAL_ERROR = 1
        ABORTED_BY_USER = 2
. " RSPC_CHAIN_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM RSPC_CHAIN_MAINTAIN

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.

 
 
 
 
 
DATA(ld_i_display_only) = 'X'.
 
 
 
 
 
 
 
DATA(ld_i_mode) = 'PLAN'.
 
DATA(ld_i_control) = 'NET'.
 
DATA(ld_i_view) = 'C'.
 
 


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!