SAP COM_SE_INDEXER_REL Function Module for Read objects and transfer them to the search engine (in parallel tasks)









COM_SE_INDEXER_REL is a standard com se indexer rel SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read objects and transfer them to the search engine (in parallel tasks) processing and below is the pattern details for this FM, 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 com se indexer rel FM, simply by entering the name COM_SE_INDEXER_REL into the relevant SAP transaction such as SE37 or SE38.

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



Function COM_SE_INDEXER_REL 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 'COM_SE_INDEXER_REL'"Read objects and transfer them to the search engine (in parallel tasks)
EXPORTING
IV_INDEX_ID = "Index ID in the Search Engine
IV_RFC_DESTINATION = "RFC Destination to the Search Engine
IV_BUSOBJ = "Business Object of IT_OBJECT_IDS
IV_OBJECT_TYPE = "Type of Business Object
* IT_RELATIONS = "Relations to be indexed
* IV_LANGUAGE = "ISO 639 Language, if only this Language is to be indexed
* IV_FEED_INDEX = 'X' "X = Feed Index; ' ' = Only Read the Objects (Test Mode)
* IT_REL_KEYS_DELETE = "Relation Keys to be deleted from the Index (deindexed)
* IT_CP_ID = "Change Pointer IDs, referring to IT_RELATIONS

IMPORTING
EV_SE_IDX_RETURN_CODE = "Return Code for Indexing in the Search Engine
EV_SE_IDX_RETURN_TEXT = "Return Text for Indexing in the Search Engine
EV_SE_IDX_RUNTIME = "Runtime of the Search Engine for Indexing
EV_SE_DEL_RETURN_CODE = "Return Code for Deletion in the Search Engine
EV_SE_DEL_RETURN_TEXT = "Return Text for Deletion in the Search Engine
EV_SE_DEL_RUNTIME = "Runtime of the Search Engine for Deletion

EXCEPTIONS
BUSOBJ_METHOD_CALL_FAILED = 1 BUSOBJ_NOT_SUPPORTED = 2 BUSOBJ_OTHER_ERROR = 3 SE_METHOD_CALL_FAILED = 4 SE_CONVERSION_ERROR = 5 SE_OTHER_ERROR = 6
.



IMPORTING Parameters details for COM_SE_INDEXER_REL

IV_INDEX_ID - Index ID in the Search Engine

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

IV_RFC_DESTINATION - RFC Destination to the Search Engine

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

IV_BUSOBJ - Business Object of IT_OBJECT_IDS

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

IV_OBJECT_TYPE - Type of Business Object

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

IT_RELATIONS - Relations to be indexed

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

IV_LANGUAGE - ISO 639 Language, if only this Language is to be indexed

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

IV_FEED_INDEX - X = Feed Index; ' ' = Only Read the Objects (Test Mode)

Data type: BOOLE_D
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_REL_KEYS_DELETE - Relation Keys to be deleted from the Index (deindexed)

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

IT_CP_ID - Change Pointer IDs, referring to IT_RELATIONS

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

EXPORTING Parameters details for COM_SE_INDEXER_REL

EV_SE_IDX_RETURN_CODE - Return Code for Indexing in the Search Engine

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

EV_SE_IDX_RETURN_TEXT - Return Text for Indexing in the Search Engine

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

EV_SE_IDX_RUNTIME - Runtime of the Search Engine for Indexing

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

EV_SE_DEL_RETURN_CODE - Return Code for Deletion in the Search Engine

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

EV_SE_DEL_RETURN_TEXT - Return Text for Deletion in the Search Engine

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

EV_SE_DEL_RUNTIME - Runtime of the Search Engine for Deletion

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

EXCEPTIONS details

BUSOBJ_METHOD_CALL_FAILED - Dynamic Method Call for Business Object failed

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

BUSOBJ_NOT_SUPPORTED - Business Object is not supported (Table COM_SE_BUSOBJ)

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

BUSOBJ_OTHER_ERROR - Unspecified Error in Business Object Class

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

SE_METHOD_CALL_FAILED - Dynamic Method Call for Search Engine failed

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

SE_CONVERSION_ERROR - Search Engine: Error during Conversion to UTF-8

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

SE_OTHER_ERROR - Unspecified Error in Search Engine, see SYST-Variables

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

Copy and paste ABAP code example for COM_SE_INDEXER_REL 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_iv_index_id  TYPE TREX_RFC-INDEX_ID, "   
lv_ev_se_idx_return_code  TYPE TREX_RFC-RETURN_CODE, "   
lv_busobj_method_call_failed  TYPE TREX_RFC, "   
lv_iv_rfc_destination  TYPE TREX_RFC-RFC_DESTINATION, "   
lv_busobj_not_supported  TYPE TREX_RFC, "   
lv_ev_se_idx_return_text  TYPE TREX_RFC-RETURN_TEXT, "   
lv_iv_busobj  TYPE COM_SEARCH_TV_BUSOBJ, "   
lv_ev_se_idx_runtime  TYPE TREXS_COMPONENT_RUNTIME, "   
lv_busobj_other_error  TYPE TREXS_COMPONENT_RUNTIME, "   
lv_iv_object_type  TYPE COM_SEARCH_TV_OBJECT_TYPE, "   
lv_ev_se_del_return_code  TYPE TREX_RFC-RETURN_CODE, "   
lv_se_method_call_failed  TYPE TREX_RFC, "   
lv_it_relations  TYPE COM_SEARCH_TT_REL, "   
lv_se_conversion_error  TYPE COM_SEARCH_TT_REL, "   
lv_ev_se_del_return_text  TYPE TREX_RFC-RETURN_TEXT, "   
lv_iv_language  TYPE LAISO, "   
lv_se_other_error  TYPE LAISO, "   
lv_ev_se_del_runtime  TYPE TREXS_COMPONENT_RUNTIME, "   
lv_iv_feed_index  TYPE BOOLE_D, "   'X'
lv_it_rel_keys_delete  TYPE COM_SEARCH_TT_REL_KEY, "   
lv_it_cp_id  TYPE COM_SEARCH_TT_CP_ID. "   

  CALL FUNCTION 'COM_SE_INDEXER_REL'  "Read objects and transfer them to the search engine (in parallel tasks)
    EXPORTING
         IV_INDEX_ID = lv_iv_index_id
         IV_RFC_DESTINATION = lv_iv_rfc_destination
         IV_BUSOBJ = lv_iv_busobj
         IV_OBJECT_TYPE = lv_iv_object_type
         IT_RELATIONS = lv_it_relations
         IV_LANGUAGE = lv_iv_language
         IV_FEED_INDEX = lv_iv_feed_index
         IT_REL_KEYS_DELETE = lv_it_rel_keys_delete
         IT_CP_ID = lv_it_cp_id
    IMPORTING
         EV_SE_IDX_RETURN_CODE = lv_ev_se_idx_return_code
         EV_SE_IDX_RETURN_TEXT = lv_ev_se_idx_return_text
         EV_SE_IDX_RUNTIME = lv_ev_se_idx_runtime
         EV_SE_DEL_RETURN_CODE = lv_ev_se_del_return_code
         EV_SE_DEL_RETURN_TEXT = lv_ev_se_del_return_text
         EV_SE_DEL_RUNTIME = lv_ev_se_del_runtime
    EXCEPTIONS
        BUSOBJ_METHOD_CALL_FAILED = 1
        BUSOBJ_NOT_SUPPORTED = 2
        BUSOBJ_OTHER_ERROR = 3
        SE_METHOD_CALL_FAILED = 4
        SE_CONVERSION_ERROR = 5
        SE_OTHER_ERROR = 6
. " COM_SE_INDEXER_REL




ABAP code using 7.40 inline data declarations to call FM COM_SE_INDEXER_REL

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 INDEX_ID FROM TREX_RFC INTO @DATA(ld_iv_index_id).
 
"SELECT single RETURN_CODE FROM TREX_RFC INTO @DATA(ld_ev_se_idx_return_code).
 
 
"SELECT single RFC_DESTINATION FROM TREX_RFC INTO @DATA(ld_iv_rfc_destination).
 
 
"SELECT single RETURN_TEXT FROM TREX_RFC INTO @DATA(ld_ev_se_idx_return_text).
 
 
 
 
 
"SELECT single RETURN_CODE FROM TREX_RFC INTO @DATA(ld_ev_se_del_return_code).
 
 
 
 
"SELECT single RETURN_TEXT FROM TREX_RFC INTO @DATA(ld_ev_se_del_return_text).
 
 
 
 
DATA(ld_iv_feed_index) = 'X'.
 
 
 


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!