SAP Function Modules

DD_EXTIDX_SEARCH SAP Function module







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
remote enabled module settings


Pattern for FM DD_EXTIDX_SEARCH - DD EXTIDX SEARCH





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

ABAP code example for Function Module 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).

DATA:
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 .

DATA(ld_searchhelp) = 'Check type of data required'.
DATA(ld_indexname) = 'Check type of data required'.

DATA(ld_tabname) = some text here

DATA(ld_fieldname) = some text here
DATA(ld_shlpparam) = 'Check type of data required'.
DATA(ld_dynpprog) = '123 '.
DATA(ld_dynpnr) = 'some text here'.

DATA(ld_dynprofield) = some text here
DATA(ld_stepl) = 'some text here'.

DATA(ld_value) = some text here
DATA(ld_multiple_choice) = 'some text here'.
DATA(ld_display) = 'some text here'.

DATA(ld_suppress_recordlist) = some text here
DATA(ld_callback_program) = 'some text here'.
DATA(ld_callback_form) = 'some text here'.

"populate fields of struture and append to itab
append wa_record_tab to it_record_tab.

"populate fields of struture and append to itab
append wa_se_selopt_tab to it_se_selopt_tab.

"populate fields of struture and append to itab
append wa_return_tab to it_return_tab.

"populate fields of struture and append to itab
append wa_docid_tab to it_docid_tab. . CALL FUNCTION 'DD_EXTIDX_SEARCH' EXPORTING * searchhelp = ld_searchhelp * indexname = ld_indexname tabname = ld_tabname fieldname = ld_fieldname * shlpparam = ld_shlpparam * dynpprog = ld_dynpprog * dynpnr = ld_dynpnr * dynprofield = ld_dynprofield * stepl = ld_stepl * value = ld_value * multiple_choice = ld_multiple_choice * display = ld_display * suppress_recordlist = ld_suppress_recordlist * callback_program = ld_callback_program * callback_form = ld_callback_form * TABLES * record_tab = it_record_tab * se_selopt_tab = it_se_selopt_tab * return_tab = it_return_tab * docid_tab = it_docid_tab 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
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .

ld_searchhelp = 'some text here'.

"populate fields of struture and append to itab
append wa_record_tab to it_record_tab.
ld_indexname = 'some text here'.

"populate fields of struture and append to itab
append wa_se_selopt_tab to it_se_selopt_tab.

ld_tabname = some text here

"populate fields of struture and append to itab
append wa_return_tab to it_return_tab.

ld_fieldname = some text here

"populate fields of struture and append to itab
append wa_docid_tab to it_docid_tab.
ld_shlpparam = 'some text here'.
ld_dynpprog = 'some text here'.
ld_dynpnr = 'some text here'.

ld_dynprofield = some text here
ld_stepl = 'some text here'.

ld_value = some text here
ld_multiple_choice = 'some text here'.
ld_display = 'some text here'.

ld_suppress_recordlist = some text here
ld_callback_program = 'some text here'.
ld_callback_form = 'some text here'.

Contribute (Add Comments)

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.