SAP RSLG_WRITE_SYSLOG_ENTRY Function Module for Write an Entry into the Syslog
RSLG_WRITE_SYSLOG_ENTRY is a standard rslg write syslog entry SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Write an Entry into the Syslog 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 rslg write syslog entry FM, simply by entering the name RSLG_WRITE_SYSLOG_ENTRY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLO2
Program Name: SAPLSLO2
Main Program: SAPLSLO2
Appliation area: S
Release date: 01-Dec-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSLG_WRITE_SYSLOG_ENTRY 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 'RSLG_WRITE_SYSLOG_ENTRY'"Write an Entry into the Syslog.
EXPORTING
* DATA_AREA = ' ' "32 Character Variable Parts for the Message
* PRE_PARAM_A = ' ' "Variable Word, for &a in the Message
* PRE_PARAM_B = ' ' "Variable Word, for &b in the Message
* PRE_PARAM_C = ' ' "Variable Word, for &c in the Message
* PRE_PARAM_D = ' ' "Variable Word, for &d in the Message
* PRE_PARAM_E = ' ' "Variable Word, for &e in the Message
* PRE_PARAM_F = ' ' "Variable Word, for &f in the Message
* PRE_PARAM_G = ' ' "Variable Word, for &g in the Message
* PRE_PARAM_H = ' ' "Variable Word, for &h in the Message
* PRE_PARAM_I = ' ' "Variable Word, for &i in the Message
* PRE_PARAM_LONG = ' ' "Variable Word, for &a&b&d in the Message
* DATA_STRUCTURE = ' ' "Code Letter for Structure in 'DATA_AREA'
* DATA_WORD1 = ' ' "Variable Word, for &A in the Message
* DATA_WORD2 = ' ' "Variable Word, for &B in the Message
* DATA_WORD3 = ' ' "Variable Word, for &C in the Message
* DATA_WORD4 = ' ' "Variable Word, for &D in the Message
* DATA_WORD5 = ' ' "Variable Word, for &E in the Message
SL_MESSAGE_AREA = "First and Second Character of the Message ID
SL_MESSAGE_SUBID = "Third Character of the Message ID
EXCEPTIONS
DATA_MISSING = 1 DATA_WORDS_PROBLEM = 2 OTHER_PROBLEM = 3 PRE_PARAMS_PROBLEM = 4
IMPORTING Parameters details for RSLG_WRITE_SYSLOG_ENTRY
DATA_AREA - 32 Character Variable Parts for the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRE_PARAM_A - Variable Word, for &a in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_B - Variable Word, for &b in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_C - Variable Word, for &c in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_D - Variable Word, for &d in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_E - Variable Word, for &e in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_F - Variable Word, for &f in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_G - Variable Word, for &g in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_H - Variable Word, for &h in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_I - Variable Word, for &i in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
PRE_PARAM_LONG - Variable Word, for &a&b&d in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: Yes
DATA_STRUCTURE - Code Letter for Structure in 'DATA_AREA'
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATA_WORD1 - Variable Word, for &A in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATA_WORD2 - Variable Word, for &B in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATA_WORD3 - Variable Word, for &C in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATA_WORD4 - Variable Word, for &D in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATA_WORD5 - Variable Word, for &E in the Message
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SL_MESSAGE_AREA - First and Second Character of the Message ID
Data type: TSL1D-AREAOptional: No
Call by Reference: No ( called with pass by value option)
SL_MESSAGE_SUBID - Third Character of the Message ID
Data type: TSL1D-SUBIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DATA_MISSING - DATA_AREA Not Filled in Spite of DATA_STRUCTURE
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATA_WORDS_PROBLEM - DATA_WORDi and DATA_AREA Simultaneously
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHER_PROBLEM - Problem Within the Function Module
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PRE_PARAMS_PROBLEM - PRE_PARAM_i and PRE_PARAM_LONG Simultaneously
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSLG_WRITE_SYSLOG_ENTRY 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_data_area | TYPE STRING, " ' ' | |||
| lv_data_missing | TYPE STRING, " | |||
| lv_pre_param_a | TYPE STRING, " ' ' | |||
| lv_pre_param_b | TYPE STRING, " ' ' | |||
| lv_pre_param_c | TYPE STRING, " ' ' | |||
| lv_pre_param_d | TYPE STRING, " ' ' | |||
| lv_pre_param_e | TYPE STRING, " ' ' | |||
| lv_pre_param_f | TYPE STRING, " ' ' | |||
| lv_pre_param_g | TYPE STRING, " ' ' | |||
| lv_pre_param_h | TYPE STRING, " ' ' | |||
| lv_pre_param_i | TYPE STRING, " ' ' | |||
| lv_pre_param_long | TYPE STRING, " ' ' | |||
| lv_data_structure | TYPE STRING, " ' ' | |||
| lv_data_words_problem | TYPE STRING, " | |||
| lv_data_word1 | TYPE STRING, " ' ' | |||
| lv_other_problem | TYPE STRING, " | |||
| lv_data_word2 | TYPE STRING, " ' ' | |||
| lv_pre_params_problem | TYPE STRING, " | |||
| lv_data_word3 | TYPE STRING, " ' ' | |||
| lv_data_word4 | TYPE STRING, " ' ' | |||
| lv_data_word5 | TYPE STRING, " ' ' | |||
| lv_sl_message_area | TYPE TSL1D-AREA, " | |||
| lv_sl_message_subid | TYPE TSL1D-SUBID. " |
|   CALL FUNCTION 'RSLG_WRITE_SYSLOG_ENTRY' "Write an Entry into the Syslog |
| EXPORTING | ||
| DATA_AREA | = lv_data_area | |
| PRE_PARAM_A | = lv_pre_param_a | |
| PRE_PARAM_B | = lv_pre_param_b | |
| PRE_PARAM_C | = lv_pre_param_c | |
| PRE_PARAM_D | = lv_pre_param_d | |
| PRE_PARAM_E | = lv_pre_param_e | |
| PRE_PARAM_F | = lv_pre_param_f | |
| PRE_PARAM_G | = lv_pre_param_g | |
| PRE_PARAM_H | = lv_pre_param_h | |
| PRE_PARAM_I | = lv_pre_param_i | |
| PRE_PARAM_LONG | = lv_pre_param_long | |
| DATA_STRUCTURE | = lv_data_structure | |
| DATA_WORD1 | = lv_data_word1 | |
| DATA_WORD2 | = lv_data_word2 | |
| DATA_WORD3 | = lv_data_word3 | |
| DATA_WORD4 | = lv_data_word4 | |
| DATA_WORD5 | = lv_data_word5 | |
| SL_MESSAGE_AREA | = lv_sl_message_area | |
| SL_MESSAGE_SUBID | = lv_sl_message_subid | |
| EXCEPTIONS | ||
| DATA_MISSING = 1 | ||
| DATA_WORDS_PROBLEM = 2 | ||
| OTHER_PROBLEM = 3 | ||
| PRE_PARAMS_PROBLEM = 4 | ||
| . " RSLG_WRITE_SYSLOG_ENTRY | ||
ABAP code using 7.40 inline data declarations to call FM RSLG_WRITE_SYSLOG_ENTRY
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_data_area) | = ' '. | |||
| DATA(ld_pre_param_a) | = ' '. | |||
| DATA(ld_pre_param_b) | = ' '. | |||
| DATA(ld_pre_param_c) | = ' '. | |||
| DATA(ld_pre_param_d) | = ' '. | |||
| DATA(ld_pre_param_e) | = ' '. | |||
| DATA(ld_pre_param_f) | = ' '. | |||
| DATA(ld_pre_param_g) | = ' '. | |||
| DATA(ld_pre_param_h) | = ' '. | |||
| DATA(ld_pre_param_i) | = ' '. | |||
| DATA(ld_pre_param_long) | = ' '. | |||
| DATA(ld_data_structure) | = ' '. | |||
| DATA(ld_data_word1) | = ' '. | |||
| DATA(ld_data_word2) | = ' '. | |||
| DATA(ld_data_word3) | = ' '. | |||
| DATA(ld_data_word4) | = ' '. | |||
| DATA(ld_data_word5) | = ' '. | |||
| "SELECT single AREA FROM TSL1D INTO @DATA(ld_sl_message_area). | ||||
| "SELECT single SUBID FROM TSL1D INTO @DATA(ld_sl_message_subid). | ||||
Search for further information about these or an SAP related objects