SAP Function RV_REPORT_VARIANTE_SEARCH - Search a Variant for a Report

Parameter Reference Type Length Default Optional Text
FLANGU SYST-LANGU C 1 SY-LANGU X
FMODE 0 'S' X Mode of Function Module Call
FREPORT TRDIR-NAME C 40 Report for Which Variants Are Searched
FVARIANT RVARC-VARIANT C 14 SPACE X Variants Which Are Created for the Report

Parameter Reference Type Length Text
FVARIANT RVARC-VARIANT C 14 Variants Which Are Created for the Report
FVARTITLE RVART-VTEXT C 30

Exception Text
REPORT_NOT_FOUND Report Was not Found
VARIANTE_NOT_FOUND


The function module works as follows:
Input: report name
Output: variant name and variant text
Procedure:
Check whether the specified report exists
no --> RAISE
yes --> 2.
The function module was called up using variant <> blank
yes --> variant exists --> return variant text
variant does not exist --> RAISE
no --> read and list variants and variant text for the report
Variant was selected from list
Return name and text
End