Ansicht
Dokumentation

BAPI_USER_GETLIST - Search for Users

BAPI_USER_GETLIST - Search for Users

ABAP Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This method offers a generic search for users, depending on the different user attributes. It supports the most important user attributes delivered by the function module BAPI_USER_GET_DETAIL:

PARAMETER FIELD Permitted LOW Values
USERNAME   <user name>
LOGONDATA GLTGV, GLTGB, USTYP, CLASS, ACCNT, TZONE, CODVN, UFLAG (not in BAPI_USER_GET_DETAIL, that shows this information in parameter ISLOCKED), SECURITY_POLICY (in accordance with the field type)
DEFAULTS SPLD, SPLG, SPDB, SPDA, DATFM, DCPFM, LANGU, KOSTL, START_MENU, TIMEFM (in accordance with the field type)
REF_USER REF_USER <user name>
ALIAS USERALIAS <user alias>
GROUPS USERGROUP <user group>
PROFILES BAPIPROF <profile name>
LOCPROFILES SUBSYSTEM, PROFILE (in accordance with the field type)
ACTIVITYGROUPS AGR_NAME, FROM_DAT, TO_DAT (in accordance with the field type)
LOCACTGROUPS SUBSYSTEM, AGR_NAME, FROM_DAT, TO_DAT (in accordance with the field type)
ADDRESS FIRSTNAME, LASTNAME, DEPARTMENT, INHOUSE_ML, FUNCTION, BUILDING_P, BUILDING, ROOM_NO_P, TEL1_EXT, TEL1_NUMBR, FAX_EXTENS, FAX_NUMBER, E_MAIL (in accordance with the field type)
COMPANY COMPANY <cross-system key of company address>
LASTMODIFIED MODDATE, MODTIME, MODIFIER (in accordance with the field type)
ISLOCKED LOCAL_LOCK, GLOB_LOCK, WRNG_LOGON, NO_USER_PW 'L'
SYSTEM SUBSYSTEM <logical system name>
IDENTITY IDENTITY_UUID, BPPERSON (in accordance with the field type)
ADMINDATA ANAME, ERDAT, TRDAT, CUA_LOCAL_USER (in accordance with the field type)
TECH_USER TECH_INDICATOR, IDADTYPE (in accordance with the field type)

Example

Notes

You can transfer the selection criteria either in table SELECTION_RANGE or in table SELECTION_EXP. If the SELECTION_RANGE table is filled, the SELECTION_EXP table is not used.

Caution
The possible specifications in the table SELECTION_RANGE and SELECTION_EXP are very restrictive.

  1. Table SELECTION_EXP:
  • In the first row, only the logical operator in field LOGOP and the number of following rows in field ARITY are evaluated.
  • If you use the AND operator, you cannot specify more than one identical field for the same parameter. The result list would then be empty.
  1. For both tables:
  • Only the values "I", "EQ", and "L" are supported as field values for SIGN, OPTION, and LOW for the parameter ISLOCKED. All other values do not lead to the expected results. For very general queries, for example, to find all unlocked or all locked users, it is better to use the following entries in the SELECTION_RANGE table:
  • For all unlocked users:
    PARAMETER FIELD S OP LOW
    LOGONDATA UFLAG I EQ 0

  • For all locked users:
    PARAMETER FIELD S OP LOW
    LOGONDATA UFLAG I NE 0

  • You cannot combine the fields MODDATE and MODTIME for the parameter LAST_MODIFIED. For example, it is not possible to find all users that were changed after 05/01/2005 at 12:15. You either have to find all users that were modified after 05/01/2005 (This selection is the only meaningful one for this example.), to find all users that were changed after 12:15 (regardless of the day on which they were modified).

Further information





Parameters

MAX_ROWS
RETURN
ROWS
SELECTION_EXP
SELECTION_RANGE
USERLIST
WITH_USERNAME

Exceptions

Function Group

SU_USER

General Data in Customer Master   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 6501 Date: 20240523 Time: 154724     sap01-206 ( 61 ms )