SAP TMS_CFG_GET_LOCAL_SYSTEM_INFO Function Module for









TMS_CFG_GET_LOCAL_SYSTEM_INFO is a standard tms cfg get local system info SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 tms cfg get local system info FM, simply by entering the name TMS_CFG_GET_LOCAL_SYSTEM_INFO into the relevant SAP transaction such as SE37 or SE38.

Function Group: TMSM
Program Name: SAPLTMSM
Main Program: SAPLTMSM
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TMS_CFG_GET_LOCAL_SYSTEM_INFO 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 'TMS_CFG_GET_LOCAL_SYSTEM_INFO'"
EXPORTING
* IV_SERVER_LIST = "
* IV_DOMAIN_CFG = "
* IV_INST_NR = "

IMPORTING
EV_SYSTEM_NAME = "TMS: System Name
EV_CENTRAL_SERVICE = "Service used (TCP service, SAP System number)
EV_MESSAGE_HOST = "Name of target host
EV_INST_NUMBER = "SYSTEM: SAP Installation Number
EV_INST_LANGUAGES = "Character Field of Length 40
EV_SAP_RELEASE = "R/3 System, system release
EV_CHAR_LENGTH = "Number of Bytes per Character (Unicode System)
ES_DOMAIN_DEST = "TMS CI: Destinations
ES_DOMAIN_CONF = "TMS Manager: Configuration
EV_SYSTEM_TEXT = "Short Text Describing R/3 Repository Objects
EV_USER_NAME = "Last Changed by
EV_SYSTEM_HOST = "Name of target host
EV_SYSTEM_SERVICE = "Service used (TCP service, SAP System number)
EV_SYSTEM_SNCNAME = "SNC: Printable name
EV_SYSTEM_SNCQOP = "SNC: Quality of protection
EV_SNC_ACTIVE = "
EV_CENTRAL_HOST = "Name of target host

TABLES
* TT_SERVER_LIST = "

EXCEPTIONS
GET_SERVER_LIST_FAILED = 1 GET_INST_NUMBER_FAILED = 2 PERMISSION_DENIED = 3
.



IMPORTING Parameters details for TMS_CFG_GET_LOCAL_SYSTEM_INFO

IV_SERVER_LIST -

Data type: STMS_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DOMAIN_CFG -

Data type: STMS_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_INST_NR -

Data type: STMS_FLAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TMS_CFG_GET_LOCAL_SYSTEM_INFO

EV_SYSTEM_NAME - TMS: System Name

Data type: TMSMCONF-SYSNAM
Optional: No
Call by Reference: Yes

EV_CENTRAL_SERVICE - Service used (TCP service, SAP System number)

Data type: TMSCDES-RFCSERV
Optional: No
Call by Reference: Yes

EV_MESSAGE_HOST - Name of target host

Data type: TMSCDES-RFCHOST
Optional: No
Call by Reference: Yes

EV_INST_NUMBER - SYSTEM: SAP Installation Number

Data type: TMSCSYS-INSTNR
Optional: No
Call by Reference: Yes

EV_INST_LANGUAGES - Character Field of Length 40

Data type: TMSCDES-LANGUAGES
Optional: No
Call by Reference: Yes

EV_SAP_RELEASE - R/3 System, system release

Data type: TMSCSYS-SAPREL
Optional: No
Call by Reference: Yes

EV_CHAR_LENGTH - Number of Bytes per Character (Unicode System)

Data type: TMSCDES-RFCUNICODE
Optional: No
Call by Reference: Yes

ES_DOMAIN_DEST - TMS CI: Destinations

Data type: TMSCDES
Optional: No
Call by Reference: Yes

ES_DOMAIN_CONF - TMS Manager: Configuration

Data type: TMSMCONF
Optional: No
Call by Reference: Yes

EV_SYSTEM_TEXT - Short Text Describing R/3 Repository Objects

Data type: TMSMCONF-SYSTXT
Optional: No
Call by Reference: Yes

EV_USER_NAME - Last Changed by

Data type: TMSMCONF-SUPUSR
Optional: No
Call by Reference: Yes

EV_SYSTEM_HOST - Name of target host

Data type: TMSCDES-RFCHOST
Optional: No
Call by Reference: Yes

EV_SYSTEM_SERVICE - Service used (TCP service, SAP System number)

Data type: TMSCDES-RFCSERV
Optional: No
Call by Reference: Yes

EV_SYSTEM_SNCNAME - SNC: Printable name

Data type: TMSCDES-SNCNAME
Optional: No
Call by Reference: Yes

EV_SYSTEM_SNCQOP - SNC: Quality of protection

Data type: TMSCDES-SNCQOP
Optional: No
Call by Reference: Yes

EV_SNC_ACTIVE -

Data type: TMSCDES-SNCALLOW
Optional: No
Call by Reference: Yes

EV_CENTRAL_HOST - Name of target host

Data type: TMSCDES-RFCHOST
Optional: No
Call by Reference: Yes

TABLES Parameters details for TMS_CFG_GET_LOCAL_SYSTEM_INFO

TT_SERVER_LIST -

Data type: STMSMSERV
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

GET_SERVER_LIST_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

GET_INST_NUMBER_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PERMISSION_DENIED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TMS_CFG_GET_LOCAL_SYSTEM_INFO 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_ev_system_name  TYPE TMSMCONF-SYSNAM, "   
lv_iv_server_list  TYPE STMS_FLAG, "   
lt_tt_server_list  TYPE STANDARD TABLE OF STMSMSERV, "   
lv_get_server_list_failed  TYPE STMSMSERV, "   
lv_ev_central_service  TYPE TMSCDES-RFCSERV, "   
lv_ev_message_host  TYPE TMSCDES-RFCHOST, "   
lv_ev_inst_number  TYPE TMSCSYS-INSTNR, "   
lv_ev_inst_languages  TYPE TMSCDES-LANGUAGES, "   
lv_ev_sap_release  TYPE TMSCSYS-SAPREL, "   
lv_ev_char_length  TYPE TMSCDES-RFCUNICODE, "   
lv_es_domain_dest  TYPE TMSCDES, "   
lv_es_domain_conf  TYPE TMSMCONF, "   
lv_iv_domain_cfg  TYPE STMS_FLAG, "   
lv_ev_system_text  TYPE TMSMCONF-SYSTXT, "   
lv_get_inst_number_failed  TYPE TMSMCONF, "   
lv_iv_inst_nr  TYPE STMS_FLAG, "   
lv_ev_user_name  TYPE TMSMCONF-SUPUSR, "   
lv_permission_denied  TYPE TMSMCONF, "   
lv_ev_system_host  TYPE TMSCDES-RFCHOST, "   
lv_ev_system_service  TYPE TMSCDES-RFCSERV, "   
lv_ev_system_sncname  TYPE TMSCDES-SNCNAME, "   
lv_ev_system_sncqop  TYPE TMSCDES-SNCQOP, "   
lv_ev_snc_active  TYPE TMSCDES-SNCALLOW, "   
lv_ev_central_host  TYPE TMSCDES-RFCHOST. "   

  CALL FUNCTION 'TMS_CFG_GET_LOCAL_SYSTEM_INFO'  "
    EXPORTING
         IV_SERVER_LIST = lv_iv_server_list
         IV_DOMAIN_CFG = lv_iv_domain_cfg
         IV_INST_NR = lv_iv_inst_nr
    IMPORTING
         EV_SYSTEM_NAME = lv_ev_system_name
         EV_CENTRAL_SERVICE = lv_ev_central_service
         EV_MESSAGE_HOST = lv_ev_message_host
         EV_INST_NUMBER = lv_ev_inst_number
         EV_INST_LANGUAGES = lv_ev_inst_languages
         EV_SAP_RELEASE = lv_ev_sap_release
         EV_CHAR_LENGTH = lv_ev_char_length
         ES_DOMAIN_DEST = lv_es_domain_dest
         ES_DOMAIN_CONF = lv_es_domain_conf
         EV_SYSTEM_TEXT = lv_ev_system_text
         EV_USER_NAME = lv_ev_user_name
         EV_SYSTEM_HOST = lv_ev_system_host
         EV_SYSTEM_SERVICE = lv_ev_system_service
         EV_SYSTEM_SNCNAME = lv_ev_system_sncname
         EV_SYSTEM_SNCQOP = lv_ev_system_sncqop
         EV_SNC_ACTIVE = lv_ev_snc_active
         EV_CENTRAL_HOST = lv_ev_central_host
    TABLES
         TT_SERVER_LIST = lt_tt_server_list
    EXCEPTIONS
        GET_SERVER_LIST_FAILED = 1
        GET_INST_NUMBER_FAILED = 2
        PERMISSION_DENIED = 3
. " TMS_CFG_GET_LOCAL_SYSTEM_INFO




ABAP code using 7.40 inline data declarations to call FM TMS_CFG_GET_LOCAL_SYSTEM_INFO

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 SYSNAM FROM TMSMCONF INTO @DATA(ld_ev_system_name).
 
 
 
 
"SELECT single RFCSERV FROM TMSCDES INTO @DATA(ld_ev_central_service).
 
"SELECT single RFCHOST FROM TMSCDES INTO @DATA(ld_ev_message_host).
 
"SELECT single INSTNR FROM TMSCSYS INTO @DATA(ld_ev_inst_number).
 
"SELECT single LANGUAGES FROM TMSCDES INTO @DATA(ld_ev_inst_languages).
 
"SELECT single SAPREL FROM TMSCSYS INTO @DATA(ld_ev_sap_release).
 
"SELECT single RFCUNICODE FROM TMSCDES INTO @DATA(ld_ev_char_length).
 
 
 
 
"SELECT single SYSTXT FROM TMSMCONF INTO @DATA(ld_ev_system_text).
 
 
 
"SELECT single SUPUSR FROM TMSMCONF INTO @DATA(ld_ev_user_name).
 
 
"SELECT single RFCHOST FROM TMSCDES INTO @DATA(ld_ev_system_host).
 
"SELECT single RFCSERV FROM TMSCDES INTO @DATA(ld_ev_system_service).
 
"SELECT single SNCNAME FROM TMSCDES INTO @DATA(ld_ev_system_sncname).
 
"SELECT single SNCQOP FROM TMSCDES INTO @DATA(ld_ev_system_sncqop).
 
"SELECT single SNCALLOW FROM TMSCDES INTO @DATA(ld_ev_snc_active).
 
"SELECT single RFCHOST FROM TMSCDES INTO @DATA(ld_ev_central_host).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!