SAP SDOK_INDEX_SEARCH Function Module for









SDOK_INDEX_SEARCH is a standard sdok index search 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 sdok index search FM, simply by entering the name SDOK_INDEX_SEARCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: SDCE
Program Name: SAPLSDCE
Main Program: SAPLSDCE
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SDOK_INDEX_SEARCH 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 'SDOK_INDEX_SEARCH'"
EXPORTING
DOCU' ' = "
LAISO = "
IV_TREX_REQ_GUID = "

IMPORTING
RCODE = "
NUMOFHITS = "
ES_ERRORCODE = "

TABLES
CATATTRIBUTTAB = "
QUERYPARAMTAB = "
QUERYTAB = "
TERMATTRTAB = "
DOCATTRTAB = "
RESULTDOCTAB = "
RESULTATTRTAB = "

EXCEPTIONS
NO_DOCU_SPACE = 1 NO_RFC_DEST = 10 XERROR = 11 NO_INDEX_CATEGORY = 2 CATID_UNKNOWN = 3 INTERN_ERROR = 4 PARAMETER_ERROR = 5 LANGUAGE_ERROR = 6 ATTRIBUTE_ERROR = 7 RFC_SYS_FAILURE = 8 RFC_COM_FAILURE = 9
.



IMPORTING Parameters details for SDOK_INDEX_SEARCH

DOCUSPACE -

Data type: SDOK_DOCSP
Optional: No
Call by Reference: No ( called with pass by value option)

LAISO -

Data type: SRETA101-LAISO
Optional: No
Call by Reference: No ( called with pass by value option)

IV_TREX_REQ_GUID -

Data type: SYS_UID
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SDOK_INDEX_SEARCH

RCODE -

Data type: SRETGSTRUC-RCODE
Optional: No
Call by Reference: No ( called with pass by value option)

NUMOFHITS -

Data type: SRETGSTRUC-NUMOFHIT
Optional: No
Call by Reference: No ( called with pass by value option)

ES_ERRORCODE -

Data type: SRETSERRORCODE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SDOK_INDEX_SEARCH

CATATTRIBUTTAB -

Data type: SRETCATATR
Optional: No
Call by Reference: No ( called with pass by value option)

QUERYPARAMTAB -

Data type: SRETQATR1
Optional: No
Call by Reference: No ( called with pass by value option)

QUERYTAB -

Data type: SRETQYSE
Optional: No
Call by Reference: No ( called with pass by value option)

TERMATTRTAB -

Data type: SRETTERATR
Optional: No
Call by Reference: No ( called with pass by value option)

DOCATTRTAB -

Data type: SRETATR2
Optional: No
Call by Reference: No ( called with pass by value option)

RESULTDOCTAB -

Data type: SDOKRESDOC
Optional: No
Call by Reference: No ( called with pass by value option)

RESULTATTRTAB -

Data type: SRETDCATVL
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_DOCU_SPACE -

Data type:
Optional: No
Call by Reference: Yes

NO_RFC_DEST -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

XERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_INDEX_CATEGORY - No index was found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CATID_UNKNOWN -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERN_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LANGUAGE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ATTRIBUTE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RFC_SYS_FAILURE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RFC_COM_FAILURE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SDOK_INDEX_SEARCH 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_rcode  TYPE SRETGSTRUC-RCODE, "   
lv_docuspace  TYPE SDOK_DOCSP, "   
lv_no_docu_space  TYPE SDOK_DOCSP, "   
lt_catattributtab  TYPE STANDARD TABLE OF SRETCATATR, "   
lv_no_rfc_dest  TYPE SRETCATATR, "   
lv_xerror  TYPE SRETCATATR, "   
lv_laiso  TYPE SRETA101-LAISO, "   
lv_numofhits  TYPE SRETGSTRUC-NUMOFHIT, "   
lt_queryparamtab  TYPE STANDARD TABLE OF SRETQATR1, "   
lv_no_index_category  TYPE SRETQATR1, "   
lt_querytab  TYPE STANDARD TABLE OF SRETQYSE, "   
lv_es_errorcode  TYPE SRETSERRORCODE, "   
lv_catid_unknown  TYPE SRETSERRORCODE, "   
lv_iv_trex_req_guid  TYPE SYS_UID, "   
lt_termattrtab  TYPE STANDARD TABLE OF SRETTERATR, "   
lv_intern_error  TYPE SRETTERATR, "   
lt_docattrtab  TYPE STANDARD TABLE OF SRETATR2, "   
lv_parameter_error  TYPE SRETATR2, "   
lt_resultdoctab  TYPE STANDARD TABLE OF SDOKRESDOC, "   
lv_language_error  TYPE SDOKRESDOC, "   
lt_resultattrtab  TYPE STANDARD TABLE OF SRETDCATVL, "   
lv_attribute_error  TYPE SRETDCATVL, "   
lv_rfc_sys_failure  TYPE SRETDCATVL, "   
lv_rfc_com_failure  TYPE SRETDCATVL. "   

  CALL FUNCTION 'SDOK_INDEX_SEARCH'  "
    EXPORTING
         DOCUSPACE = lv_docuspace
         LAISO = lv_laiso
         IV_TREX_REQ_GUID = lv_iv_trex_req_guid
    IMPORTING
         RCODE = lv_rcode
         NUMOFHITS = lv_numofhits
         ES_ERRORCODE = lv_es_errorcode
    TABLES
         CATATTRIBUTTAB = lt_catattributtab
         QUERYPARAMTAB = lt_queryparamtab
         QUERYTAB = lt_querytab
         TERMATTRTAB = lt_termattrtab
         DOCATTRTAB = lt_docattrtab
         RESULTDOCTAB = lt_resultdoctab
         RESULTATTRTAB = lt_resultattrtab
    EXCEPTIONS
        NO_DOCU_SPACE = 1
        NO_RFC_DEST = 10
        XERROR = 11
        NO_INDEX_CATEGORY = 2
        CATID_UNKNOWN = 3
        INTERN_ERROR = 4
        PARAMETER_ERROR = 5
        LANGUAGE_ERROR = 6
        ATTRIBUTE_ERROR = 7
        RFC_SYS_FAILURE = 8
        RFC_COM_FAILURE = 9
. " SDOK_INDEX_SEARCH




ABAP code using 7.40 inline data declarations to call FM SDOK_INDEX_SEARCH

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 RCODE FROM SRETGSTRUC INTO @DATA(ld_rcode).
 
 
 
 
 
 
"SELECT single LAISO FROM SRETA101 INTO @DATA(ld_laiso).
 
"SELECT single NUMOFHIT FROM SRETGSTRUC INTO @DATA(ld_numofhits).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!