So that users can work with variant groups, you first need to create a variant group, then create transaction variants with screen variants for this variant group, and finally assign the users:
So that users can be assigned to a variant group, you first need to create the variant group. To do this, follow the procedure below:
1. Open transaction SHD0, enter the transaction code, and press enter.
2. Choose the Standard Variants tab page, and then the sub tab page Variant Groups, and enter a group name, such as GROUP1.
3. Choose Create. Enter a short text on the Maintain Variant Group window that appears and save the variant group.
So that the users of a variant group see the screen changes that you want them to see, you need to create the transaction variant with the relevant screen variants. Proceed as follows:
1. Switch to the Transaction Variants tab page.
The system is already displaying the predefined value for the name of the transaction variant with the following naming convention:
<name of the variant group><name of the transaction code>
The group name must be in the correct namespace.
Example: you want to create a transaction variant for transaction XYZ that belongs to the group GROUP1. The name of the transaction variant is then GROUP1XYZ.
2. Choose Create to create the transaction variant with the predefined name, and confirm the message that this transaction variant belongs to the variant group that you created above.
3. Define the screen variants.
You are lead through the individual screens of the transaction and can select what from the transaction is visible for this variant group.
a. To do this, choose Create.
The window Confirm Screen Entries appears. In this window, you can select what from this screen is to be displayed in the transaction variant.
b. Select the desired screen elements for the first screen and confirm your entry.
c. By choosing the back button, you return to the Confirm Screen Entries screen, for the next screen of the transaction.
d. Once you have changed the screen output in this way for the variant group for all desired screens, choose Exit and Save.
An overview of the changes to the individual screens is displayed so that you can check your selection.
e. Save your entries.
Every screen must be assigned to a package and individually saved.
Once you have created the variant group and the relevant transaction variants with screen variants, you can assign users to the variant group as follows:
1. Return to the Standard Variants tab page, Variant Groups sub tab page.
2. Enter the name of a user that you want to assign to this variant group, and choose Assign. A message that this user was successfully assigned to the variant group appears in the status bar. If you choose a where-used list for users, this user is displayed in the user list.
3. However, for the screen variants of the variant group that you created above to be displayed for the user, you first need to select Set Proposal.
The user is assigned to the group and the associated transactions are started with the corresponding variants only once you choose the Set Proposal function.
If you now open the where-used list for users again, you can see that the user is marked with a cross.
4. You can use this procedure of user assignment for all other users that you want to add to the variant group.
However, you can also enter user names generically (*). If you then choose Assign, a selection screen appears, on which you can
○ Choose whether assignments or proposals are to be changed
○ Further restrict the user names
The group in the option All Users from Group does not refer to the variant group, but rather to the user group for authorization checks from the user master record (logon data).
When you choose Execute on the selection screen, a list appears on which you can further restrict your selection of users by selection. To save the assignments for all selected users, choose Save.
If you want to start the report in the background, you can choose whether the list is simply displayed, or whether the database changes are also made.
If a user is also to be able to execute the original transaction, you need to assign him or her to the "empty group", that is the assignment is performed in the same way, but in this case, you simply enter nothing in the Group Name field.
To delete the assignment of the user to the group, choose Delete Assignment. To reset the proposal, choose Reset Proposal. In this case, the assignment itself is retained.
You have created a variant group with the corresponding transaction variants and assigned users, who will see these transaction variants when they call the transactions.
If necessary, you can maintain the variant groups and associated transaction variants.