WFA_CALBATCH_VARIANT_SYNC 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 WFA_CALBATCH_VARIANT_SYNC 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.
Title: Report WFA_CALBATCH_VARIANT_SYNC
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 = progname variant = variantname TABLES valutab = tbl_varcontent EXCEPTIONS variant_non_existent = 1 variant_obsolete = 2 OTHERS = 3.
WFA_OPT_CALCBATCH_VARCREATE CALL FUNCTION 'WFA_OPT_CALCBATCH_VARCREATE' EXPORTING prog_name = progname prog_param_name = progparamname variant_name = variantname variant_val = variantval EXCEPTIONS variant_creation_error = 1 OTHERS = 2.
RS_VARIANT_DELETE CALL FUNCTION 'RS_VARIANT_DELETE' EXPORTING report = progname variant = ls_varname flag_confirmscreen = 'X' "it actually suppresses the confirmation window flag_delallclient = 'X' "it actually suppresses the window asking all clients/current client(default) EXCEPTIONS not_authorized = 1 not_executed = 2 no_report = 3 report_not_existent = 4 report_not_supplied = 5 variant_locked = 6 variant_not_existent = 7 no_corr_insert = 8 variant_protected = 9 OTHERS = 10.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.