SAP Reports / Programs

BBP_TREX_INDEX_ADMIN SAP ABAP Report - SRM TREX Index Administration







BBP_TREX_INDEX_ADMIN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to create indexes for the TREX server...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter BBP_TREX_INDEX_ADMIN into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT BBP_TREX_INDEX_ADMIN. "Basic submit
SUBMIT BBP_TREX_INDEX_ADMIN AND RETURN. "Return to original report after report execution complete
SUBMIT BBP_TREX_INDEX_ADMIN VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_ACTION = Action for SRM TREX Index
Selection Text: P_BUNDLE = Bundle Size for Indexing
Selection Text: P_BUSOBJ = Business Object
Selection Text: P_QUEUE = Use TREX Queue Server
Selection Text: P_SUBTYP = Subtype Business Object
Selection Text: S_OBJ_ID = Document Number
Title: SRM TREX Index Administration


INCLUDES used within this REPORT BBP_TREX_INDEX_ADMIN

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

TREX_AUTHORITY_CHECK_ADMIN CALL FUNCTION 'TREX_AUTHORITY_CHECK_ADMIN' EXPORTING i_activity = '16' EXCEPTIONS no_authorization = 1 OTHERS = 2.

BBP_TREX_INIT CALL FUNCTION 'BBP_TREX_INIT' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_doc_index_bundle = iv_doc_index_bundle TABLES et_messages = gt_messages[] EXCEPTIONS no_trex_rfc_dest = 1 trex_rfc_dest_not_reachable = 2 error = 3 OTHERS = 4.

BBP_TREX_ENQUEUE_INDEX CALL FUNCTION 'BBP_TREX_ENQUEUE_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_enqmode = iv_enqmode TABLES et_messages = gt_messages[] EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

BBP_TREX_DEQUEUE_INDEX CALL FUNCTION 'BBP_TREX_DEQUEUE_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_enqmode = iv_enqmode iv_all = 'X' TABLES et_messages = gt_messages[].

BBP_TREX_CREATE_INDEX CALL FUNCTION 'BBP_TREX_CREATE_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status "default 'C' iv_queue = iv_queue TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 already_exist = 3 OTHERS = 4.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

BBP_TREX_FIND_INDEX CALL FUNCTION 'BBP_TREX_FIND_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status IMPORTING ev_exist = lv_exist TABLES et_messages = gt_messages[].

BBP_TREX_DELETE_INDEX CALL FUNCTION 'BBP_TREX_DELETE_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status IMPORTING ev_deleted = lv_deleted TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

BBP_TREX_CLEAR_INDEX CALL FUNCTION 'BBP_TREX_CLEAR_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status IMPORTING ev_cleared = lv_cleared TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

BBP_TREX_CHANGE_INDEX_STATUS CALL FUNCTION 'BBP_TREX_CHANGE_INDEX_STATUS' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status_from = iv_index_status_from iv_index_status_to = iv_index_status_to IMPORTING ev_changed = lv_changed TABLES et_messages = gt_messages[].

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

BBP_PD_CTR_GETLIST CALL FUNCTION 'BBP_PD_CTR_GETLIST' EXPORTING i_template_type = '' i_subtype = iv_subtyp "'' Contract "'CC' global outline agreement i_with_change_version = /sapsrm/if_pdo_search_c=>gc_getlist_version_all TABLES i_range_object_id = it_range_object_id[] * I_STATUS = * I_PARTNERS = * IT_CUF_SEARCH = * IT_ITEM_CUF_SEARCH = e_pdlist = lt_pdlist[] * E_STATUS = e_messages = lt_messages[] .

BBP_TREX_INDEX CALL FUNCTION 'BBP_TREX_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_use_queueserver = iv_use_queueserver it_guid_list = lt_guid_list[] IMPORTING et_error_guid_list = lt_error_guid_list[] ev_docs_indexed = lv_docs_indexed ev_attach_indexed = lv_attach_indexed ev_optimized = lv_optimized TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

DB_COMMIT * CALL FUNCTION 'DB_COMMIT'.

BBP_ICC_GET_INSTALLED_SOLUT * CALL FUNCTION 'BBP_ICC_GET_INSTALLED_SOLUT' * EXPORTING * iv_solution_type = 'SZENAR' * iv_only_installed = 'X' * IMPORTING * et_solutions = lt_solutions.

BBP_PD_INV_GETLIST CALL FUNCTION 'BBP_PD_INV_GETLIST' EXPORTING * I_READ_FROM_ARCHIVE = i_subtype = iv_subtyp TABLES i_range_object_id = it_range_object_id[] i_status = lt_inv_status e_pdlist = lt_pd_inv_list[] * E_STATUS = e_messages = lt_messages[].

BBP_TREX_INDEX CALL FUNCTION 'BBP_TREX_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_use_queueserver = iv_use_queueserver it_guid_list = lt_guid_list[] IMPORTING et_error_guid_list = lt_error_guid_list[] ev_docs_indexed = lv_docs_indexed ev_attach_indexed = lv_attach_indexed ev_optimized = lv_optimized TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

BBP_TREX_INDEX





CALL FUNCTION 'BBP_TREX_INDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_use_queueserver = iv_use_queueserver it_guid_list = lt_guid_list[] IMPORTING et_error_guid_list = lt_error_guid_list[] ev_docs_indexed = lv_docs_indexed ev_attach_indexed = lv_attach_indexed ev_optimized = lv_optimized TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

BBP_PD_CTR_GETLIST CALL FUNCTION 'BBP_PD_CTR_GETLIST' EXPORTING i_template_type = '' i_subtype = iv_subtyp "'' Contract "'CC' global outline agreement i_with_change_version = /sapsrm/if_pdo_search_c=>gc_getlist_version_all TABLES i_range_object_id = it_range_object_id[] * I_STATUS = * I_PARTNERS = * IT_CUF_SEARCH = * IT_ITEM_CUF_SEARCH = e_pdlist = lt_pdlist[] * E_STATUS = e_messages = lt_messages[] .

BBP_TREX_DEINDEX CALL FUNCTION 'BBP_TREX_DEINDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_use_queueserver = iv_use_queueserver it_guid_list = lt_guid_list[] IMPORTING et_error_guid_list = lt_error_guid_list[] ev_docs_deindexed = lv_docs_deindexed ev_optimized = lv_optimized TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

BBP_TREX_DEINDEX CALL FUNCTION 'BBP_TREX_DEINDEX' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status iv_use_queueserver = iv_use_queueserver it_guid_list = lt_guid_list[] IMPORTING et_error_guid_list = lt_error_guid_list[] ev_docs_deindexed = lv_docs_deindexed ev_optimized = lv_optimized TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

BBP_TREX_LIST_INDEXES CALL FUNCTION 'BBP_TREX_LIST_INDEXES' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp IMPORTING ev_trex_rfc_dest = ev_trex_rfc_dest et_bbp_trex_indexes = et_bbp_trex_indexes[] TABLES et_messages = gt_messages[] EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.

BBP_TREX_CLEAN_INDEX_ADM_TABLE CALL FUNCTION 'BBP_TREX_CLEAN_INDEX_ADM_TABLE' EXPORTING iv_object_type = iv_busobj iv_subtype = iv_subtyp iv_index_status = iv_index_status IMPORTING ev_deleted = lv_deleted TABLES et_messages = gt_messages[].

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name BBP_TREX_INDEX_ADMIN or its description.