ARCHIVE_WRITE_STATISTICS_EXT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ARCHIVE_WRITE_STATISTICS_EXT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ARCH
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS_EXT' "
EXPORTING
binary_stat_data = " xstring
* statistics_only_per_run = " char1
* statistics_only_per_file = " char1
EXCEPTIONS
INTERNAL_ERROR = 1 "
NO_STATISTIC_DATA_FOUND = 2 "
. " ARCHIVE_WRITE_STATISTICS_EXT
The ABAP code below is a full code listing to execute function module ARCHIVE_WRITE_STATISTICS_EXT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_binary_stat_data) = 'Check type of data required'.
DATA(ld_statistics_only_per_run) = 'Check type of data required'.
DATA(ld_statistics_only_per_file) = 'Check type of data required'. . CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS_EXT' EXPORTING binary_stat_data = ld_binary_stat_data * statistics_only_per_run = ld_statistics_only_per_run * statistics_only_per_file = ld_statistics_only_per_file EXCEPTIONS INTERNAL_ERROR = 1 NO_STATISTIC_DATA_FOUND = 2 . " ARCHIVE_WRITE_STATISTICS_EXT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_binary_stat_data | TYPE XSTRING , |
| ld_statistics_only_per_run | TYPE CHAR1 , |
| ld_statistics_only_per_file | TYPE CHAR1 . |
The function module ARCHIVE_WRITE_STAT_EXT can be used to output into
print lists the statistical data the Archive Development Kit (ADK)
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ARCHIVE_WRITE_STATISTICS_EXT or its description.