SAP DB_INF_THREAD_LIST_64 Function Module for Informix database monitor: Thread profile









DB_INF_THREAD_LIST_64 is a standard db inf thread 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 Informix database monitor: Thread profile 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 thread list 64 FM, simply by entering the name DB_INF_THREAD_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_THREAD_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_THREAD_LIST_64'"Informix database monitor: Thread profile
EXPORTING
* WHAT = ' ' "'R': since reset; 'Z': since onstat-z; Otherwise: latest values

IMPORTING
BOOT_TIMESTAMP = "Reset time (UTC time)
RESET_TIMESTAMP = "Reset time (UTC time)
UTC_TIMESTAMP = "Reset time (UTC time)
CLEAR_TIMESTAMP = "Reset time (UTC time)
DATE_OF_STATISTICS = "Date and time, current (application server) date
TIME_OF_STATISTICS = "Dat and time, current application server time

TABLES
* THREADS = "Informix Performance Monitor: Thread Profile

EXCEPTIONS
WRONG_DATABASE = 1
.



IMPORTING Parameters details for DB_INF_THREAD_LIST_64

WHAT - 'R': since reset; 'Z': since onstat-z; Otherwise: latest values

Data type: SY-DAYST
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for DB_INF_THREAD_LIST_64

BOOT_TIMESTAMP - Reset time (UTC time)

Data type: TUNESTRUCT-RESETTIME
Optional: No
Call by Reference: No ( called with pass by value option)

RESET_TIMESTAMP - Reset time (UTC time)

Data type: TUNESTRUCT-RESETTIME
Optional: No
Call by Reference: No ( called with pass by value option)

UTC_TIMESTAMP - Reset time (UTC time)

Data type: TUNESTRUCT-RESETTIME
Optional: No
Call by Reference: No ( called with pass by value option)

CLEAR_TIMESTAMP - Reset time (UTC time)

Data type: TUNESTRUCT-RESETTIME
Optional: No
Call by Reference: No ( called with pass by value option)

DATE_OF_STATISTICS - Date and time, current (application server) date

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

TIME_OF_STATISTICS - Dat and time, current application server time

Data type: SY-UZEIT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for DB_INF_THREAD_LIST_64

THREADS - Informix Performance Monitor: Thread Profile

Data type: TST04TL64
Optional: Yes
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_THREAD_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
lt_threads  TYPE STANDARD TABLE OF TST04TL64, "   
lv_boot_timestamp  TYPE TUNESTRUCT-RESETTIME, "   
lv_wrong_database  TYPE TUNESTRUCT, "   
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_THREAD_LIST_64'  "Informix database monitor: Thread profile
    EXPORTING
         WHAT = lv_what
    IMPORTING
         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
    TABLES
         THREADS = lt_threads
    EXCEPTIONS
        WRONG_DATABASE = 1
. " DB_INF_THREAD_LIST_64




ABAP code using 7.40 inline data declarations to call FM DB_INF_THREAD_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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!