GEN_CREATE_USERS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name GEN_CREATE_USERS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ISR_EBPP
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'GEN_CREATE_USERS' "
EXPORTING
* i_username = 'BIDI' " uname
* i_password = 'TEST' " xuncode Password
i_email_addr = " ad_smtpadr E-Mail Address
i_refuser = " uname User Name
it_partner = " genebpp_partner_bukrs_t Partner
i_number_of_users = " int4 Number of Users
. " GEN_CREATE_USERS
The ABAP code below is a full code listing to execute function module GEN_CREATE_USERS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_i_username) = 'Check type of data required'.
DATA(ld_i_password) = 'Check type of data required'.
DATA(ld_i_email_addr) = 'Check type of data required'.
DATA(ld_i_refuser) = 'Check type of data required'.
DATA(ld_it_partner) = 'Check type of data required'.
DATA(ld_i_number_of_users) = 'Check type of data required'. . CALL FUNCTION 'GEN_CREATE_USERS' EXPORTING * i_username = ld_i_username * i_password = ld_i_password i_email_addr = ld_i_email_addr i_refuser = ld_i_refuser it_partner = ld_it_partner i_number_of_users = ld_i_number_of_users . " GEN_CREATE_USERS
IF SY-SUBRC EQ 0. "All OK ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_i_username | TYPE UNAME , |
| ld_i_password | TYPE XUNCODE , |
| ld_i_email_addr | TYPE AD_SMTPADR , |
| ld_i_refuser | TYPE UNAME , |
| ld_it_partner | TYPE GENEBPP_PARTNER_BUKRS_T , |
| ld_i_number_of_users | TYPE INT4 . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name GEN_CREATE_USERS or its description.