GET_CON_ENV_STRING is a standard SAP function module that performs HDB: Get CON_ENV for DBCON functionality. This is available within standard R/3 SAP systems depending on version and release level.
Below are the pattern details for this FM showing its interface including any import, export and tables parameters. There is also a list of Exceptions and for your convenience any standard documentation available. All this information and more can also be viewed if you enter the function module name GET_CON_ENV_STRING into the relevant SAP transaction such as SE37 or SE80.
CALL FUNCTION 'GET_CON_ENV_STRING' "HDB: Get CON_ENV for DBCON
* EXPORTING
* con_name = 'DEFAULT' " dbcon_name Logical Name for a Database Connection
IMPORTING
con_env_log = " dbcon_env Logical Hostnames
con_env_phy = " dbcon_env Physical Hostnames
con_env_res = " dbcon_env Resolved Hostbames
EXCEPTIONS
NO_CONNECTION = 1 "
. " GET_CON_ENV_STRING