SAP TMS_CFG_CREATE_USER_TMSADM Function Module for
TMS_CFG_CREATE_USER_TMSADM is a standard tms cfg create user tmsadm 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 create user tmsadm FM, simply by entering the name TMS_CFG_CREATE_USER_TMSADM 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_CREATE_USER_TMSADM 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_CREATE_USER_TMSADM'".
EXPORTING
* IV_TMSADM = "
* IV_PASSWORD = "
* IV_PROFILE = "
* IV_BATCH = 'X' "
* IV_CONTEXT = "
IMPORTING
EV_TMSADM = "
EV_PASSWORD = "
EXCEPTIONS
INVALID_USER_NAME = 1 CREATE_TMSADM_FAILED = 2 CHECK_RFC_AUTHORITY = 3
IMPORTING Parameters details for TMS_CFG_CREATE_USER_TMSADM
IV_TMSADM -
Data type: STMSMUSER-USERNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PASSWORD -
Data type: STMSMUSER-PASSWORDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PROFILE -
Data type: STMSMUSER-PROFILEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_BATCH -
Data type: STMS_FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CONTEXT -
Data type: TMSALOG-CONTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TMS_CFG_CREATE_USER_TMSADM
EV_TMSADM -
Data type: STMSMUSER-USERNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EV_PASSWORD -
Data type: STMSMUSER-PASSWORDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_USER_NAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CREATE_TMSADM_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHECK_RFC_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TMS_CFG_CREATE_USER_TMSADM 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_tmsadm | TYPE STMSMUSER-USERNAME, " | |||
| lv_iv_tmsadm | TYPE STMSMUSER-USERNAME, " | |||
| lv_invalid_user_name | TYPE STMSMUSER, " | |||
| lv_ev_password | TYPE STMSMUSER-PASSWORD, " | |||
| lv_iv_password | TYPE STMSMUSER-PASSWORD, " | |||
| lv_create_tmsadm_failed | TYPE STMSMUSER, " | |||
| lv_iv_profile | TYPE STMSMUSER-PROFILE, " | |||
| lv_check_rfc_authority | TYPE STMSMUSER, " | |||
| lv_iv_batch | TYPE STMS_FLAG, " 'X' | |||
| lv_iv_context | TYPE TMSALOG-CONTEXT. " |
|   CALL FUNCTION 'TMS_CFG_CREATE_USER_TMSADM' " |
| EXPORTING | ||
| IV_TMSADM | = lv_iv_tmsadm | |
| IV_PASSWORD | = lv_iv_password | |
| IV_PROFILE | = lv_iv_profile | |
| IV_BATCH | = lv_iv_batch | |
| IV_CONTEXT | = lv_iv_context | |
| IMPORTING | ||
| EV_TMSADM | = lv_ev_tmsadm | |
| EV_PASSWORD | = lv_ev_password | |
| EXCEPTIONS | ||
| INVALID_USER_NAME = 1 | ||
| CREATE_TMSADM_FAILED = 2 | ||
| CHECK_RFC_AUTHORITY = 3 | ||
| . " TMS_CFG_CREATE_USER_TMSADM | ||
ABAP code using 7.40 inline data declarations to call FM TMS_CFG_CREATE_USER_TMSADM
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 USERNAME FROM STMSMUSER INTO @DATA(ld_ev_tmsadm). | ||||
| "SELECT single USERNAME FROM STMSMUSER INTO @DATA(ld_iv_tmsadm). | ||||
| "SELECT single PASSWORD FROM STMSMUSER INTO @DATA(ld_ev_password). | ||||
| "SELECT single PASSWORD FROM STMSMUSER INTO @DATA(ld_iv_password). | ||||
| "SELECT single PROFILE FROM STMSMUSER INTO @DATA(ld_iv_profile). | ||||
| DATA(ld_iv_batch) | = 'X'. | |||
| "SELECT single CONTEXT FROM TMSALOG INTO @DATA(ld_iv_context). | ||||
Search for further information about these or an SAP related objects