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

Function TMS_CI_SEND_COMMAND 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_CI_SEND_COMMAND'".
EXPORTING
IV_TARSYSTEM = "Target System
* IV_SUPER_ALLOWED = 'X' "
* IS_BATCHCTL = "
* IV_TARDOMAIN = "
IV_SERVICE = "
IV_COMMAND = "
* IV_TARCLIENT = "Target Client
* IV_LOCALRFC = 'X' "CI: Execution Mode
* IV_EXECMODE = "Execution mode
* IV_CONTEXT = "
* IV_ACCESS = "
IMPORTING
EV_SUPER_USED = "
ES_EXCEPTION = "
EXCEPTIONS
ALERT = 1
IMPORTING Parameters details for TMS_CI_SEND_COMMAND
IV_TARSYSTEM - Target System
Data type: TMSCSYS-SYSNAMOptional: No
Call by Reference: No ( called with pass by value option)
IV_SUPER_ALLOWED -
Data type: STMSC-SUPERUSERDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_BATCHCTL -
Data type: STMSCBATCHOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_TARDOMAIN -
Data type: TMSCSYS-DOMNAMOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SERVICE -
Data type: STMSC-SERVICEOptional: No
Call by Reference: No ( called with pass by value option)
IV_COMMAND -
Data type: STMSC-COMMANDOptional: No
Call by Reference: No ( called with pass by value option)
IV_TARCLIENT - Target Client
Data type: SY-MANDTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LOCALRFC - CI: Execution Mode
Data type: FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_EXECMODE - Execution mode
Data type: STMSC-EXECMODEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CONTEXT -
Data type: STMSC-CONTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ACCESS -
Data type: STMSC-ACCESSTOKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TMS_CI_SEND_COMMAND
EV_SUPER_USED -
Data type: STMSC-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
ES_EXCEPTION -
Data type: STMSCALERTOptional: No
Call by Reference: Yes
EXCEPTIONS details
ALERT - Error occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TMS_CI_SEND_COMMAND 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_alert | TYPE STRING, " | |||
| lv_iv_tarsystem | TYPE TMSCSYS-SYSNAM, " | |||
| lv_ev_super_used | TYPE STMSC-FLAG, " | |||
| lv_iv_super_allowed | TYPE STMSC-SUPERUSER, " 'X' | |||
| lv_is_batchctl | TYPE STMSCBATCH, " | |||
| lv_es_exception | TYPE STMSCALERT, " | |||
| lv_iv_tardomain | TYPE TMSCSYS-DOMNAM, " | |||
| lv_iv_service | TYPE STMSC-SERVICE, " | |||
| lv_iv_command | TYPE STMSC-COMMAND, " | |||
| lv_iv_tarclient | TYPE SY-MANDT, " | |||
| lv_iv_localrfc | TYPE FLAG, " 'X' | |||
| lv_iv_execmode | TYPE STMSC-EXECMODE, " | |||
| lv_iv_context | TYPE STMSC-CONTEXT, " | |||
| lv_iv_access | TYPE STMSC-ACCESSTOK. " |
|   CALL FUNCTION 'TMS_CI_SEND_COMMAND' " |
| EXPORTING | ||
| IV_TARSYSTEM | = lv_iv_tarsystem | |
| IV_SUPER_ALLOWED | = lv_iv_super_allowed | |
| IS_BATCHCTL | = lv_is_batchctl | |
| IV_TARDOMAIN | = lv_iv_tardomain | |
| IV_SERVICE | = lv_iv_service | |
| IV_COMMAND | = lv_iv_command | |
| IV_TARCLIENT | = lv_iv_tarclient | |
| IV_LOCALRFC | = lv_iv_localrfc | |
| IV_EXECMODE | = lv_iv_execmode | |
| IV_CONTEXT | = lv_iv_context | |
| IV_ACCESS | = lv_iv_access | |
| IMPORTING | ||
| EV_SUPER_USED | = lv_ev_super_used | |
| ES_EXCEPTION | = lv_es_exception | |
| EXCEPTIONS | ||
| ALERT = 1 | ||
| . " TMS_CI_SEND_COMMAND | ||
ABAP code using 7.40 inline data declarations to call FM TMS_CI_SEND_COMMAND
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_tarsystem). | ||||
| "SELECT single FLAG FROM STMSC INTO @DATA(ld_ev_super_used). | ||||
| "SELECT single SUPERUSER FROM STMSC INTO @DATA(ld_iv_super_allowed). | ||||
| DATA(ld_iv_super_allowed) | = 'X'. | |||
| "SELECT single DOMNAM FROM TMSCSYS INTO @DATA(ld_iv_tardomain). | ||||
| "SELECT single SERVICE FROM STMSC INTO @DATA(ld_iv_service). | ||||
| "SELECT single COMMAND FROM STMSC INTO @DATA(ld_iv_command). | ||||
| "SELECT single MANDT FROM SY INTO @DATA(ld_iv_tarclient). | ||||
| DATA(ld_iv_localrfc) | = 'X'. | |||
| "SELECT single EXECMODE FROM STMSC INTO @DATA(ld_iv_execmode). | ||||
| "SELECT single CONTEXT FROM STMSC INTO @DATA(ld_iv_context). | ||||
| "SELECT single ACCESSTOK FROM STMSC INTO @DATA(ld_iv_access). | ||||
Search for further information about these or an SAP related objects