SAP Function Modules

G_INDEX_ENTRY_FIND SAP Function module







G_INDEX_ENTRY_FIND 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 G_INDEX_ENTRY_FIND into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: GRIX
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM G_INDEX_ENTRY_FIND - G INDEX ENTRY FIND





CALL FUNCTION 'G_INDEX_ENTRY_FIND' "
  EXPORTING
    in_grix =                   " grix
*   flag_subnodes = 'X'         " c
  TABLES
    selections =                " grix_selp     Table of selection criteria
    out_grix =                  " grix
    out_grix_txt =              " grix_txt
*   variation =                 " vard
*   variation_rep =             " vardr
    i_grix_rsd =                " grix_rsd
  EXCEPTIONS
    SELECTIONS_EMPTY = 1        "               No Selection Criteria
    INVALID_PARAMETERS = 2      "
    .  "  G_INDEX_ENTRY_FIND

ABAP code example for Function Module G_INDEX_ENTRY_FIND





The ABAP code below is a full code listing to execute function module G_INDEX_ENTRY_FIND 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_selections  TYPE STANDARD TABLE OF GRIX_SELP,"TABLES PARAM
wa_selections  LIKE LINE OF it_selections ,
it_out_grix  TYPE STANDARD TABLE OF GRIX,"TABLES PARAM
wa_out_grix  LIKE LINE OF it_out_grix ,
it_out_grix_txt  TYPE STANDARD TABLE OF GRIX_TXT,"TABLES PARAM
wa_out_grix_txt  LIKE LINE OF it_out_grix_txt ,
it_variation  TYPE STANDARD TABLE OF VARD,"TABLES PARAM
wa_variation  LIKE LINE OF it_variation ,
it_variation_rep  TYPE STANDARD TABLE OF VARDR,"TABLES PARAM
wa_variation_rep  LIKE LINE OF it_variation_rep ,
it_i_grix_rsd  TYPE STANDARD TABLE OF GRIX_RSD,"TABLES PARAM
wa_i_grix_rsd  LIKE LINE OF it_i_grix_rsd .

DATA(ld_in_grix) = 'Check type of data required'.
DATA(ld_flag_subnodes) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_selections to it_selections.

"populate fields of struture and append to itab
append wa_out_grix to it_out_grix.

"populate fields of struture and append to itab
append wa_out_grix_txt to it_out_grix_txt.

"populate fields of struture and append to itab
append wa_variation to it_variation.

"populate fields of struture and append to itab
append wa_variation_rep to it_variation_rep.

"populate fields of struture and append to itab
append wa_i_grix_rsd to it_i_grix_rsd. . CALL FUNCTION 'G_INDEX_ENTRY_FIND' EXPORTING in_grix = ld_in_grix * flag_subnodes = ld_flag_subnodes TABLES selections = it_selections out_grix = it_out_grix out_grix_txt = it_out_grix_txt * variation = it_variation * variation_rep = it_variation_rep i_grix_rsd = it_i_grix_rsd EXCEPTIONS SELECTIONS_EMPTY = 1 INVALID_PARAMETERS = 2 . " G_INDEX_ENTRY_FIND
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 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_in_grix  TYPE GRIX ,
it_selections  TYPE STANDARD TABLE OF GRIX_SELP ,
wa_selections  LIKE LINE OF it_selections,
ld_flag_subnodes  TYPE C ,
it_out_grix  TYPE STANDARD TABLE OF GRIX ,
wa_out_grix  LIKE LINE OF it_out_grix,
it_out_grix_txt  TYPE STANDARD TABLE OF GRIX_TXT ,
wa_out_grix_txt  LIKE LINE OF it_out_grix_txt,
it_variation  TYPE STANDARD TABLE OF VARD ,
wa_variation  LIKE LINE OF it_variation,
it_variation_rep  TYPE STANDARD TABLE OF VARDR ,
wa_variation_rep  LIKE LINE OF it_variation_rep,
it_i_grix_rsd  TYPE STANDARD TABLE OF GRIX_RSD ,
wa_i_grix_rsd  LIKE LINE OF it_i_grix_rsd.

ld_in_grix = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_selections to it_selections.
ld_flag_subnodes = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_out_grix to it_out_grix.

"populate fields of struture and append to itab
append wa_out_grix_txt to it_out_grix_txt.

"populate fields of struture and append to itab
append wa_variation to it_variation.

"populate fields of struture and append to itab
append wa_variation_rep to it_variation_rep.

"populate fields of struture and append to itab
append wa_i_grix_rsd to it_i_grix_rsd.

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 G_INDEX_ENTRY_FIND or its description.