SAP DB_INF_MAIN_LIST_64 Function Module for ST04 start page values
DB_INF_MAIN_LIST_64 is a standard db inf main list 64 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for ST04 start page values 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 db inf main list 64 FM, simply by entering the name DB_INF_MAIN_LIST_64 into the relevant SAP transaction such as SE37 or SE38.
Function Group: STD2
Program Name: SAPLSTD2
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DB_INF_MAIN_LIST_64 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 'DB_INF_MAIN_LIST_64'"ST04 start page values.
EXPORTING
* WHAT = ' ' "
IMPORTING
DBINF_GLOBAL = "Statistics: Structure for Database Information Display
BOOT_TIMESTAMP = "Timestamp of DB startup
RESET_TIMESTAMP = "Timestamp of ST04 Reset
UTC_TIMESTAMP = "Timestamp of Statistic data
CLEAR_TIMESTAMP = "Timestamp of onstat -z
DATE_OF_STATISTICS = "
TIME_OF_STATISTICS = "
EXCEPTIONS
WRONG_DATABASE = 1
IMPORTING Parameters details for DB_INF_MAIN_LIST_64
WHAT -
Data type: SY-DAYSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for DB_INF_MAIN_LIST_64
DBINF_GLOBAL - Statistics: Structure for Database Information Display
Data type: TST04INF64Optional: No
Call by Reference: No ( called with pass by value option)
BOOT_TIMESTAMP - Timestamp of DB startup
Data type: TUNESTRUCT-RESETTIMEOptional: No
Call by Reference: No ( called with pass by value option)
RESET_TIMESTAMP - Timestamp of ST04 Reset
Data type: TUNESTRUCT-RESETTIMEOptional: No
Call by Reference: No ( called with pass by value option)
UTC_TIMESTAMP - Timestamp of Statistic data
Data type: TUNESTRUCT-RESETTIMEOptional: No
Call by Reference: No ( called with pass by value option)
CLEAR_TIMESTAMP - Timestamp of onstat -z
Data type: TUNESTRUCT-RESETTIMEOptional: No
Call by Reference: No ( called with pass by value option)
DATE_OF_STATISTICS -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
TIME_OF_STATISTICS -
Data type: SY-UZEITOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_DATABASE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DB_INF_MAIN_LIST_64 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_what | TYPE SY-DAYST, " SPACE | |||
| lv_dbinf_global | TYPE TST04INF64, " | |||
| lv_wrong_database | TYPE TST04INF64, " | |||
| lv_boot_timestamp | TYPE TUNESTRUCT-RESETTIME, " | |||
| lv_reset_timestamp | TYPE TUNESTRUCT-RESETTIME, " | |||
| lv_utc_timestamp | TYPE TUNESTRUCT-RESETTIME, " | |||
| lv_clear_timestamp | TYPE TUNESTRUCT-RESETTIME, " | |||
| lv_date_of_statistics | TYPE SY-DATUM, " | |||
| lv_time_of_statistics | TYPE SY-UZEIT. " |
|   CALL FUNCTION 'DB_INF_MAIN_LIST_64' "ST04 start page values |
| EXPORTING | ||
| WHAT | = lv_what | |
| IMPORTING | ||
| DBINF_GLOBAL | = lv_dbinf_global | |
| BOOT_TIMESTAMP | = lv_boot_timestamp | |
| RESET_TIMESTAMP | = lv_reset_timestamp | |
| UTC_TIMESTAMP | = lv_utc_timestamp | |
| CLEAR_TIMESTAMP | = lv_clear_timestamp | |
| DATE_OF_STATISTICS | = lv_date_of_statistics | |
| TIME_OF_STATISTICS | = lv_time_of_statistics | |
| EXCEPTIONS | ||
| WRONG_DATABASE = 1 | ||
| . " DB_INF_MAIN_LIST_64 | ||
ABAP code using 7.40 inline data declarations to call FM DB_INF_MAIN_LIST_64
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 DAYST FROM SY INTO @DATA(ld_what). | ||||
| DATA(ld_what) | = ' '. | |||
| "SELECT single RESETTIME FROM TUNESTRUCT INTO @DATA(ld_boot_timestamp). | ||||
| "SELECT single RESETTIME FROM TUNESTRUCT INTO @DATA(ld_reset_timestamp). | ||||
| "SELECT single RESETTIME FROM TUNESTRUCT INTO @DATA(ld_utc_timestamp). | ||||
| "SELECT single RESETTIME FROM TUNESTRUCT INTO @DATA(ld_clear_timestamp). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_date_of_statistics). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_time_of_statistics). | ||||
Search for further information about these or an SAP related objects