SAP TMS_CFG_CHECK_DOMLINK Function Module for









TMS_CFG_CHECK_DOMLINK is a standard tms cfg check domlink 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 check domlink FM, simply by entering the name TMS_CFG_CHECK_DOMLINK into the relevant SAP transaction such as SE37 or SE38.

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



Function TMS_CFG_CHECK_DOMLINK 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_CHECK_DOMLINK'"
EXPORTING
IV_SYSNAME = "TMS: System Name
* IV_DOMAIN = "
* IV_HOST = "Name of target host
* IV_SERV = "Service used (TCP service, SAP System number)

EXCEPTIONS
DOMLINK_EXISTS = 1 INVALID_CONFIG = 2 WAITING_FOR_DOMLINK = 3 NO_DOMLINK_EXISTS = 4 DOMLINK_REQ_RECEIVED = 5
.



IMPORTING Parameters details for TMS_CFG_CHECK_DOMLINK

IV_SYSNAME - TMS: System Name

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

IV_DOMAIN -

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

IV_HOST - Name of target host

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

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

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

EXCEPTIONS details

DOMLINK_EXISTS -

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

INVALID_CONFIG -

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

WAITING_FOR_DOMLINK -

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

NO_DOMLINK_EXISTS -

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

DOMLINK_REQ_RECEIVED -

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

Copy and paste ABAP code example for TMS_CFG_CHECK_DOMLINK 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_iv_sysname  TYPE TMSCSYS-SYSNAM, "   
lv_domlink_exists  TYPE TMSCSYS, "   
lv_iv_domain  TYPE TMSCDOM-DOMNAM, "   
lv_invalid_config  TYPE TMSCDOM, "   
lv_iv_host  TYPE TMSCDES-RFCHOST, "   
lv_waiting_for_domlink  TYPE TMSCDES, "   
lv_iv_serv  TYPE TMSCDES-RFCSERV, "   
lv_no_domlink_exists  TYPE TMSCDES, "   
lv_domlink_req_received  TYPE TMSCDES. "   

  CALL FUNCTION 'TMS_CFG_CHECK_DOMLINK'  "
    EXPORTING
         IV_SYSNAME = lv_iv_sysname
         IV_DOMAIN = lv_iv_domain
         IV_HOST = lv_iv_host
         IV_SERV = lv_iv_serv
    EXCEPTIONS
        DOMLINK_EXISTS = 1
        INVALID_CONFIG = 2
        WAITING_FOR_DOMLINK = 3
        NO_DOMLINK_EXISTS = 4
        DOMLINK_REQ_RECEIVED = 5
. " TMS_CFG_CHECK_DOMLINK




ABAP code using 7.40 inline data declarations to call FM TMS_CFG_CHECK_DOMLINK

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 TMSCSYS INTO @DATA(ld_iv_sysname).
 
 
"SELECT single DOMNAM FROM TMSCDOM INTO @DATA(ld_iv_domain).
 
 
"SELECT single RFCHOST FROM TMSCDES INTO @DATA(ld_iv_host).
 
 
"SELECT single RFCSERV FROM TMSCDES INTO @DATA(ld_iv_serv).
 
 
 


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!