SAP /SDF/OI_READ_REPSTAT Function Module for Read repostat tables
/SDF/OI_READ_REPSTAT is a standard /sdf/oi read repstat SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read repostat tables 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 /sdf/oi read repstat FM, simply by entering the name /SDF/OI_READ_REPSTAT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SDF/OICHECK
Program Name: /SDF/SAPLOICHECK
Main Program: /SDF/SAPLOICHECK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SDF/OI_READ_REPSTAT 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 '/SDF/OI_READ_REPSTAT'"Read repostat tables.
EXPORTING
* IT_MASTER = "List with Names of Programs
* IV_SUMMARY = "Summary information (average per hour)
* IV_DETAIL = "Detailed information (per hour of week)
TABLES
* ET_REPSTATS = "Program execution counts (average per hour)
* ET_REPSTAT = "Program execution counts per hour of week
IMPORTING Parameters details for /SDF/OI_READ_REPSTAT
IT_MASTER - List with Names of Programs
Data type: PROGNAMESOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SUMMARY - Summary information (average per hour)
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DETAIL - Detailed information (per hour of week)
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SDF/OI_READ_REPSTAT
ET_REPSTATS - Program execution counts (average per hour)
Data type: /SDF/OI_REPSTATSOptional: Yes
Call by Reference: Yes
ET_REPSTAT - Program execution counts per hour of week
Data type: /SDF/OI_REPSTATOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /SDF/OI_READ_REPSTAT 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_it_master | TYPE PROGNAMES, " | |||
| lt_et_repstats | TYPE STANDARD TABLE OF /SDF/OI_REPSTATS, " | |||
| lt_et_repstat | TYPE STANDARD TABLE OF /SDF/OI_REPSTAT, " | |||
| lv_iv_summary | TYPE FLAG, " | |||
| lv_iv_detail | TYPE FLAG. " |
|   CALL FUNCTION '/SDF/OI_READ_REPSTAT' "Read repostat tables |
| EXPORTING | ||
| IT_MASTER | = lv_it_master | |
| IV_SUMMARY | = lv_iv_summary | |
| IV_DETAIL | = lv_iv_detail | |
| TABLES | ||
| ET_REPSTATS | = lt_et_repstats | |
| ET_REPSTAT | = lt_et_repstat | |
| . " /SDF/OI_READ_REPSTAT | ||
ABAP code using 7.40 inline data declarations to call FM /SDF/OI_READ_REPSTAT
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