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

BAPI_USER_GET_DETAIL Read User Details

Returns a user's logon data, address, lock status, last change information, assigned roles and profiles. Authorization audit reports, user lists and the read steps of identity management systems use it. Read roles from ACTIVITYGROUPS and profiles from PROFILES; if the user does not exist, RETURN contains an error message.

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

Importing parameters

ParameterTypeDescriptionRequired
USERNAMEBAPIBNAME-BAPIBNAMEUser nameYes
CACHE_RESULTSFLAG_XCache results—

Exporting parameters

ParameterTypeDescription
LOGONDATABAPILOGONDLogon data
DEFAULTSBAPIDEFAULDefault settings
ADDRESSBAPIADDR3Address data
COMPANYBAPIUSCOMPCompany address
SNCBAPISNCUSNC data
REF_USERBAPIREFUSReference user
ALIASBAPIALIASUser alias
UCLASSBAPIUCLASSLicense data
LASTMODIFIEDBAPIMODDATLast change information
ISLOCKEDBAPISLOCKDLock status
IDENTITYBAPIIDENTITYIdentity data
ADMINDATABAPIUSERADMINAdministration data
DESCRIPTIONBAPIUSDESCUser description

Tables parameters

ParameterTypeDescriptionRequired
PARAMETERBAPIPARAMUser parameters—
PROFILESBAPIPROFAssigned profiles—
ACTIVITYGROUPSBAPIAGRAssigned roles—
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_GET_DETAIL'
  EXPORTING
    username = lv_username
  IMPORTING
    logondata = lv_logondata
    defaults = lv_defaults
    address = lv_address
    company = lv_company
    snc = lv_snc
    ref_user = lv_ref_user
    alias = lv_alias
    uclass = lv_uclass
    lastmodified = lv_lastmodified
    islocked = lv_islocked
  TABLES
    parameter = lt_parameter
    profiles = lt_profiles
    activitygroups = lt_activitygroups
    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