SAP TMS_SRV_READ_CONFIGURATION Function Module for
TMS_SRV_READ_CONFIGURATION is a standard tms srv read configuration 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 srv read configuration FM, simply by entering the name TMS_SRV_READ_CONFIGURATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: TMSS
Program Name: SAPLTMSS
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TMS_SRV_READ_CONFIGURATION 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_SRV_READ_CONFIGURATION'".
EXPORTING
IV_SERVER = "
* IV_INITIALIZE = "
IMPORTING
EV_DOMAIN = "TMS: Transport Domain
EV_MODUSR = "
EV_SYSTXT = "
EV_STATUS = "
EV_USERROLES = "General Flag
EV_SYSTEM = "
EV_RFCHOST = "
EV_RFCCLIENT = "
EV_RFCSERV = "
EV_RFCUSER = "
EV_RFCAUTH = "
EV_MODDAT = "
EV_MODTIM = "
EXCEPTIONS
TMS_IS_NOT_ACTIVE = 1 SERVER_NOT_DEFINED = 2 UNKNOWN_SERVER = 3 INTERNAL_ERROR = 4
IMPORTING Parameters details for TMS_SRV_READ_CONFIGURATION
IV_SERVER -
Data type: TMSSRV-SERVEROptional: No
Call by Reference: No ( called with pass by value option)
IV_INITIALIZE -
Data type: STMSC-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TMS_SRV_READ_CONFIGURATION
EV_DOMAIN - TMS: Transport Domain
Data type: TMSDOMNAMOptional: No
Call by Reference: No ( called with pass by value option)
EV_MODUSR -
Data type: AS4USEROptional: No
Call by Reference: Yes
EV_SYSTXT -
Data type: AS4TEXTOptional: No
Call by Reference: No ( called with pass by value option)
EV_STATUS -
Data type: CHAR1Optional: No
Call by Reference: Yes
EV_USERROLES - General Flag
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
EV_SYSTEM -
Data type: TMSSYSNAMOptional: No
Call by Reference: No ( called with pass by value option)
EV_RFCHOST -
Data type: RFCHOSTOptional: No
Call by Reference: No ( called with pass by value option)
EV_RFCCLIENT -
Data type: RFCCLIENTOptional: No
Call by Reference: No ( called with pass by value option)
EV_RFCSERV -
Data type: RFCSERVICEOptional: No
Call by Reference: No ( called with pass by value option)
EV_RFCUSER -
Data type: RFCUSEROptional: No
Call by Reference: No ( called with pass by value option)
EV_RFCAUTH -
Data type: RFCAUTHOptional: No
Call by Reference: No ( called with pass by value option)
EV_MODDAT -
Data type: SYDATUMOptional: No
Call by Reference: Yes
EV_MODTIM -
Data type: SYUZEITOptional: No
Call by Reference: Yes
EXCEPTIONS details
TMS_IS_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SERVER_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNKNOWN_SERVER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TMS_SRV_READ_CONFIGURATION 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_domain | TYPE TMSDOMNAM, " | |||
| lv_iv_server | TYPE TMSSRV-SERVER, " | |||
| lv_tms_is_not_active | TYPE TMSSRV, " | |||
| lv_ev_modusr | TYPE AS4USER, " | |||
| lv_ev_systxt | TYPE AS4TEXT, " | |||
| lv_ev_status | TYPE CHAR1, " | |||
| lv_ev_userroles | TYPE FLAG, " | |||
| lv_ev_system | TYPE TMSSYSNAM, " | |||
| lv_iv_initialize | TYPE STMSC-FLAG, " | |||
| lv_server_not_defined | TYPE STMSC, " | |||
| lv_ev_rfchost | TYPE RFCHOST, " | |||
| lv_unknown_server | TYPE RFCHOST, " | |||
| lv_ev_rfcclient | TYPE RFCCLIENT, " | |||
| lv_internal_error | TYPE RFCCLIENT, " | |||
| lv_ev_rfcserv | TYPE RFCSERVICE, " | |||
| lv_ev_rfcuser | TYPE RFCUSER, " | |||
| lv_ev_rfcauth | TYPE RFCAUTH, " | |||
| lv_ev_moddat | TYPE SYDATUM, " | |||
| lv_ev_modtim | TYPE SYUZEIT. " |
|   CALL FUNCTION 'TMS_SRV_READ_CONFIGURATION' " |
| EXPORTING | ||
| IV_SERVER | = lv_iv_server | |
| IV_INITIALIZE | = lv_iv_initialize | |
| IMPORTING | ||
| EV_DOMAIN | = lv_ev_domain | |
| EV_MODUSR | = lv_ev_modusr | |
| EV_SYSTXT | = lv_ev_systxt | |
| EV_STATUS | = lv_ev_status | |
| EV_USERROLES | = lv_ev_userroles | |
| EV_SYSTEM | = lv_ev_system | |
| EV_RFCHOST | = lv_ev_rfchost | |
| EV_RFCCLIENT | = lv_ev_rfcclient | |
| EV_RFCSERV | = lv_ev_rfcserv | |
| EV_RFCUSER | = lv_ev_rfcuser | |
| EV_RFCAUTH | = lv_ev_rfcauth | |
| EV_MODDAT | = lv_ev_moddat | |
| EV_MODTIM | = lv_ev_modtim | |
| EXCEPTIONS | ||
| TMS_IS_NOT_ACTIVE = 1 | ||
| SERVER_NOT_DEFINED = 2 | ||
| UNKNOWN_SERVER = 3 | ||
| INTERNAL_ERROR = 4 | ||
| . " TMS_SRV_READ_CONFIGURATION | ||
ABAP code using 7.40 inline data declarations to call FM TMS_SRV_READ_CONFIGURATION
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 SERVER FROM TMSSRV INTO @DATA(ld_iv_server). | ||||
| "SELECT single FLAG FROM STMSC INTO @DATA(ld_iv_initialize). | ||||
Search for further information about these or an SAP related objects