SAP DB4_INDEX_ADVISED_INFO Function Module for AS/400: Get Indexes Advised info for ST04 Detail Analysis
DB4_INDEX_ADVISED_INFO is a standard db4 index advised info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for AS/400: Get Indexes Advised info for ST04 Detail Analysis 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 db4 index advised info FM, simply by entering the name DB4_INDEX_ADVISED_INFO into the relevant SAP transaction such as SE37 or SE38.
Function Group: STU4_ST04
Program Name: SAPLSTU4_ST04
Main Program: SAPLSTU4_ST04
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DB4_INDEX_ADVISED_INFO 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 'DB4_INDEX_ADVISED_INFO'"AS/400: Get Indexes Advised info for ST04 Detail Analysis.
EXPORTING
* RESETFLAG = ' ' "Character field of length one
* CURRENT_SYSTEM = "DB6: Globale Steuerdaten für Navigationsrahmen
TABLES
* IDA_0100 = "Overview info about indexes advised performed
* IDA_0300 = "Indexes Advised definition list
* TABLES_FOR_DETAILS = "List of tables for which details are requested
* IDA_0200 = "Detail Indexes Advised info for tables specified
EXCEPTIONS
NO_DATA_FOUND = 1 NO_TABLES_FOR_DETAIL_SPECIFIED = 2 NO_DETAIL_DATA_FOUND = 3
IMPORTING Parameters details for DB4_INDEX_ADVISED_INFO
RESETFLAG - Character field of length one
Data type: DB4QQPAR-QRESETDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CURRENT_SYSTEM - DB6: Globale Steuerdaten für Navigationsrahmen
Data type: DB6NAVSYSTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DB4_INDEX_ADVISED_INFO
IDA_0100 - Overview info about indexes advised performed
Data type: DB4IDA0100Optional: Yes
Call by Reference: No ( called with pass by value option)
IDA_0300 - Indexes Advised definition list
Data type: DB4IDA0300Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES_FOR_DETAILS - List of tables for which details are requested
Data type: DB4TABLSTOptional: Yes
Call by Reference: No ( called with pass by value option)
IDA_0200 - Detail Indexes Advised info for tables specified
Data type: DB4IDA0200Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_FOUND - No data found about table scans
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TABLES_FOR_DETAIL_SPECIFIED - Internal table TABLES_FOR_DETAILS is empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DETAIL_DATA_FOUND - No detail data found for tables specified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DB4_INDEX_ADVISED_INFO 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: | ||||
| lt_ida_0100 | TYPE STANDARD TABLE OF DB4IDA0100, " | |||
| lv_resetflag | TYPE DB4QQPAR-QRESET, " SPACE | |||
| lv_no_data_found | TYPE DB4QQPAR, " | |||
| lt_ida_0300 | TYPE STANDARD TABLE OF DB4IDA0300, " | |||
| lv_current_system | TYPE DB6NAVSYST, " | |||
| lv_no_tables_for_detail_specified | TYPE DB6NAVSYST, " | |||
| lt_tables_for_details | TYPE STANDARD TABLE OF DB4TABLST, " | |||
| lv_no_detail_data_found | TYPE DB4TABLST, " | |||
| lt_ida_0200 | TYPE STANDARD TABLE OF DB4IDA0200. " |
|   CALL FUNCTION 'DB4_INDEX_ADVISED_INFO' "AS/400: Get Indexes Advised info for ST04 Detail Analysis |
| EXPORTING | ||
| RESETFLAG | = lv_resetflag | |
| CURRENT_SYSTEM | = lv_current_system | |
| TABLES | ||
| IDA_0100 | = lt_ida_0100 | |
| IDA_0300 | = lt_ida_0300 | |
| TABLES_FOR_DETAILS | = lt_tables_for_details | |
| IDA_0200 | = lt_ida_0200 | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| NO_TABLES_FOR_DETAIL_SPECIFIED = 2 | ||
| NO_DETAIL_DATA_FOUND = 3 | ||
| . " DB4_INDEX_ADVISED_INFO | ||
ABAP code using 7.40 inline data declarations to call FM DB4_INDEX_ADVISED_INFO
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 QRESET FROM DB4QQPAR INTO @DATA(ld_resetflag). | ||||
| DATA(ld_resetflag) | = ' '. | |||
Search for further information about these or an SAP related objects