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









RV_REPORT_SEARCH is a standard rv report search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for List a Number of Reports (From TRDIR) and Select From the List processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rv report search FM, simply by entering the name RV_REPORT_SEARCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: V43M
Program Name: SAPLV43M
Main Program: SAPLV43M
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RV_REPORT_SEARCH pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RV_REPORT_SEARCH'"List a Number of Reports (From TRDIR) and Select From the List
EXPORTING
* FAPPL = 'V' "
* FTRDIRREFRESH = 'X' "Local Memory With Respect to Reports is refr.
* FAKTYP = 'H' "Activity Category
* FCLAS = 'CASS' "
* FMODUS = 'S' "Mode in Which Function Module is to Run
* FNAMEB = ' ' "Report Search to Report Name ...
* FNAMEV = ' ' "Report Search From Report Name ...
* FRMAND = SY-MANDT "
* FRSTAT = 'P' "
* FSUBC = '1' "
* RMAND = SY-MANDT "

IMPORTING
FNAME = "Report Selected From Report List
FTITLE = "Report Title
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV43M_007 User Exit to Supply LIS Data

IMPORTING Parameters details for RV_REPORT_SEARCH

FAPPL -

Data type: TRDIR-APPL
Default: 'V'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FTRDIRREFRESH - Local Memory With Respect to Reports is refr.

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FAKTYP - Activity Category

Data type: T185F-AKTYP
Default: 'H'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FCLAS -

Data type: TRDIR-CLAS
Default: 'CASS'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FMODUS - Mode in Which Function Module is to Run

Data type:
Default: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FNAMEB - Report Search to Report Name ...

Data type: TRDIR-NAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FNAMEV - Report Search From Report Name ...

Data type: TRDIR-NAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FRMAND -

Data type: TRDIR-RMAND
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FRSTAT -

Data type: TRDIR-RSTAT
Default: 'P'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FSUBC -

Data type: TRDIR-SUBC
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RMAND -

Data type: TRDIR-RMAND
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RV_REPORT_SEARCH

FNAME - Report Selected From Report List

Data type: TRDIR-NAME
Optional: No
Call by Reference: No ( called with pass by value option)

FTITLE - Report Title

Data type: RS38M-REPTI
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RV_REPORT_SEARCH Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_fappl  TYPE TRDIR-APPL, "   'V'
lv_fname  TYPE TRDIR-NAME, "   
lv_ftrdirrefresh  TYPE TRDIR, "   'X'
lv_faktyp  TYPE T185F-AKTYP, "   'H'
lv_fclas  TYPE TRDIR-CLAS, "   'CASS'
lv_ftitle  TYPE RS38M-REPTI, "   
lv_fmodus  TYPE RS38M, "   'S'
lv_fnameb  TYPE TRDIR-NAME, "   SPACE
lv_fnamev  TYPE TRDIR-NAME, "   SPACE
lv_frmand  TYPE TRDIR-RMAND, "   SY-MANDT
lv_frstat  TYPE TRDIR-RSTAT, "   'P'
lv_fsubc  TYPE TRDIR-SUBC, "   '1'
lv_rmand  TYPE TRDIR-RMAND. "   SY-MANDT

  CALL FUNCTION 'RV_REPORT_SEARCH'  "List a Number of Reports (From TRDIR) and Select From the List
    EXPORTING
         FAPPL = lv_fappl
         FTRDIRREFRESH = lv_ftrdirrefresh
         FAKTYP = lv_faktyp
         FCLAS = lv_fclas
         FMODUS = lv_fmodus
         FNAMEB = lv_fnameb
         FNAMEV = lv_fnamev
         FRMAND = lv_frmand
         FRSTAT = lv_frstat
         FSUBC = lv_fsubc
         RMAND = lv_rmand
    IMPORTING
         FNAME = lv_fname
         FTITLE = lv_ftitle
. " RV_REPORT_SEARCH




ABAP code using 7.40 inline data declarations to call FM RV_REPORT_SEARCH

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single APPL FROM TRDIR INTO @DATA(ld_fappl).
DATA(ld_fappl) = 'V'.
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_fname).
 
DATA(ld_ftrdirrefresh) = 'X'.
 
"SELECT single AKTYP FROM T185F INTO @DATA(ld_faktyp).
DATA(ld_faktyp) = 'H'.
 
"SELECT single CLAS FROM TRDIR INTO @DATA(ld_fclas).
DATA(ld_fclas) = 'CASS'.
 
"SELECT single REPTI FROM RS38M INTO @DATA(ld_ftitle).
 
DATA(ld_fmodus) = 'S'.
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_fnameb).
DATA(ld_fnameb) = ' '.
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_fnamev).
DATA(ld_fnamev) = ' '.
 
"SELECT single RMAND FROM TRDIR INTO @DATA(ld_frmand).
DATA(ld_frmand) = SY-MANDT.
 
"SELECT single RSTAT FROM TRDIR INTO @DATA(ld_frstat).
DATA(ld_frstat) = 'P'.
 
"SELECT single SUBC FROM TRDIR INTO @DATA(ld_fsubc).
DATA(ld_fsubc) = '1'.
 
"SELECT single RMAND FROM TRDIR INTO @DATA(ld_rmand).
DATA(ld_rmand) = SY-MANDT.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!