SAP TREX_DBS_UNPACK_INDEX_CALL Function Module for Deserialize indexCellTable call.
TREX_DBS_UNPACK_INDEX_CALL is a standard trex dbs unpack index call SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deserialize indexCellTable call. 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 unpack index call FM, simply by entering the name TREX_DBS_UNPACK_INDEX_CALL into the relevant SAP transaction such as SE37 or SE38.
Function Group: TREX_DBS_INDEX
Program Name: SAPLTREX_DBS_INDEX
Main Program: SAPLTREX_DBS_INDEX
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TREX_DBS_UNPACK_INDEX_CALL 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_UNPACK_INDEX_CALL'"Deserialize indexCellTable call..
EXPORTING
I_REQUEST_STRING = "Bxml string
IMPORTING
E_INDEX_ID = "Index Id
E_COMP_DESCRS = "Description of the components
E_ITAB_REF = "
E_DOC_ACTION = "Document action for indexing.
E_TRANSACTION_ID = "Transaction ID
E_AUTO_OPTIMIZE = "0: false, 1: true
E_SESSION_ID = "
E_VIEW_NAME = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for TREX_DBS_UNPACK_INDEX_CALL
I_REQUEST_STRING - Bxml string
Data type: XSTRINGOptional: No
Call by Reference: Yes
EXPORTING Parameters details for TREX_DBS_UNPACK_INDEX_CALL
E_INDEX_ID - Index Id
Data type: TREX_RFC-INDEX_IDOptional: No
Call by Reference: Yes
E_COMP_DESCRS - Description of the components
Data type: TREXT_COMP_DESCROptional: No
Call by Reference: Yes
E_ITAB_REF -
Data type: DATAOptional: No
Call by Reference: Yes
E_DOC_ACTION - Document action for indexing.
Data type: TREXD_INDEX_ACTIONOptional: No
Call by Reference: Yes
E_TRANSACTION_ID - Transaction ID
Data type: TREXD_TRANSACTION_IDOptional: No
Call by Reference: Yes
E_AUTO_OPTIMIZE - 0: false, 1: true
Data type: TREX_RFC-BOOLEANOptional: No
Call by Reference: Yes
E_SESSION_ID -
Data type: STRINGOptional: No
Call by Reference: Yes
E_VIEW_NAME -
Data type: STRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TREX_DBS_UNPACK_INDEX_CALL 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_error | TYPE STRING, " | |||
| lv_e_index_id | TYPE TREX_RFC-INDEX_ID, " | |||
| lv_i_request_string | TYPE XSTRING, " | |||
| lv_e_comp_descrs | TYPE TREXT_COMP_DESCR, " | |||
| lv_e_itab_ref | TYPE DATA, " | |||
| lv_e_doc_action | TYPE TREXD_INDEX_ACTION, " | |||
| lv_e_transaction_id | TYPE TREXD_TRANSACTION_ID, " | |||
| lv_e_auto_optimize | TYPE TREX_RFC-BOOLEAN, " | |||
| lv_e_session_id | TYPE STRING, " | |||
| lv_e_view_name | TYPE STRING. " |
|   CALL FUNCTION 'TREX_DBS_UNPACK_INDEX_CALL' "Deserialize indexCellTable call. |
| EXPORTING | ||
| I_REQUEST_STRING | = lv_i_request_string | |
| IMPORTING | ||
| E_INDEX_ID | = lv_e_index_id | |
| E_COMP_DESCRS | = lv_e_comp_descrs | |
| E_ITAB_REF | = lv_e_itab_ref | |
| E_DOC_ACTION | = lv_e_doc_action | |
| E_TRANSACTION_ID | = lv_e_transaction_id | |
| E_AUTO_OPTIMIZE | = lv_e_auto_optimize | |
| E_SESSION_ID | = lv_e_session_id | |
| E_VIEW_NAME | = lv_e_view_name | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " TREX_DBS_UNPACK_INDEX_CALL | ||
ABAP code using 7.40 inline data declarations to call FM TREX_DBS_UNPACK_INDEX_CALL
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_e_index_id). | ||||
| "SELECT single BOOLEAN FROM TREX_RFC INTO @DATA(ld_e_auto_optimize). | ||||
Search for further information about these or an SAP related objects