SAP Function Modules

ESH_CTC_SET_TREX_PROXY SAP Function module - Configure TREX Proxy settings







ESH_CTC_SET_TREX_PROXY is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ESH_CTC_SET_TREX_PROXY into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ESH_CTC_SET_PROXY
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM ESH_CTC_SET_TREX_PROXY - ESH CTC SET TREX PROXY





CALL FUNCTION 'ESH_CTC_SET_TREX_PROXY' "Configure TREX Proxy settings
* EXPORTING
*   iv_proxy_server =           " string
*   iv_proxy_server_port =      " string
*   iv_proxy_user =             " string
*   iv_proxy_pwd =              " string
*   iv_proxy_exclusions =       " string
  IMPORTING
    ev_return_code =            " trex_rfc-return_code  Return Code
    ev_return_text =            " trex_rfc-return_text  Return Text
    et_lines =                  " trext_lines   Long lines
  EXCEPTIONS
    TREX_RFC_DEST_NOT_FOUND = 1  "              TREX RFC destination could not be found
    TREX_MASTER_HOST_NOT_FOUND = 2  "           TREX RFC master host could not be found
    COMMAND_EXE_FAILED = 3      "               Execution of command failed
    .  "  ESH_CTC_SET_TREX_PROXY

ABAP code example for Function Module ESH_CTC_SET_TREX_PROXY





The ABAP code below is a full code listing to execute function module ESH_CTC_SET_TREX_PROXY including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ev_return_code  TYPE TREX_RFC-RETURN_CODE ,
ld_ev_return_text  TYPE TREX_RFC-RETURN_TEXT ,
ld_et_lines  TYPE TREXT_LINES .

DATA(ld_iv_proxy_server) = 'Check type of data required'.
DATA(ld_iv_proxy_server_port) = 'Check type of data required'.
DATA(ld_iv_proxy_user) = 'Check type of data required'.
DATA(ld_iv_proxy_pwd) = 'Check type of data required'.
DATA(ld_iv_proxy_exclusions) = 'Check type of data required'. . CALL FUNCTION 'ESH_CTC_SET_TREX_PROXY' * EXPORTING * iv_proxy_server = ld_iv_proxy_server * iv_proxy_server_port = ld_iv_proxy_server_port * iv_proxy_user = ld_iv_proxy_user * iv_proxy_pwd = ld_iv_proxy_pwd * iv_proxy_exclusions = ld_iv_proxy_exclusions IMPORTING ev_return_code = ld_ev_return_code ev_return_text = ld_ev_return_text et_lines = ld_et_lines EXCEPTIONS TREX_RFC_DEST_NOT_FOUND = 1 TREX_MASTER_HOST_NOT_FOUND = 2 COMMAND_EXE_FAILED = 3 . " ESH_CTC_SET_TREX_PROXY
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ev_return_code  TYPE TREX_RFC-RETURN_CODE ,
ld_iv_proxy_server  TYPE STRING ,
ld_ev_return_text  TYPE TREX_RFC-RETURN_TEXT ,
ld_iv_proxy_server_port  TYPE STRING ,
ld_et_lines  TYPE TREXT_LINES ,
ld_iv_proxy_user  TYPE STRING ,
ld_iv_proxy_pwd  TYPE STRING ,
ld_iv_proxy_exclusions  TYPE STRING .

ld_iv_proxy_server = 'Check type of data required'.
ld_iv_proxy_server_port = 'Check type of data required'.
ld_iv_proxy_user = 'Check type of data required'.
ld_iv_proxy_pwd = 'Check type of data required'.
ld_iv_proxy_exclusions = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ESH_CTC_SET_TREX_PROXY or its description.