SAP RSSM_GET_STATUS Function Module for calculation of overall status
RSSM_GET_STATUS is a standard rssm get status SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for calculation of overall status 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 rssm get status FM, simply by entering the name RSSM_GET_STATUS into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSM2
Program Name: SAPLRSM2
Main Program: SAPLRSM2
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSSM_GET_STATUS 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 'RSSM_GET_STATUS'"calculation of overall status.
EXPORTING
* RNR = "Request ID (data package)
* LOGID = "Log-ID of a Process Chain Run
* LEAN = RS_C_TRUE "only status calculation
* NO_QUICK_NEEDED = RS_C_TRUE "no quick info calc
* NO_TIMEOUT = RS_C_TRUE "no calculation of timeouts
* ISOURCETYPE = "I,O; needed if no_timeout is initial
UPDMODE = "R, D, F, I; needed always
* IGNORE_ERRORLOG = RS_C_FALSE "ignore errors
* ONLY_BW = RS_C_FALSE "only check BW part
* ZIEL = "Target(s) of the data from the scheduler job
IMPORTING
STATUS = "status of request
QUICK = "Quickinfo for error
TABLES
* T_MESS = "rsmonmess for request
* T_FACT = "rsmonfact for request
* T_IPTAB = "rsmoniptab for request
* T_ICTAB = "
IMPORTING Parameters details for RSSM_GET_STATUS
RNR - Request ID (data package)
Data type: RSREQUIDOptional: Yes
Call by Reference: Yes
LOGID - Log-ID of a Process Chain Run
Data type: RSPC_LOGIDOptional: Yes
Call by Reference: Yes
LEAN - only status calculation
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
NO_QUICK_NEEDED - no quick info calc
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
NO_TIMEOUT - no calculation of timeouts
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
ISOURCETYPE - I,O; needed if no_timeout is initial
Data type: RSMONOUT-TYPOptional: Yes
Call by Reference: Yes
UPDMODE - R, D, F, I; needed always
Data type: RSSELDONE-UPDMODEOptional: No
Call by Reference: Yes
IGNORE_ERRORLOG - ignore errors
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
ONLY_BW - only check BW part
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
ZIEL - Target(s) of the data from the scheduler job
Data type: RSZIELOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSSM_GET_STATUS
STATUS - status of request
Data type: RSSTATUSOptional: No
Call by Reference: Yes
QUICK - Quickinfo for error
Data type: CHAR128Optional: No
Call by Reference: Yes
TABLES Parameters details for RSSM_GET_STATUS
T_MESS - rsmonmess for request
Data type: RSMONMESSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FACT - rsmonfact for request
Data type: RSMONFACTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_IPTAB - rsmoniptab for request
Data type: RSMONIPTABOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ICTAB -
Data type: RSMONICTABOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSSM_GET_STATUS 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_rnr | TYPE RSREQUID, " | |||
| lv_status | TYPE RSSTATUS, " | |||
| lt_t_mess | TYPE STANDARD TABLE OF RSMONMESS, " | |||
| lv_logid | TYPE RSPC_LOGID, " | |||
| lv_lean | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_quick | TYPE CHAR128, " | |||
| lt_t_fact | TYPE STANDARD TABLE OF RSMONFACT, " | |||
| lt_t_iptab | TYPE STANDARD TABLE OF RSMONIPTAB, " | |||
| lv_no_quick_needed | TYPE RS_BOOL, " RS_C_TRUE | |||
| lt_t_ictab | TYPE STANDARD TABLE OF RSMONICTAB, " | |||
| lv_no_timeout | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_isourcetype | TYPE RSMONOUT-TYP, " | |||
| lv_updmode | TYPE RSSELDONE-UPDMODE, " | |||
| lv_ignore_errorlog | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_only_bw | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_ziel | TYPE RSZIEL. " |
|   CALL FUNCTION 'RSSM_GET_STATUS' "calculation of overall status |
| EXPORTING | ||
| RNR | = lv_rnr | |
| LOGID | = lv_logid | |
| LEAN | = lv_lean | |
| NO_QUICK_NEEDED | = lv_no_quick_needed | |
| NO_TIMEOUT | = lv_no_timeout | |
| ISOURCETYPE | = lv_isourcetype | |
| UPDMODE | = lv_updmode | |
| IGNORE_ERRORLOG | = lv_ignore_errorlog | |
| ONLY_BW | = lv_only_bw | |
| ZIEL | = lv_ziel | |
| IMPORTING | ||
| STATUS | = lv_status | |
| QUICK | = lv_quick | |
| TABLES | ||
| T_MESS | = lt_t_mess | |
| T_FACT | = lt_t_fact | |
| T_IPTAB | = lt_t_iptab | |
| T_ICTAB | = lt_t_ictab | |
| . " RSSM_GET_STATUS | ||
ABAP code using 7.40 inline data declarations to call FM RSSM_GET_STATUS
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_lean) | = RS_C_TRUE. | |||
| DATA(ld_no_quick_needed) | = RS_C_TRUE. | |||
| DATA(ld_no_timeout) | = RS_C_TRUE. | |||
| "SELECT single TYP FROM RSMONOUT INTO @DATA(ld_isourcetype). | ||||
| "SELECT single UPDMODE FROM RSSELDONE INTO @DATA(ld_updmode). | ||||
| DATA(ld_ignore_errorlog) | = RS_C_FALSE. | |||
| DATA(ld_only_bw) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects