Program to get user details

report  zanil. * Job: Retrieving user details. tables: usr21. select–options: s_usr for usr21–bname         default sy–uname obligatory                        no intervals. data: i_bapiret2  type table of bapiret2       with header line,       wt_address  type table of bapiaddr3,       wa_address  type bapiaddr3,       ls_return   type bapiret2. loop at s_usr. call function ‘BAPI_USER_GET_DETAIL’   exporting     username = s_usr–low   importing     address  = wa_address   tables     return   = i_bapiret2. read table i_bapiret2 into ls_return   with key type = ‘E’. if sy–subrc eq 0.    message ls_return–message type ‘W’.    exit. else.    append wa_address to wt_address. endif. endloop. * perform alv “if needed