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

BAPI_USER_CHANGE Change User

Changes the logon data, address, defaults, password or parameters of an existing user. Identity management and user synchronization interfaces use it instead of SU01 changes. Mark the fields with 'X' in the matching …X structure (LOGONDATAX, ADDRESSX, etc.) for every structure you change; it requires S_USER_GRP authorization and the RETURN table must be checked.

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

Importing parameters

ParameterTypeDescriptionRequired
USERNAMEBAPIBNAME-BAPIBNAMEUser nameYes
LOGONDATABAPILOGONDLogon data—
LOGONDATAXBAPILOGONXLogon data change flags—
DEFAULTSBAPIDEFAULDefault settings—
DEFAULTSXBAPIDEFAXDefault settings change flags—
ADDRESSBAPIADDR3Address data—
ADDRESSXBAPIADDR3XAddress change flags—
COMPANYBAPIUSCOMPCompany address—
PASSWORDBAPIPWDNew password—
PASSWORDXBAPIPWDXPassword change flag—
PRODUCTIVE_PWDBAPIFLAG-BAPIFLAGSet password as productive password—
GENERATE_PWDBAPIFLAG-BAPIFLAGGenerate password—
SNCBAPISNCUSNC data—
UCLASSBAPIUCLASSLicense data—
ALIASBAPIALIASUser alias—

Exporting parameters

ParameterTypeDescription
GENERATED_PASSWORDBAPIPWDGenerated password

Tables parameters

ParameterTypeDescriptionRequired
PARAMETERBAPIPARAMUser parameters—
GROUPSBAPIGROUPSUser groups—
RETURNBAPIRET2Return messagesYes

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_CHANGE'
  EXPORTING
    username = lv_username
  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