SAP TREX_DBS_BULK_SEARCH Function Module for Bulk search for HDB









TREX_DBS_BULK_SEARCH is a standard trex dbs bulk search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Bulk search for HDB 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 trex dbs bulk search FM, simply by entering the name TREX_DBS_BULK_SEARCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: TREX_DBS_TM
Program Name: SAPLTREX_DBS_TM
Main Program: SAPLTREX_DBS_TM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TREX_DBS_BULK_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 'TREX_DBS_BULK_SEARCH'"Bulk search for HDB
EXPORTING
I_SEARCH_REQUESTS = "input parameters for bulk search

IMPORTING
E_SEARCH_RESULTS = "ouput parameters for bulk search
E_COMPONENT_RUNTIME = "Run time of the TREX components

EXCEPTIONS
CX_TREX_BAD_REQUEST = 1 CX_HDB_ABAP_CLIENT_SHM_ERROR = 2 CX_TREX_REMOTE_COMMUNICATION = 3 CX_TREX_SQL_EXCEPTION = 4
.



IMPORTING Parameters details for TREX_DBS_BULK_SEARCH

I_SEARCH_REQUESTS - input parameters for bulk search

Data type: TREXT_BULK_SEARCH_INPUT
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for TREX_DBS_BULK_SEARCH

E_SEARCH_RESULTS - ouput parameters for bulk search

Data type: TREXT_BULK_SEARCH_OUTPUT
Optional: No
Call by Reference: Yes

E_COMPONENT_RUNTIME - Run time of the TREX components

Data type: TREXS_COMPONENT_RUNTIME
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_TREX_BAD_REQUEST - Unexpected data received from application.

Data type:
Optional: No
Call by Reference: Yes

CX_HDB_ABAP_CLIENT_SHM_ERROR - Shared memory error for HDB ABAP Client

Data type:
Optional: No
Call by Reference: Yes

CX_TREX_REMOTE_COMMUNICATION - Remote Communication Exception

Data type:
Optional: No
Call by Reference: Yes

CX_TREX_SQL_EXCEPTION - TREX SQL exception

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TREX_DBS_BULK_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_e_search_results  TYPE TREXT_BULK_SEARCH_OUTPUT, "   
lv_i_search_requests  TYPE TREXT_BULK_SEARCH_INPUT, "   
lv_cx_trex_bad_request  TYPE TREXT_BULK_SEARCH_INPUT, "   
lv_e_component_runtime  TYPE TREXS_COMPONENT_RUNTIME, "   
lv_cx_hdb_abap_client_shm_error  TYPE TREXS_COMPONENT_RUNTIME, "   
lv_cx_trex_remote_communication  TYPE TREXS_COMPONENT_RUNTIME, "   
lv_cx_trex_sql_exception  TYPE TREXS_COMPONENT_RUNTIME. "   

  CALL FUNCTION 'TREX_DBS_BULK_SEARCH'  "Bulk search for HDB
    EXPORTING
         I_SEARCH_REQUESTS = lv_i_search_requests
    IMPORTING
         E_SEARCH_RESULTS = lv_e_search_results
         E_COMPONENT_RUNTIME = lv_e_component_runtime
    EXCEPTIONS
        CX_TREX_BAD_REQUEST = 1
        CX_HDB_ABAP_CLIENT_SHM_ERROR = 2
        CX_TREX_REMOTE_COMMUNICATION = 3
        CX_TREX_SQL_EXCEPTION = 4
. " TREX_DBS_BULK_SEARCH




ABAP code using 7.40 inline data declarations to call FM TREX_DBS_BULK_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.

 
 
 
 
 
 
 


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!