SAP SUBST_LIST_SYS_LOGS Function Module for
SUBST_LIST_SYS_LOGS is a standard subst list sys logs 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 subst list sys logs FM, simply by entering the name SUBST_LIST_SYS_LOGS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SUGL
Program Name: SAPLSUGL
Main Program: SAPLSUGL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SUBST_LIST_SYS_LOGS 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 'SUBST_LIST_SYS_LOGS'".
EXPORTING
* JOBNAME = ' ' "
* JOBCOUNT = ' ' "
* USERNAME = ' ' "
* DATE = SY-DATUM "
* TIME = SY-UZEIT "
FILE_SYS = "Name of output file
* TIMESPAN = 0010 "
IMPORTING
EV_NUMLINES = "
EXCEPTIONS
FILENAME_MISSING = 1 COULD_NOT_OPEN_FILE = 2 STRF_SETNAME_ERROR = 3 JOBLOG_READ_AND_DESIGN_ERROR = 4 DUMP_ERROR = 5 SYSLOG_ERROR = 6
IMPORTING Parameters details for SUBST_LIST_SYS_LOGS
JOBNAME -
Data type: BTCSELECT-JOBNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
JOBCOUNT -
Data type: BTCSELECT-JOBCOUNTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
USERNAME -
Data type: RSLGTYPE-USERDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIME -
Data type: SY-UZEITDefault: SY-UZEIT
Optional: Yes
Call by Reference: No ( called with pass by value option)
FILE_SYS - Name of output file
Data type: TSTRF01-FILENAMEOptional: No
Call by Reference: No ( called with pass by value option)
TIMESPAN -
Data type: GSUGI_PA-NR_CONVDefault: 0010
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SUBST_LIST_SYS_LOGS
EV_NUMLINES -
Data type: GSUGI_PA-NR_CONVOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FILENAME_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COULD_NOT_OPEN_FILE - File cannot be opened
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
STRF_SETNAME_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_READ_AND_DESIGN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DUMP_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSLOG_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SUBST_LIST_SYS_LOGS 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_jobname | TYPE BTCSELECT-JOBNAME, " SPACE | |||
| lv_ev_numlines | TYPE GSUGI_PA-NR_CONV, " | |||
| lv_filename_missing | TYPE GSUGI_PA, " | |||
| lv_jobcount | TYPE BTCSELECT-JOBCOUNT, " SPACE | |||
| lv_could_not_open_file | TYPE BTCSELECT, " | |||
| lv_username | TYPE RSLGTYPE-USER, " SPACE | |||
| lv_strf_setname_error | TYPE RSLGTYPE, " | |||
| lv_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_joblog_read_and_design_error | TYPE SY, " | |||
| lv_time | TYPE SY-UZEIT, " SY-UZEIT | |||
| lv_dump_error | TYPE SY, " | |||
| lv_file_sys | TYPE TSTRF01-FILENAME, " | |||
| lv_syslog_error | TYPE TSTRF01, " | |||
| lv_timespan | TYPE GSUGI_PA-NR_CONV. " 0010 |
|   CALL FUNCTION 'SUBST_LIST_SYS_LOGS' " |
| EXPORTING | ||
| JOBNAME | = lv_jobname | |
| JOBCOUNT | = lv_jobcount | |
| USERNAME | = lv_username | |
| DATE | = lv_date | |
| TIME | = lv_time | |
| FILE_SYS | = lv_file_sys | |
| TIMESPAN | = lv_timespan | |
| IMPORTING | ||
| EV_NUMLINES | = lv_ev_numlines | |
| EXCEPTIONS | ||
| FILENAME_MISSING = 1 | ||
| COULD_NOT_OPEN_FILE = 2 | ||
| STRF_SETNAME_ERROR = 3 | ||
| JOBLOG_READ_AND_DESIGN_ERROR = 4 | ||
| DUMP_ERROR = 5 | ||
| SYSLOG_ERROR = 6 | ||
| . " SUBST_LIST_SYS_LOGS | ||
ABAP code using 7.40 inline data declarations to call FM SUBST_LIST_SYS_LOGS
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 JOBNAME FROM BTCSELECT INTO @DATA(ld_jobname). | ||||
| DATA(ld_jobname) | = ' '. | |||
| "SELECT single NR_CONV FROM GSUGI_PA INTO @DATA(ld_ev_numlines). | ||||
| "SELECT single JOBCOUNT FROM BTCSELECT INTO @DATA(ld_jobcount). | ||||
| DATA(ld_jobcount) | = ' '. | |||
| "SELECT single USER FROM RSLGTYPE INTO @DATA(ld_username). | ||||
| DATA(ld_username) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date). | ||||
| DATA(ld_date) | = SY-DATUM. | |||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_time). | ||||
| DATA(ld_time) | = SY-UZEIT. | |||
| "SELECT single FILENAME FROM TSTRF01 INTO @DATA(ld_file_sys). | ||||
| "SELECT single NR_CONV FROM GSUGI_PA INTO @DATA(ld_timespan). | ||||
| DATA(ld_timespan) | = 0010. | |||
Search for further information about these or an SAP related objects