SAP RSRV_EXCEPTION_TO_MSG Function Module for
RSRV_EXCEPTION_TO_MSG is a standard rsrv exception to msg SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rsrv exception to msg FM, simply by entering the name RSRV_EXCEPTION_TO_MSG into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSRV
Program Name: SAPLRSRV
Main Program: SAPLRSRV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSRV_EXCEPTION_TO_MSG 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 'RSRV_EXCEPTION_TO_MSG'".
EXPORTING
I_R_E = "Abstract Superclass for All Global Exceptions
* I_DEBUG = "
* I_CLASS = "
* I_CLASS_TXT = "
* I_OUTPUT = RS_C_FALSE "
IMPORTING
E_S_MSG = "
E_T_DATA = "
E_DDICSTR = "
IMPORTING Parameters details for RSRV_EXCEPTION_TO_MSG
I_R_E - Abstract Superclass for All Global Exceptions
Data type: CX_ROOTOptional: No
Call by Reference: Yes
I_DEBUG -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CLASS -
Data type: RSRV_S_TEST-NODENAMEOptional: Yes
Call by Reference: Yes
I_CLASS_TXT -
Data type: RSRV_S_TEST-TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OUTPUT -
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSRV_EXCEPTION_TO_MSG
E_S_MSG -
Data type: RS_S_MSGOptional: No
Call by Reference: Yes
E_T_DATA -
Data type: ANY TABLEOptional: No
Call by Reference: Yes
E_DDICSTR -
Data type: ANYOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSRV_EXCEPTION_TO_MSG 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_r_e | TYPE CX_ROOT, " | |||
| lv_e_s_msg | TYPE RS_S_MSG, " | |||
| lv_i_debug | TYPE I, " | |||
| lv_e_t_data | TYPE ANY TABLE, " | |||
| lv_i_class | TYPE RSRV_S_TEST-NODENAME, " | |||
| lv_e_ddicstr | TYPE ANY, " | |||
| lv_i_class_txt | TYPE RSRV_S_TEST-TEXT, " | |||
| lv_i_output | TYPE RS_BOOL. " RS_C_FALSE |
|   CALL FUNCTION 'RSRV_EXCEPTION_TO_MSG' " |
| EXPORTING | ||
| I_R_E | = lv_i_r_e | |
| I_DEBUG | = lv_i_debug | |
| I_CLASS | = lv_i_class | |
| I_CLASS_TXT | = lv_i_class_txt | |
| I_OUTPUT | = lv_i_output | |
| IMPORTING | ||
| E_S_MSG | = lv_e_s_msg | |
| E_T_DATA | = lv_e_t_data | |
| E_DDICSTR | = lv_e_ddicstr | |
| . " RSRV_EXCEPTION_TO_MSG | ||
ABAP code using 7.40 inline data declarations to call FM RSRV_EXCEPTION_TO_MSG
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 NODENAME FROM RSRV_S_TEST INTO @DATA(ld_i_class). | ||||
| "SELECT single TEXT FROM RSRV_S_TEST INTO @DATA(ld_i_class_txt). | ||||
| DATA(ld_i_output) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects