SAP S_DB_INF_COLLECT_WTSPROFILE Function Module for Collect and accumulate I/O profile values
S_DB_INF_COLLECT_WTSPROFILE is a standard s db inf collect wtsprofile SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Collect and accumulate I/O profile 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 s db inf collect wtsprofile FM, simply by entering the name S_DB_INF_COLLECT_WTSPROFILE into the relevant SAP transaction such as SE37 or SE38.
Function Group: STUI
Program Name: SAPLSTUI
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function S_DB_INF_COLLECT_WTSPROFILE 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 'S_DB_INF_COLLECT_WTSPROFILE'"Collect and accumulate I/O profile values.
EXPORTING
* RESET = ' ' "Date and time, Daylight savings time flag
IMPORTING
BOOTTIME = "Timestamp of database start
PROFTIME = "Timestamp of last profile data
RESETTIME = "Timestamp of reset
CLEARTIME = "Timestamp of onstat -z
TABLES
* ST04WAIT = "Collect and accumulate wait situations
EXCEPTIONS
WRONG_DATABASE = 1 NO_WAITSTATS = 2
IMPORTING Parameters details for S_DB_INF_COLLECT_WTSPROFILE
RESET - Date and time, Daylight savings time flag
Data type: SY-DAYSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for S_DB_INF_COLLECT_WTSPROFILE
BOOTTIME - Timestamp of database start
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
PROFTIME - Timestamp of last profile data
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
RESETTIME - Timestamp of reset
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
CLEARTIME - Timestamp of onstat -z
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for S_DB_INF_COLLECT_WTSPROFILE
ST04WAIT - Collect and accumulate wait situations
Data type: TST04WTS64Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_DATABASE -
Data type:Optional: No
Call by Reference: Yes
NO_WAITSTATS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for S_DB_INF_COLLECT_WTSPROFILE 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_reset | TYPE SY-DAYST, " SPACE | |||
| lv_boottime | TYPE I, " | |||
| lt_st04wait | TYPE STANDARD TABLE OF TST04WTS64, " | |||
| lv_wrong_database | TYPE TST04WTS64, " | |||
| lv_proftime | TYPE I, " | |||
| lv_no_waitstats | TYPE I, " | |||
| lv_resettime | TYPE I, " | |||
| lv_cleartime | TYPE I. " |
|   CALL FUNCTION 'S_DB_INF_COLLECT_WTSPROFILE' "Collect and accumulate I/O profile values |
| EXPORTING | ||
| RESET | = lv_reset | |
| IMPORTING | ||
| BOOTTIME | = lv_boottime | |
| PROFTIME | = lv_proftime | |
| RESETTIME | = lv_resettime | |
| CLEARTIME | = lv_cleartime | |
| TABLES | ||
| ST04WAIT | = lt_st04wait | |
| EXCEPTIONS | ||
| WRONG_DATABASE = 1 | ||
| NO_WAITSTATS = 2 | ||
| . " S_DB_INF_COLLECT_WTSPROFILE | ||
ABAP code using 7.40 inline data declarations to call FM S_DB_INF_COLLECT_WTSPROFILE
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_reset). | ||||
| DATA(ld_reset) | = ' '. | |||
Search for further information about these or an SAP related objects