SAP Reports / Programs | Basis Components | Basis Components | NetWeaver Enterprise Search(BC-EIM-ESH) SAP BC

ESH_ADM_SET_TREX_DESTINATION SAP ABAP Report - Set the RFC destination of TREX or DB connection for HANA DB







ESH_ADM_SET_TREX_DESTINATION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

ESH_ADM_TREX_DEST - Set TREX Destination


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 ESH_ADM_SET_TREX_DESTINATION. "Basic submit
SUBMIT ESH_ADM_SET_TREX_DESTINATION AND RETURN. "Return to original report after report execution complete
SUBMIT ESH_ADM_SET_TREX_DESTINATION 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_DBCON = DB Connection Name
Selection Text: P_RFCDES = RFC destination of TREX
Selection Text: P_USEHDB = Use HANA
Selection Text: P_USETRX = Use TREX
Title: Set the RFC destination of TREX or DB connection for HANA DB
Text Symbol: 001 = Set the RFC destination of TREX or DB connection for HANA DB


INCLUDES used within this REPORT ESH_ADM_SET_TREX_DESTINATION

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:

SUSR_GET_AUTHS_WITH_SPEC_OBJCT CALL FUNCTION 'SUSR_GET_AUTHS_WITH_SPEC_OBJCT' EXPORTING object = ls_obj-objct IMPORTING number_of_auths = lv_nr_auths TABLES auths = lt_auths_for_obj EXCEPTIONS parameter_error = 1 internal_error = 2 not_authorized_for_object = 3 OTHERS = 4.

SUSR_GET_PROFS_WITH_SPEC_AUTHS CALL FUNCTION 'SUSR_GET_PROFS_WITH_SPEC_AUTHS' EXPORTING srchtype = 'OR' aktps = 'A' IMPORTING number_of_profs = lv_nr_auths TABLES profiles = lt_profiles auths = lt_auths EXCEPTIONS parameter_error = 1 not_authorized_for_profile = 2 OTHERS = 3.

PRGN_GEN_PROFILES_FOR_ROLES CALL FUNCTION 'PRGN_GEN_PROFILES_FOR_ROLES' EXPORTING iv_usercompare = 'X' TABLES it_roles = lt_all_roles et_return = l_t_bapiret2.

PRGN_ACTIVITYGROUP_PROFILE_GET CALL FUNCTION 'PRGN_ACTIVITYGROUP_PROFILE_GET' TABLES act_profiles = lt_prgn_act_profiles actvgroups_text = lt_agr_texts EXCEPTIONS no_profiles_found = 1 no_input_table = 2 OTHERS = 3.

TREX_EXT_GET_VERSION_INFO CALL FUNCTION 'TREX_EXT_GET_VERSION_INFO' EXPORTING i_rfc_destination = lv_trex_dest IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_trex_verion_info = lt_version_info EXCEPTIONS conversion_error = 01 error = 02.

TREX_EXT_LANDSCAPE_INFO CALL FUNCTION 'TREX_EXT_LANDSCAPE_INFO' EXPORTING i_rfc_destination = lv_trex_dest IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_landscape_info = lt_landscape_info EXCEPTIONS conversion_error = 01 error = 02.

TREX_EXT_LANDSCAPE_SUMMARY CALL FUNCTION 'TREX_EXT_LANDSCAPE_SUMMARY' EXPORTING i_rfc_destination = lv_trex_dest IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_landscape_info = lt_landscape_info EXCEPTIONS conversion_error = 01 error = 02.



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