RSAQ_VARIANT_ADJUST is a standard Executable ABAP Report 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 RSAQ_VARIANT_ADJUST 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.
Selection Text: P_NEW = New -> Old
Selection Text: P_OLD = Old -> New
Selection Text: P_WS = Global Query Area
Selection Text: P_BGNAME = D .
Selection Text: P_QUERY = D .
Selection Text: S_VARI = D .
Title: Report RSAQ_VARIANT_ADJUST
Text Symbol: 001 = Generation Type
Text Symbol: 002 = Query Object
Text Symbol: 003 = Log: Adapted Variants
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
RSAQ_EXIST_QUERY CALL FUNCTION 'RSAQ_EXIST_QUERY' EXPORTING workspace = p_ws usergroup = p_bgname query = p_query IMPORTING reportname = l_report EXCEPTIONS no_usergroup = 1 no_query = 2 OTHERS = 3.
RS_VARIANT_CONTENTS CALL FUNCTION 'RS_VARIANT_CONTENTS' EXPORTING report = l_report variant = ls_varid-variant move_or_write = 'M' TABLES valutab = lt_rsparams EXCEPTIONS variant_non_existent = 1 variant_obsolete = 2 OTHERS = 3.
RS_CHANGE_CREATED_VARIANT CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT' EXPORTING curr_report = l_report curr_variant = ls_varid-variant vari_desc = ls_varid TABLES vari_contents = lt_rsparams 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.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'VARID' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_grid_title = 'Protokoll: Angepasste Varianten'(003) it_fieldcat = lt_fieldcat TABLES t_outtab = lt_varid EXCEPTIONS program_error = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.