RRMS_MESSAGE_HANDLING is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RRMS_MESSAGE_HANDLING into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RRMS
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RRMS_MESSAGE_HANDLING' "Message handling
* EXPORTING
* i_class = 'BRAIN' " smesg-arbgb Message Class
* i_type = 'S' " smesg-msgty Message Type
* i_number = '000' " smesg-txtnr Number in the message class
* i_msgv1 = " Text 1
* i_msgv2 = " Text 2
* i_msgv3 = " Text 3
* i_msgv4 = " Text 4
* i_interrupt_severity = 16 " sy-subrc Output directly as of this severity
* i_langu = SY-LANGU " sy-langu Language
* i_sapgui_flag = SPACE " Process Message with 'Program in Progress'
* i_supprmess = " rsrsupprmess Suppress Messages
* i_cumulate = RS_C_FALSE " rs_bool Cumulate Messages in Log
* i_probclass = " balprobcl Application Log: Message Problem Class
EXCEPTIONS
DUMMY = 1 "
. " RRMS_MESSAGE_HANDLING
The ABAP code below is a full code listing to execute function module RRMS_MESSAGE_HANDLING including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_i_class) = some text here
DATA(ld_i_type) = some text here
DATA(ld_i_number) = some text here
DATA(ld_i_msgv1) = 'some text here'.
DATA(ld_i_msgv2) = 'some text here'.
DATA(ld_i_msgv3) = 'some text here'.
DATA(ld_i_msgv4) = 'some text here'.
DATA(ld_i_interrupt_severity) = 'Check type of data required'.
DATA(ld_i_langu) = 'Check type of data required'.
DATA(ld_i_sapgui_flag) = 'some text here'.
DATA(ld_i_supprmess) = 'Check type of data required'.
DATA(ld_i_cumulate) = 'Check type of data required'.
DATA(ld_i_probclass) = 'Check type of data required'. . CALL FUNCTION 'RRMS_MESSAGE_HANDLING' * EXPORTING * i_class = ld_i_class * i_type = ld_i_type * i_number = ld_i_number * i_msgv1 = ld_i_msgv1 * i_msgv2 = ld_i_msgv2 * i_msgv3 = ld_i_msgv3 * i_msgv4 = ld_i_msgv4 * i_interrupt_severity = ld_i_interrupt_severity * i_langu = ld_i_langu * i_sapgui_flag = ld_i_sapgui_flag * i_supprmess = ld_i_supprmess * i_cumulate = ld_i_cumulate * i_probclass = ld_i_probclass EXCEPTIONS DUMMY = 1 . " RRMS_MESSAGE_HANDLING
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_class | TYPE SMESG-ARBGB , |
| ld_i_type | TYPE SMESG-MSGTY , |
| ld_i_number | TYPE SMESG-TXTNR , |
| ld_i_msgv1 | TYPE STRING , |
| ld_i_msgv2 | TYPE STRING , |
| ld_i_msgv3 | TYPE STRING , |
| ld_i_msgv4 | TYPE STRING , |
| ld_i_interrupt_severity | TYPE SY-SUBRC , |
| ld_i_langu | TYPE SY-LANGU , |
| ld_i_sapgui_flag | TYPE STRING , |
| ld_i_supprmess | TYPE RSRSUPPRMESS , |
| ld_i_cumulate | TYPE RS_BOOL , |
| ld_i_probclass | TYPE BALPROBCL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RRMS_MESSAGE_HANDLING or its description.
RRMS_MESSAGE_HANDLING - Message handling RRMS_MESSAGE_COLLECT_INTERRUPT - Interrupt Message Collecting Without Reset RRMS_MESSAGE_COLLECT_CONTINUE - Continue Message Collecting RRMS_MESSAGES_SHOW - Display Messages for a Handle RRMS_MESSAGES_OUTPUT - Output of Messages Collected for Handle RRMS_MESSAGES_INPUT - Counterpart of RRMS_MESSAGES_OUTPUT: No msg check