SAP Function RV_REPORT_SEARCH - List a Number of Reports (From TRDIR) and Select From the List

Parameter Reference Type Length Default Optional Text
FAKTYP T185F-AKTYP C 1 'H' X Activity Category
FAPPL TRDIR-APPL C 1 'V' X
FCLAS TRDIR-CLAS C 4 'CASS' X
FMODUS 0 'S' X Mode in Which Function Module is to Run
FNAMEB TRDIR-NAME C 40 SPACE X Report Search to Report Name ...
FNAMEV TRDIR-NAME C 40 SPACE X Report Search From Report Name ...
FRMAND TRDIR-RMAND C 3 SY-MANDT X
FRSTAT TRDIR-RSTAT C 1 'P' X
FSUBC TRDIR-SUBC C 1 '1' X
FTRDIRREFRESH 0 'X' X Local Memory With Respect to Reports is refr.
RMAND TRDIR-RMAND C 3 SY-MANDT X

Parameter Reference Type Length Text
FNAME TRDIR-NAME C 40 Report Selected From Report List
FTITLE RS38M-REPTI C 70 Report Title


The function module can run in two modes:
  • Mode S

  • The function module searches the reports from RDIR table according tothe specified criteria and lists them including the report title. Fromthis list you can branch to the report documentation and select areport from the list. The system returns this report and thecorresponding report title.
    • Mode D

    • The report name specified in the FNAMEV parameter is searched in RDIRtable. If the report is included in the table, the corresponding reporttitle and the report name are returned in the FTITEL and FNAMEparameters.
      If the report is not included in the table, the FNAME and FTITELparameters are initial.
      The following applies:
      FNAMEB INITIAL ==> FNAMEV = FNAMEB
      FNAMEB < FNAMEV ==> empty report list
      FMODUS can have the following values:
      • E: select the report from TRDIR according to the specifications
      • and expand the local memory
        • S: as mode E and additionally list the reports with the
        • report title "Pick up a Report From the List"
          • D: search the report title of the report name specified in
          • FNAMEV
            The following applies: FNAMEV = FNAMEB.

            Example of mode E and S:
            You require a selection list of reports with status 'P' and 'K' inclass 'CASS'.
            First call of the function module using FMODUS = 'E' and FSTAT = 'P'and FTRDIRREFRESH = 'X':
            The local memory contains the reports with FSTAT = 'P'
            Second call of the function module using FMODUS = 'S' and FSTAT = 'K':
            The local memory now contains the reports with FSTAT = 'P' and FSTAT ='K'.
            In addition the system lists all reports with their report title andoffers them for selection.