[ABAP] Rollen eines Benutzers im System auflisten

DATA: it_agr_users TYPE STANDARD TABLE OF agr_users.
DATA: o_salv TYPE REF TO cl_salv_table.

PARAMETERS: p_user TYPE agr_users-uname DEFAULT sy-uname.

START-OF-SELECTION.
  SELECT * FROM agr_users INTO TABLE @it_agr_users
    WHERE uname = @p_user
    ORDER BY agr_name.

  cl_salv_table=>factory( IMPORTING
                            r_salv_table = o_salv
                          CHANGING
                            t_table      = it_agr_users ).

  o_salv->display( ).