SAP Function Modules

SUSR_SUIM_API_RSUSR200 SAP Function module







SUSR_SUIM_API_RSUSR200 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SUSR_SUIM_API_RSUSR200 into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SUSR_SUIM_APIS
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SUSR_SUIM_API_RSUSR200 - SUSR SUIM API RSUSR200





CALL FUNCTION 'SUSR_SUIM_API_RSUSR200' "
* EXPORTING
*   it_bname =                  " susr_t_range_4_xubname
*   it_class =                  " susr_t_sel_opt_group
*   it_secpol =                 " susr_t_sel_opt_secpol
*   iv_dtrdat =                 " i
*   iv_dbcda1 =                 " i
*   iv_valid = 'X'              " boole_d
*   iv_notvalid = 'X'           " boole_d
*   iv_user_lock =              " suim_lock_sel
*   iv_pwd_lock =               " suim_lock_sel
*   iv_locked =                 " boole_d
*   iv_unlocked =               " boole_d
*   iv_faillog = 'X'            " boole_d
*   iv_succlog = 'X'            " boole_d
*   iv_unused = 'X'             " boole_d
*   iv_diaguser = 'X'           " boole_d
*   iv_commuser = 'X'           " boole_d
*   iv_sysuser = 'X'            " boole_d
*   iv_servuser = 'X'           " boole_d
*   iv_refuser = 'X'            " boole_d
*   iv_defpass = 'X'            " boole_d
*   iv_initpass = 'X'           " boole_d
*   iv_nopass = 'X'             " boole_d
  IMPORTING
    et_users =                  " susr_t_rsusr200_alv
    return =                    " bapiret2_t
  EXCEPTIONS
    WRONG_PARAMETER_SET = 1     "
    .  "  SUSR_SUIM_API_RSUSR200

ABAP code example for Function Module SUSR_SUIM_API_RSUSR200





The ABAP code below is a full code listing to execute function module SUSR_SUIM_API_RSUSR200 including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_et_users  TYPE SUSR_T_RSUSR200_ALV ,
ld_return  TYPE BAPIRET2_T .

DATA(ld_it_bname) = 'Check type of data required'.
DATA(ld_it_class) = 'Check type of data required'.
DATA(ld_it_secpol) = 'Check type of data required'.
DATA(ld_iv_dtrdat) = 'Check type of data required'.
DATA(ld_iv_dbcda1) = 'Check type of data required'.
DATA(ld_iv_valid) = 'Check type of data required'.
DATA(ld_iv_notvalid) = 'Check type of data required'.
DATA(ld_iv_user_lock) = 'Check type of data required'.
DATA(ld_iv_pwd_lock) = 'Check type of data required'.
DATA(ld_iv_locked) = 'Check type of data required'.
DATA(ld_iv_unlocked) = 'Check type of data required'.
DATA(ld_iv_faillog) = 'Check type of data required'.
DATA(ld_iv_succlog) = 'Check type of data required'.
DATA(ld_iv_unused) = 'Check type of data required'.
DATA(ld_iv_diaguser) = 'Check type of data required'.
DATA(ld_iv_commuser) = 'Check type of data required'.
DATA(ld_iv_sysuser) = 'Check type of data required'.
DATA(ld_iv_servuser) = 'Check type of data required'.
DATA(ld_iv_refuser) = 'Check type of data required'.
DATA(ld_iv_defpass) = 'Check type of data required'.
DATA(ld_iv_initpass) = 'Check type of data required'.
DATA(ld_iv_nopass) = 'Check type of data required'. . CALL FUNCTION 'SUSR_SUIM_API_RSUSR200' * EXPORTING * it_bname = ld_it_bname * it_class = ld_it_class * it_secpol = ld_it_secpol * iv_dtrdat = ld_iv_dtrdat * iv_dbcda1 = ld_iv_dbcda1 * iv_valid = ld_iv_valid * iv_notvalid = ld_iv_notvalid * iv_user_lock = ld_iv_user_lock * iv_pwd_lock = ld_iv_pwd_lock * iv_locked = ld_iv_locked * iv_unlocked = ld_iv_unlocked * iv_faillog = ld_iv_faillog * iv_succlog = ld_iv_succlog * iv_unused = ld_iv_unused * iv_diaguser = ld_iv_diaguser * iv_commuser = ld_iv_commuser * iv_sysuser = ld_iv_sysuser * iv_servuser = ld_iv_servuser * iv_refuser = ld_iv_refuser * iv_defpass = ld_iv_defpass * iv_initpass = ld_iv_initpass * iv_nopass = ld_iv_nopass IMPORTING et_users = ld_et_users return = ld_return EXCEPTIONS WRONG_PARAMETER_SET = 1 . " SUSR_SUIM_API_RSUSR200
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_users  TYPE SUSR_T_RSUSR200_ALV ,
ld_it_bname  TYPE SUSR_T_RANGE_4_XUBNAME ,
ld_return  TYPE BAPIRET2_T ,
ld_it_class  TYPE SUSR_T_SEL_OPT_GROUP ,
ld_it_secpol  TYPE SUSR_T_SEL_OPT_SECPOL ,
ld_iv_dtrdat  TYPE I ,
ld_iv_dbcda1  TYPE I ,
ld_iv_valid  TYPE BOOLE_D ,
ld_iv_notvalid  TYPE BOOLE_D ,
ld_iv_user_lock  TYPE SUIM_LOCK_SEL ,
ld_iv_pwd_lock  TYPE SUIM_LOCK_SEL ,
ld_iv_locked  TYPE BOOLE_D ,
ld_iv_unlocked  TYPE BOOLE_D ,
ld_iv_faillog  TYPE BOOLE_D ,
ld_iv_succlog  TYPE BOOLE_D ,
ld_iv_unused  TYPE BOOLE_D ,
ld_iv_diaguser  TYPE BOOLE_D ,
ld_iv_commuser  TYPE BOOLE_D ,
ld_iv_sysuser  TYPE BOOLE_D ,
ld_iv_servuser  TYPE BOOLE_D ,
ld_iv_refuser  TYPE BOOLE_D ,
ld_iv_defpass  TYPE BOOLE_D ,
ld_iv_initpass  TYPE BOOLE_D ,
ld_iv_nopass  TYPE BOOLE_D .

ld_it_bname = 'Check type of data required'.
ld_it_class = 'Check type of data required'.
ld_it_secpol = 'Check type of data required'.
ld_iv_dtrdat = 'Check type of data required'.
ld_iv_dbcda1 = 'Check type of data required'.
ld_iv_valid = 'Check type of data required'.
ld_iv_notvalid = 'Check type of data required'.
ld_iv_user_lock = 'Check type of data required'.
ld_iv_pwd_lock = 'Check type of data required'.
ld_iv_locked = 'Check type of data required'.
ld_iv_unlocked = 'Check type of data required'.
ld_iv_faillog = 'Check type of data required'.
ld_iv_succlog = 'Check type of data required'.
ld_iv_unused = 'Check type of data required'.
ld_iv_diaguser = 'Check type of data required'.
ld_iv_commuser = 'Check type of data required'.
ld_iv_sysuser = 'Check type of data required'.
ld_iv_servuser = 'Check type of data required'.
ld_iv_refuser = 'Check type of data required'.
ld_iv_defpass = 'Check type of data required'.
ld_iv_initpass = 'Check type of data required'.
ld_iv_nopass = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SUSR_SUIM_API_RSUSR200 or its description.