SAP DVM_GET_STAT_DATA_FUNCM Function Module for Function module to get current DVM statistical data
DVM_GET_STAT_DATA_FUNCM is a standard dvm get stat data funcm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function module to get current DVM statistical data 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 dvm get stat data funcm FM, simply by entering the name DVM_GET_STAT_DATA_FUNCM into the relevant SAP transaction such as SE37 or SE38.
Function Group: DVM_GET_STAT_DATA
Program Name: SAPLDVM_GET_STAT_DATA
Main Program: SAPLDVM_GET_STAT_DATA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DVM_GET_STAT_DATA_FUNCM 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 'DVM_GET_STAT_DATA_FUNCM'"Function module to get current DVM statistical data.
EXPORTING
DVM_TABNAME = "DVM_TABNAME
DVM_INDEXNAME = "DVM_INDEXNAME
IMPORTING
ET_RESULT = "table type for DVM_TAB_STATS
EXCEPTIONS
ERROR_WRONG_IMPORT_PARAMETER = 1 TABLE_OUTDATED = 2
IMPORTING Parameters details for DVM_GET_STAT_DATA_FUNCM
DVM_TABNAME - DVM_TABNAME
Data type: DVM_TABNAMEOptional: No
Call by Reference: Yes
DVM_INDEXNAME - DVM_INDEXNAME
Data type: DVM_INDEXNAMEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for DVM_GET_STAT_DATA_FUNCM
ET_RESULT - table type for DVM_TAB_STATS
Data type: DVM_TAB_TYPE_STATSOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_WRONG_IMPORT_PARAMETER -
Data type:Optional: No
Call by Reference: Yes
TABLE_OUTDATED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DVM_GET_STAT_DATA_FUNCM 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_et_result | TYPE DVM_TAB_TYPE_STATS, " | |||
| lv_dvm_tabname | TYPE DVM_TABNAME, " | |||
| lv_error_wrong_import_parameter | TYPE DVM_TABNAME, " | |||
| lv_dvm_indexname | TYPE DVM_INDEXNAME, " | |||
| lv_table_outdated | TYPE DVM_INDEXNAME. " |
|   CALL FUNCTION 'DVM_GET_STAT_DATA_FUNCM' "Function module to get current DVM statistical data |
| EXPORTING | ||
| DVM_TABNAME | = lv_dvm_tabname | |
| DVM_INDEXNAME | = lv_dvm_indexname | |
| IMPORTING | ||
| ET_RESULT | = lv_et_result | |
| EXCEPTIONS | ||
| ERROR_WRONG_IMPORT_PARAMETER = 1 | ||
| TABLE_OUTDATED = 2 | ||
| . " DVM_GET_STAT_DATA_FUNCM | ||
ABAP code using 7.40 inline data declarations to call FM DVM_GET_STAT_DATA_FUNCM
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.Search for further information about these or an SAP related objects