Fonction SAP BAPI_USER_CREATE1 - Create users

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESS BAPIADDR3 u 2031 Address Data
ALIAS BAPIALIAS u 40 X User Name Alias
COMPANY BAPIUSCOMP u 42 X Company for Company Address
DEFAULTS BAPIDEFAUL u 70 X Structure with User Defaults
EX_ADDRESS BAPIADDR3-PERS_NO C 10 X do not use
FORCE_SYSTEM_ASSIGNMENT BAPIFLAG-BAPIFLAG C 1 X Always Perform System Assignment (Even if Called in the Central System)
LOGONDATA BAPILOGOND u 339 Structure with Logon Data
NAME_IN BAPIBNAME u 12 X User Name (Suggestion)
PASSWORD BAPIPWD u 40 Password
REF_USER BAPIREFUS u 12 X Reference user for rights
SELF_REGISTER BAPIFLAG-BAPIFLAG C 1 SPACE X Create for Self-Registration
SNC BAPISNCU u 256 X Secure Network Communication data
UCLASS BAPIUCLASS u 45 X License-Related User Classification
USERNAME BAPIBNAME-BAPIBNAME C 12 User Name

Paramètre Reférence Long. Facultatif Description
ADDCOMREM BAPICOMREM 60 X
ADDFAX BAPIADFAX 143 X
ADDPAG BAPIADPAG 136 X
ADDPRT BAPIADPRT 40 X
ADDRFC BAPIADRFC 69 X
ADDRML BAPIADRML 63 X
ADDSMTP BAPIADSMTP 300 X
ADDSSF BAPIADSSF 2391 X
ADDTEL BAPIADTEL 142 X
ADDTLX BAPIADTLX 72 X
ADDTTX BAPIADTTX 72 X
ADDURI BAPIADURI 2219 X
ADDX400 BAPIADX400 948 X
EXTIDHEAD BAPIUSEXTIDHEAD 36 X Header Data for External ID of a User
EXTIDPART BAPIUSEXTIDPART 234 X Part of a Long Field for the External ID of a User
GROUPS BAPIGROUPS 12 X Transfer Structure for a List of User Groups
PARAMETER BAPIPARAM 98 X Table with User Parameters
PARAMETER1 BAPIPARAM1 120 X Replaces parameter (length 18 -> 40)
RETURN BAPIRET2 548 X Return Structure

Functionality
A new user with name USERNAME and specified attributes is created.
The initial password and last name in the address must be transferred.

Notes
This method is fully integrated in central user administration.
When the method is called in a system integrated in central usermaintenance, the method does the following:
When the method is called in the central system of this system group,user distribution is triggered.
Entries for fields that cannot be maintained in the system are ignored.If, for example, fields that can only be maintained locally aretransferred, they will be ignored in the central system when thismethod is called.
If you want to assign profiles or activity groups to users in thesystem, use the methods ProfilesAssign and ActivitygroupsAssign.
INCLUDE ADDR_TABL_BAPIADDR3 OBJECT DOKU ID TX

Description
Alternative logon name for the user. This can be used in some logonscenarios instead of the SAP user name.
INCLUDE SU_COMPANY OBJECT DOKU ID TX
INCLUDE SU_DEFAULTS OBJECT DOKU ID TX

Description
This parameter is obsolete.
Do not use it any longer.

Description
This indicator is only relevant in a CUA landscape.
If it is set, a system assignment for the current system is forced, evenif it is the central system.
If it is not set, a system assignment is only made if the module iscalled in the child system.
INCLUDE SU_LOGONDATA OBJECT DOKU ID TX LANGUAGE EN

Description
SAP user name for the user to be created.
Fill either this field or the field USERNAME. If both fields are filled,the content of USERNAME is ignored.

Description
Logon password (plaintext)

Description
Specifies an existing user whose roles are to apply for the user to becreated. The assignment is only created using the user name; that is,the roles are not copied to the new user to be created.
By using the reference user, you can map many users of the same type toa small number of users for role administration, which has a positiveeffect on the runtime behavior of role maintenance.

Description
If this indicator is set, it is not necessary to change thenewly-created user's password at the next logon. This indicator shouldonly be used when creating users in self-registration scenarios.

Value range

Default
SPACE
INCLUDE SU_SNC OBJECT DOKU ID TX

Description
User classification in accordance with the license agreement betweenthe customer and SAP.
The import paramter UCLASS should be used if the function is called ina child system of a central user administration (CUA) or in a systemwithout a CUA connection. The table parameter UCLASSSYS is to be usedin a central system of a CUA.
LIC_TYPE is the user type (values from table TUTYPA or TUTYP).
SPEC_VERS is a possible special version (values from table TUZUS).
COUNTRY_SURCHARGE is a possible country surcharge (value range between-100% and +999%).
You can only ever specify a special version or a country surcharge,never both. The following must therefore apply: SPEC_VERS = '00' orCOUNTRY_SURCHARGE = 0.
SUBSTITUTE_FROM and SUBSTITUTE_UNTIL specify the time period for whicha user is a subsitute (user type '04').
SYSID, CLIENT, and BNAME_CHARGEABLE point to the chargeable user for theuser types Substitute ('04') or Multi-Client/Multi-System ('11').
INCLUDE SU_USERNAME OBJECT DOKU ID TX LANGUAGE DE

Description
BAPIUSEXTIDHEAD

Description
BAPIUSEXTIDPART
INCLUDE SU_PARAMETER OBJECT DOKU ID TX
INCLUDE SU_RETURN OBJECT DOKU ID TX

1602902Password Not Set to Productive on User Creation
1393313License data is not provisioned in CUA system - New request
1148023Data security for RFC trace files and RFC debugging
830493BAPI_USER_CREATE1 in scenarios for self-registration