Creating Report Group Variants 

You can define several variants for the same report group. A variant is a group of selection criteria values that have been saved for a report group. Instead of entering the same selection criteria each time you execute a report group, you can create a variant for each set of selection criteria.

You create a variant for a report group specifying that only report data for cost center 100 is selected for the report. You can create a second variant where report data for all the cost centers is selected.

Procedure

  1. On the Execute Report Group: Initial Screen, choose Utilities ® Variant maintenance ®
  2. · Execute (to create a variant for report data selection)

    · Multiple selection (to create a variant for a report group that has variable input parameters)

    · Mass generator (to create a variant for generating report groups)

    The ABAP: Variants - Initial Screen appears.

    The Program field is automatically filled. The report names appear as follows, depending on the function you selected:

    · J<Report Group><Client>X when you are creating a variant for report data selection.

    · J<Report Group><Client>T when you are creating a variant for a report group that has variable input parameters (multiple selection).

    · RGRJBG00 when you are creating a variant for generating report groups.

  3. In the Variant field, enter the variant name.
  4. Choose Variants ® Create.
  5. The Maintain Variants: <Program Name> Variant <Variant Name> screen appears.

  6. Enter the data as required.
  7. For selecting report data, enter the values and sets for selecting report data. Enter extract and output data as required.

    For entering variable input parameters for a report group, enter the variable values and/or sets and the output parameters for the variant.

    For generating report groups, enter the selection criteria for generating the report groups.

  8. Choose Continue.
  9. The ABAP: Save Variant <Variant Name> screen appears.

  10. Enter the data as required.

For more information about the fields on this screen and creating a variant, see the SAP Library Pre-Setting Selections Using Variants documentation (Basis Components ® ABAP Workbench (BC-DWB) ® ABAP User’s Guide ® Writing ABAP Reports).