SAP RSNDI_ADD_MESSAGE_TO_TABLE Function Module for Adds message to the message table
RSNDI_ADD_MESSAGE_TO_TABLE is a standard rsndi add message to table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Adds message to the message table 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 rsndi add message to table FM, simply by entering the name RSNDI_ADD_MESSAGE_TO_TABLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSNDI
Program Name: SAPLRSNDI
Main Program: SAPLRSNDI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSNDI_ADD_MESSAGE_TO_TABLE 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 'RSNDI_ADD_MESSAGE_TO_TABLE'"Adds message to the message table.
EXPORTING
* I_MSGTY = SY-MSGTY "Messages, Message Type
* I_MSGID = 'RH' "Messages, Message Class
* I_MSGNO = SY-MSGNO "Messages, Message Number
* I_MSGV1 = SY-MSGV1 "
* I_MSGV2 = SY-MSGV2 "
* I_MSGV3 = SY-MSGV3 "
* I_MSGV4 = SY-MSGV4 "
CHANGING
C_T_MESSAGES = "Message Table for NDI Hierarchies - Master Data Interface
IMPORTING Parameters details for RSNDI_ADD_MESSAGE_TO_TABLE
I_MSGTY - Messages, Message Type
Data type: SYMSGTYDefault: SY-MSGTY
Optional: No
Call by Reference: Yes
I_MSGID - Messages, Message Class
Data type: SYMSGIDDefault: 'RH'
Optional: No
Call by Reference: Yes
I_MSGNO - Messages, Message Number
Data type: SYMSGNODefault: SY-MSGNO
Optional: No
Call by Reference: Yes
I_MSGV1 -
Data type:Default: SY-MSGV1
Optional: No
Call by Reference: Yes
I_MSGV2 -
Data type:Default: SY-MSGV2
Optional: No
Call by Reference: Yes
I_MSGV3 -
Data type:Default: SY-MSGV3
Optional: No
Call by Reference: Yes
I_MSGV4 -
Data type:Default: SY-MSGV4
Optional: No
Call by Reference: Yes
CHANGING Parameters details for RSNDI_ADD_MESSAGE_TO_TABLE
C_T_MESSAGES - Message Table for NDI Hierarchies - Master Data Interface
Data type: RSNDI_T_MESSAGEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSNDI_ADD_MESSAGE_TO_TABLE 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_msgty | TYPE SYMSGTY, " SY-MSGTY | |||
| lv_c_t_messages | TYPE RSNDI_T_MESSAGE, " | |||
| lv_i_msgid | TYPE SYMSGID, " 'RH' | |||
| lv_i_msgno | TYPE SYMSGNO, " SY-MSGNO | |||
| lv_i_msgv1 | TYPE SYMSGNO, " SY-MSGV1 | |||
| lv_i_msgv2 | TYPE SYMSGNO, " SY-MSGV2 | |||
| lv_i_msgv3 | TYPE SYMSGNO, " SY-MSGV3 | |||
| lv_i_msgv4 | TYPE SYMSGNO. " SY-MSGV4 |
|   CALL FUNCTION 'RSNDI_ADD_MESSAGE_TO_TABLE' "Adds message to the message table |
| EXPORTING | ||
| I_MSGTY | = lv_i_msgty | |
| I_MSGID | = lv_i_msgid | |
| I_MSGNO | = lv_i_msgno | |
| I_MSGV1 | = lv_i_msgv1 | |
| I_MSGV2 | = lv_i_msgv2 | |
| I_MSGV3 | = lv_i_msgv3 | |
| I_MSGV4 | = lv_i_msgv4 | |
| CHANGING | ||
| C_T_MESSAGES | = lv_c_t_messages | |
| . " RSNDI_ADD_MESSAGE_TO_TABLE | ||
ABAP code using 7.40 inline data declarations to call FM RSNDI_ADD_MESSAGE_TO_TABLE
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_msgty) | = SY-MSGTY. | |||
| DATA(ld_i_msgid) | = 'RH'. | |||
| DATA(ld_i_msgno) | = SY-MSGNO. | |||
| DATA(ld_i_msgv1) | = SY-MSGV1. | |||
| DATA(ld_i_msgv2) | = SY-MSGV2. | |||
| DATA(ld_i_msgv3) | = SY-MSGV3. | |||
| DATA(ld_i_msgv4) | = SY-MSGV4. | |||
Search for further information about these or an SAP related objects