BASIS BAPI RFC Used the same way in S/4HANA

BAPI_USER_CREATE1 Create User

Creates a user master record with logon data, address, defaults and user parameters (the counterpart of SU01). Identity management systems and bulk user creation tools call it through RFC. Roles and profiles are not assigned by this BAPI but by separate BAPIs; the call requires authorization object S_USER_GRP and the RETURN table must always be checked.

Function group
SU_USER
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
USERNAMEBAPIBNAME-BAPIBNAMEUser nameYes
LOGONDATABAPILOGONDLogon dataYes
PASSWORDBAPIPWDInitial passwordYes
ADDRESSBAPIADDR3Address dataYes
DEFAULTSBAPIDEFAULDefault settings—
COMPANYBAPIUSCOMPCompany address—
SNCBAPISNCUSNC data—
UCLASSBAPIUCLASSLicense data—
ALIASBAPIALIASUser alias—
GENERATE_PWDBAPIFLAG-BAPIFLAGGenerate password—

Exporting parameters

ParameterTypeDescription
GENERATED_PASSWORDBAPIPWDGenerated password

Tables parameters

ParameterTypeDescriptionRequired
PARAMETERBAPIPARAMUser parameters—
GROUPSBAPIGROUPSUser groups—
RETURNBAPIRET2Return messages—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_USER_CREATE1'
  EXPORTING
    username = lv_username
    logondata = lv_logondata
    password = lv_password
    address = lv_address
  IMPORTING
    generated_password = lv_generated_password
  TABLES
    parameter = lt_parameter
    groups = lt_groups
    return = lt_return.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report