SAP Function Modules

LIST_USER_DATA_WITH_PARAM SAP Function module







LIST_USER_DATA_WITH_PARAM 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 LIST_USER_DATA_WITH_PARAM into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SUSR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM LIST_USER_DATA_WITH_PARAM - LIST USER DATA WITH PARAM





CALL FUNCTION 'LIST_USER_DATA_WITH_PARAM' "
* EXPORTING
*   listtype = 'A'              "               List which is to be displayed: U,
*   paraktpas =                 "               Specif. whether only active ones o
*   parauth =                   " usr12-auth    Specification of the authorization
*   parobj =                    " usr12-objct   Specification of the authorization
*   parprof =                   " usr10-profn   Specification of the authorization
*   partype =                   "               Specification of whether only coll
*   paruser =                   " usr04-bname   Specification of the user ID
*   selectflag = 'X'            "               Should debit selection from the li
  IMPORTING
    selauth =                   " usr12-auth    During selection: authorization na
    selected =                  "               = 'X' if values were selected
    selobj =                    " usr12-objct   During selection: object name
    selprof =                   " usr10-profn   During selection: profile name
    seluser =                   " usr04-bname   During selection: user ID
  EXCEPTIONS
    NO_AUTHORISATION = 1        "               No authorization to display the li
    .  "  LIST_USER_DATA_WITH_PARAM

ABAP code example for Function Module LIST_USER_DATA_WITH_PARAM





The ABAP code below is a full code listing to execute function module LIST_USER_DATA_WITH_PARAM 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_selauth  TYPE USR12-AUTH ,
ld_selected  TYPE STRING ,
ld_selobj  TYPE USR12-OBJCT ,
ld_selprof  TYPE USR10-PROFN ,
ld_seluser  TYPE USR04-BNAME .

DATA(ld_listtype) = 'some text here'.
DATA(ld_paraktpas) = 'some text here'.

SELECT single AUTH
FROM USR12
INTO @DATA(ld_parauth).


SELECT single OBJCT
FROM USR12
INTO @DATA(ld_parobj).


SELECT single PROFN
FROM USR10
INTO @DATA(ld_parprof).

DATA(ld_partype) = 'some text here'.

SELECT single BNAME
FROM USR04
INTO @DATA(ld_paruser).

DATA(ld_selectflag) = 'some text here'. . CALL FUNCTION 'LIST_USER_DATA_WITH_PARAM' * EXPORTING * listtype = ld_listtype * paraktpas = ld_paraktpas * parauth = ld_parauth * parobj = ld_parobj * parprof = ld_parprof * partype = ld_partype * paruser = ld_paruser * selectflag = ld_selectflag IMPORTING selauth = ld_selauth selected = ld_selected selobj = ld_selobj selprof = ld_selprof seluser = ld_seluser EXCEPTIONS NO_AUTHORISATION = 1 . " LIST_USER_DATA_WITH_PARAM
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_selauth  TYPE USR12-AUTH ,
ld_listtype  TYPE STRING ,
ld_selected  TYPE STRING ,
ld_paraktpas  TYPE STRING ,
ld_selobj  TYPE USR12-OBJCT ,
ld_parauth  TYPE USR12-AUTH ,
ld_selprof  TYPE USR10-PROFN ,
ld_parobj  TYPE USR12-OBJCT ,
ld_seluser  TYPE USR04-BNAME ,
ld_parprof  TYPE USR10-PROFN ,
ld_partype  TYPE STRING ,
ld_paruser  TYPE USR04-BNAME ,
ld_selectflag  TYPE STRING .

ld_listtype = 'some text here'.
ld_paraktpas = 'some text here'.

SELECT single AUTH
FROM USR12
INTO ld_parauth.


SELECT single OBJCT
FROM USR12
INTO ld_parobj.


SELECT single PROFN
FROM USR10
INTO ld_parprof.

ld_partype = 'some text here'.

SELECT single BNAME
FROM USR04
INTO ld_paruser.

ld_selectflag = 'some text here'.

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 LIST_USER_DATA_WITH_PARAM or its description.