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
| Parameter | Type | Description | Required |
|---|---|---|---|
| USERNAME | BAPIBNAME-BAPIBNAME | User name | Yes |
| CACHE_RESULTS | FLAG_X | Cache results | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| LOGONDATA | BAPILOGOND | Logon data |
| DEFAULTS | BAPIDEFAUL | Default settings |
| ADDRESS | BAPIADDR3 | Address data |
| COMPANY | BAPIUSCOMP | Company address |
| SNC | BAPISNCU | SNC data |
| REF_USER | BAPIREFUS | Reference user |
| ALIAS | BAPIALIAS | User alias |
| UCLASS | BAPIUCLASS | License data |
| LASTMODIFIED | BAPIMODDAT | Last change information |
| ISLOCKED | BAPISLOCKD | Lock status |
| IDENTITY | BAPIIDENTITY | Identity data |
| ADMINDATA | BAPIUSERADMIN | Administration data |
| DESCRIPTION | BAPIUSDESC | User description |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| PARAMETER | BAPIPARAM | User parameters | — |
| PROFILES | BAPIPROF | Assigned profiles | — |
| ACTIVITYGROUPS | BAPIAGR | Assigned roles | — |
| GROUPS | BAPIGROUPS | User groups | — |
| RETURN | BAPIRET2 | Return messages | Yes |
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.