DD_EXTIDX_SEARCH 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 DD_EXTIDX_SEARCH into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SF4E
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'DD_EXTIDX_SEARCH' "
EXPORTING
* searchhelp = " shlpname Name of a search help
* indexname = " ddf4idname Logical name of an external index
tabname = " dfies-tabname Table Name
fieldname = " dfies-fieldname Field Name
* shlpparam = " shlpfield Name of a search help parameter
* dynpprog = " sy-repid ABAP Program: Current Main Program
* dynpnr = " sy-dynnr ABAP Program: Number of Current Screen
* dynprofield = " help_info-dynprofld Field Name
* stepl = " sy-stepl Screens, current table line index
* value = " help_info-fldvalue Text (length 132)
* multiple_choice = " ddbool_d DD: truth value
* display = " ddbool_d DD: truth value
* suppress_recordlist = " ddshf4ctrl-hide_list Suppress display of hit list
* callback_program = " sy-repid ABAP Program: Current Main Program
* callback_form = " sy-xform Internal
* TABLES
* record_tab = " seahlpres Search help result structure
* se_selopt_tab = " ddseselopt Selopt Structure for the F4 Help with Search Engines
* return_tab = " ddshretval Interface Structure Search Help <-> Help System
* docid_tab = " ddf4sekeys Structure for Document Key of Log Table
EXCEPTIONS
FIELD_NOT_FOUND = 1 "
NO_HELP_FOR_FIELD = 2 "
INCONSISTENT_HELP = 3 "
NO_VALUES_FOUND = 4 "
INCONSISTENT_INDEX = 5 "
RFC_FAILURE = 6 "
INDEX_ERROR = 7 "
. " DD_EXTIDX_SEARCH
The ABAP code below is a full code listing to execute function module DD_EXTIDX_SEARCH 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).
| it_record_tab | TYPE STANDARD TABLE OF SEAHLPRES,"TABLES PARAM |
| wa_record_tab | LIKE LINE OF it_record_tab , |
| it_se_selopt_tab | TYPE STANDARD TABLE OF DDSESELOPT,"TABLES PARAM |
| wa_se_selopt_tab | LIKE LINE OF it_se_selopt_tab , |
| it_return_tab | TYPE STANDARD TABLE OF DDSHRETVAL,"TABLES PARAM |
| wa_return_tab | LIKE LINE OF it_return_tab , |
| it_docid_tab | TYPE STANDARD TABLE OF DDF4SEKEYS,"TABLES PARAM |
| wa_docid_tab | LIKE LINE OF it_docid_tab . |
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_searchhelp | TYPE SHLPNAME , |
| it_record_tab | TYPE STANDARD TABLE OF SEAHLPRES , |
| wa_record_tab | LIKE LINE OF it_record_tab, |
| ld_indexname | TYPE DDF4IDNAME , |
| it_se_selopt_tab | TYPE STANDARD TABLE OF DDSESELOPT , |
| wa_se_selopt_tab | LIKE LINE OF it_se_selopt_tab, |
| ld_tabname | TYPE DFIES-TABNAME , |
| it_return_tab | TYPE STANDARD TABLE OF DDSHRETVAL , |
| wa_return_tab | LIKE LINE OF it_return_tab, |
| ld_fieldname | TYPE DFIES-FIELDNAME , |
| it_docid_tab | TYPE STANDARD TABLE OF DDF4SEKEYS , |
| wa_docid_tab | LIKE LINE OF it_docid_tab, |
| ld_shlpparam | TYPE SHLPFIELD , |
| ld_dynpprog | TYPE SY-REPID , |
| ld_dynpnr | TYPE SY-DYNNR , |
| ld_dynprofield | TYPE HELP_INFO-DYNPROFLD , |
| ld_stepl | TYPE SY-STEPL , |
| ld_value | TYPE HELP_INFO-FLDVALUE , |
| ld_multiple_choice | TYPE DDBOOL_D , |
| ld_display | TYPE DDBOOL_D , |
| ld_suppress_recordlist | TYPE DDSHF4CTRL-HIDE_LIST , |
| ld_callback_program | TYPE SY-REPID , |
| ld_callback_form | TYPE SY-XFORM . |
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 DD_EXTIDX_SEARCH or its description.