VARIANTS is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter VARIANTS into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RS_VARIANT_CONTENTS CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING REPORT = CALL_REPORT VARIANT = G_VARIANT MOVE_OR_WRITE = 'M' TABLES valutab = lt_params.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = call_report TABLES selection_table = lt_params.
RS_VARIANT_FETCH CALL FUNCTION 'RS_VARIANT_FETCH' EXPORTING function = 'CO26' * REPORT = rkey = ls_varkey submode = space * DYNNR = * INTERNAL_CALL = ' ' IMPORTING * FUNCTION = variant = g_variant TABLES selctab = lt_selctab p_vari = lt_varidescr * P_VARIVDAT = * P_VARIDYN = * P_VDATDYN = EXCEPTIONS variant_name = 1 no_variants = 2 variant_inconsistent = 3 only_background = 4 OTHERS = 5.
RS_VARIANT_SAVE_FROM_SELSCREEN CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN' EXPORTING CURR_REPORT = CALL_REPORT USER_VARI = G_VARIANT IMPORTING VARIANT = L_VARIANT FUNCTION = L_FUNCTION TABLES P_VARI = LT_VARIDESCR.
RS_CHANGE_CREATED_VARIANT CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT' EXPORTING CURR_REPORT = CALL_REPORT CURR_VARIANT = G_VARIANT VARI_DESC = LS_VARI_DESC TABLES VARI_CONTENTS = LT_PARAMS * VARI_TEXT = EXCEPTIONS ILLEGAL_REPORT_OR_VARIANT = 1 ILLEGAL_VARIANTNAME = 2 NOT_AUTHORIZED = 3 NOT_EXECUTED = 4 REPORT_NOT_EXISTENT = 5 REPORT_NOT_SUPPLIED = 6 VARIANT_DOESNT_EXIST = 7 VARIANT_LOCKED = 8 SELECTIONS_NO_MATCH = 9 OTHERS = 10.
RS_VARIANT_FETCH CALL FUNCTION 'RS_VARIANT_FETCH' EXPORTING FUNCTION = 'GET' REPORT = CALL_REPORT RKEY = LC_RKEY SUBMODE = ' ' INTERNAL_CALL = ' ' IMPORTING VARIANT = CV_CVAR TABLES SELCTAB = DUMMY.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = CALL_REPORT TABLES SELECTION_TABLE = LT_PARAMS.
RS_VARIANT_DISPLAY CALL FUNCTION 'RS_VARIANT_DISPLAY' EXPORTING REPORT = CALL_REPORT VARIANT = LV_CVAR ACTION = 'VSHO'.
RS_VARIANT_DELETE CALL FUNCTION 'RS_VARIANT_DELETE' EXPORTING REPORT = 'RIMODGEN' VARIANT = LV_CVAR.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.