SAP SRET_TEST_INDEXING Function Module for
SRET_TEST_INDEXING is a standard sret test indexing SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sret test indexing FM, simply by entering the name SRET_TEST_INDEXING into the relevant SAP transaction such as SE37 or SE38.
Function Group: SRIN
Program Name: SAPLSRIN
Main Program: SAPLSRIN
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SRET_TEST_INDEXING 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 'SRET_TEST_INDEXING'".
EXPORTING
CATID = "
* LANGU = "
* LAISO = "
* CLIENT = "Client
* INDEXONLY = "
* SRSVRINFO = "
IMPORTING
RCODE = "
EXCEPTIONS
CATID_UNKNOWN = 1 XERROR = 10 IDXCAT_IS_INACTIVE = 2 LANGUAGE_ERROR = 3 RFC_SYS_FAILURE = 4 RFC_COM_FAILURE = 5 NO_RFC_DEST = 6 NO_SSR_FOUND = 7 CAT_HAS_NO_INDEX = 8 INDEX_COULD_NOT_BE_CHANGED = 9
IMPORTING Parameters details for SRET_TEST_INDEXING
CATID -
Data type: SRETIDCAT-CATIDOptional: No
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SRETIDLACD-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
LAISO -
Data type: SRETIDLACD-LAISOOptional: Yes
Call by Reference: No ( called with pass by value option)
CLIENT - Client
Data type: SRETIDLACD-CLIENTOptional: Yes
Call by Reference: No ( called with pass by value option)
INDEXONLY -
Data type: SRETGSTRUC-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
SRSVRINFO -
Data type: SRETSRFCIOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SRET_TEST_INDEXING
RCODE -
Data type: SRETGSTRUC-RCODEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CATID_UNKNOWN -
Data type:Optional: No
Call by Reference: Yes
XERROR - Other Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IDXCAT_IS_INACTIVE -
Data type:Optional: No
Call by Reference: Yes
LANGUAGE_ERROR -
Data type:Optional: No
Call by Reference: Yes
RFC_SYS_FAILURE -
Data type:Optional: No
Call by Reference: Yes
RFC_COM_FAILURE -
Data type:Optional: No
Call by Reference: Yes
NO_RFC_DEST -
Data type:Optional: No
Call by Reference: Yes
NO_SSR_FOUND -
Data type:Optional: No
Call by Reference: Yes
CAT_HAS_NO_INDEX -
Data type:Optional: No
Call by Reference: Yes
INDEX_COULD_NOT_BE_CHANGED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SRET_TEST_INDEXING 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_catid | TYPE SRETIDCAT-CATID, " | |||
| lv_rcode | TYPE SRETGSTRUC-RCODE, " | |||
| lv_catid_unknown | TYPE SRETGSTRUC, " | |||
| lv_xerror | TYPE SRETGSTRUC, " | |||
| lv_langu | TYPE SRETIDLACD-LANGU, " | |||
| lv_idxcat_is_inactive | TYPE SRETIDLACD, " | |||
| lv_laiso | TYPE SRETIDLACD-LAISO, " | |||
| lv_language_error | TYPE SRETIDLACD, " | |||
| lv_client | TYPE SRETIDLACD-CLIENT, " | |||
| lv_rfc_sys_failure | TYPE SRETIDLACD, " | |||
| lv_indexonly | TYPE SRETGSTRUC-FLAG, " | |||
| lv_rfc_com_failure | TYPE SRETGSTRUC, " | |||
| lv_srsvrinfo | TYPE SRETSRFCI, " | |||
| lv_no_rfc_dest | TYPE SRETSRFCI, " | |||
| lv_no_ssr_found | TYPE SRETSRFCI, " | |||
| lv_cat_has_no_index | TYPE SRETSRFCI, " | |||
| lv_index_could_not_be_changed | TYPE SRETSRFCI. " |
|   CALL FUNCTION 'SRET_TEST_INDEXING' " |
| EXPORTING | ||
| CATID | = lv_catid | |
| LANGU | = lv_langu | |
| LAISO | = lv_laiso | |
| CLIENT | = lv_client | |
| INDEXONLY | = lv_indexonly | |
| SRSVRINFO | = lv_srsvrinfo | |
| IMPORTING | ||
| RCODE | = lv_rcode | |
| EXCEPTIONS | ||
| CATID_UNKNOWN = 1 | ||
| XERROR = 10 | ||
| IDXCAT_IS_INACTIVE = 2 | ||
| LANGUAGE_ERROR = 3 | ||
| RFC_SYS_FAILURE = 4 | ||
| RFC_COM_FAILURE = 5 | ||
| NO_RFC_DEST = 6 | ||
| NO_SSR_FOUND = 7 | ||
| CAT_HAS_NO_INDEX = 8 | ||
| INDEX_COULD_NOT_BE_CHANGED = 9 | ||
| . " SRET_TEST_INDEXING | ||
ABAP code using 7.40 inline data declarations to call FM SRET_TEST_INDEXING
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 CATID FROM SRETIDCAT INTO @DATA(ld_catid). | ||||
| "SELECT single RCODE FROM SRETGSTRUC INTO @DATA(ld_rcode). | ||||
| "SELECT single LANGU FROM SRETIDLACD INTO @DATA(ld_langu). | ||||
| "SELECT single LAISO FROM SRETIDLACD INTO @DATA(ld_laiso). | ||||
| "SELECT single CLIENT FROM SRETIDLACD INTO @DATA(ld_client). | ||||
| "SELECT single FLAG FROM SRETGSTRUC INTO @DATA(ld_indexonly). | ||||
Search for further information about these or an SAP related objects