Entering content frame

Procedure documentation Creating Variants Locate the document in its SAP Library structure

Prerequisites

You must have defined one or more selection screens for the relevant program. The program may have any type except type S.

Procedure

To create a new variant:

...

       1.      On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.

       2.      On the variant maintenance initial screen, enter the name of the variant to be created.
Note the naming convention for variants (see below).

       3.      Choose Create.
If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.

       4.      If there is more than one selection screen, select the screens for which you want to create the variant.

Example:

This graphic is explained in the accompanying text

Note

If you choose Variant for All Selection Screens, the variant also applies to any selection screens that were included in the program only after you created the variant

Otherwise, the variant only supplies values to the selection screens that you select in the list.

       5.      Choose Continue.
The (first) selection screen for the report appears.
If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.

       6.      Enter the desired selection values, including multiple selection and dynamic selection.

       7.      Choose Continue.

Result

You then see an overview screen (ABAP: Save Variant…), where you can specify attributes for your variant and save it. See also Attributes of Variants.

Note that when you create a new variant, you always have to fill in values and attributes.

Note

Name of Variant: This name can comprise up to 14 alphanumeric characters. The character % is not allowed. If you want the variant to be transported automatically with its program, you must create a system variant. The name of a system variant must start with "CUS&" for customers, and "SAP&" for SAP system variants You can only use the "&" character within this prefix in the name of a system variant. It must not occur in any other variant names. System variants are connected to the Workbench Organizer and can be created in all clients. However, they are stored solely in client 000.  They can be accessed from all clients.

 

 

Leaving content frame