Skip to Content

Creating my own custom a report from t-code rsusr200

hi

I want to make changes to this output of this transaction rsusr200 by inserting a name column on the report shown below.It already has a a username field as you can see so i was need someone to give me the best and easiest way of creating my own similar report but with the name column.

regards

Bryan

pastedImage_5.png (98.1 kB)
pastedImage_6.png (115.1 kB)
pastedImage_7.png (142.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Nov 02, 2015 at 03:18 PM

    You could define your custom report with a selection-screen similar to USMM, using cl_salv_bs_runtime_info you call the standard report and get the internal table back, then you map those data to your internal table, fill your own informations and display the final table.

    Sample:

    CALL METHOD cl_salv_bs_runtime_info=>set

    EXPORTING

    display = abap_false

    metadata = abap_false

    data = abap_true.

    SUBMIT rsusr200

    WITH bname IN bnameclass

    WITH class IN class

    WITH dbcda1 EQ dbcda1

    WITH dtrdat EQ dtrdat

    WITH locked EQ locked

    WITH notvalid EQ notvalid

    WITH unlocked EQ unlocked

    WITH valid EQ valid

    WITH faillog EQ faillog

    WITH succlog EQ succlog

    WITH diaguser EQ diaguser

    WITH sysuser EQ sysuser

    WITH servuser EQ servuser

    WITH refuser EQ refuser

    WITH commuser EQ commuser

    WITH initpass EQ initpass

    WITH defpass EQ defpass

    WITH nopass EQ nopass

    AND RETURN.

    TRY.

    CALL METHOD cl_salv_bs_runtime_info=>get_data_ref

    IMPORTING

    r_data = lr_data.

    ASSIGN lr_data->* TO <inttab>.

    CATCH cx_salv_bs_sc_runtime_info.

    ENDTRY.

    IF <inttab> IS NOT ASSIGNED.

    MESSAGE s002(wusl) DISPLAY LIKE 'E'.

    IF uname IS INITIAL.

    LEAVE PROGRAM.

    ELSE.

    EXIT.

    ENDIF.

    ENDIF.

    cl_salv_bs_runtime_info=>clear_all( ).

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded