Skip to Content
author's profile photo Former Member
Former Member

Can I have diff transacton Variant for the same tcode?

Hi Experts,

Can I have diff transacton Variant for the same tcode? If so i will i assign it to diffrent users.?

Requirement Details:

I have three diiffrent roles accessing XK02.

I need to provide diffrent transactions variants for these 3 roles, through Variant groups. How will i do this?

When i tried to do this, i found that, we need to activate a standard variant for the transaction, which inturn will be default for all these roles. S how will i specify different Transaction variant for diff roles...

Please help..

In the below link i have seen a solution where i need to login into each users profile and set it.

link: [Variant Groups;



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 30, 2009 at 10:08 PM

    Variant groups are maintained in SHD0, in tab "Standard Variant, then in tab "Variant Groups".

    A Variant Group is assigned to 0 to N users

    A user may have 0 to N variant groups. If he has several variant groups, he may switch using SHD_SWITCH transaction.

    At a given time, a user can be assigned to only one variant group.

    At each logon, the user is assigned by default to the variant group assigned by button "Set proposal" in SHD0.

    When user has currently ZVVVV variant group and he runs ZT transaction, SAP automatically uses ZVVVVZT transaction variant if it exists.

    A variant group named ZVVVV is linked automatically to all transaction variants named ZVVVV* (where * must be the transaction code to which the transaction variant applies).

    If a transaction has both a standard variant and a group variant, SAP runs the transaction using the transaction variant from the variant group.

    Add a comment
    10|10000 characters needed characters exceeded

    • >

      > Say i have two groups for the same transaction with two diff variants,

      > then for group 1 i will assign variant1 and will activate this as the standard variant.

      > NOw for group two, i will assign my second variant (without activating it as standard variant).

      The way you explain is strange, I don't understand. You can't assign manually a variant group to a transaction variant, this is done automatically based on the names, maybe you make confusion with assignment between variant group and user?

      A little example:

      Say we have : ZG1 for group 1, and ZG2 for group 2. Transaction is ZT.

      Say user is assigned to group ZG1 by default, and also ZG2 (he may switch to ZG2 using the transaction I mentioned above)

      When user runs ZT transaction, SAP uses automatically ZG1ZT transaction variant (the standard variant is ignored when a transaction variant is found based on variant group). If the user switches to ZG2 variant group, SAP uses automatically ZG2ZT transaction variant.

      If you activate a standard variant, this will taken into account for users which don't have a variant group assigned, or those which transaction variant doesn't exist for variant group + transaction code.

      If it doesn't work as I said, maybe there is a bug, check SAP notes...

  • Posted on Sep 30, 2009 at 10:19 AM

    Hi Jithin,

    There is no need to create different roles.

    First create a variant group say zg1 assign it to user yuser1 and variant group zg2 and assign it to user yuser2.

    Under transaction code enter the tcode for which u want to create transaction variant.(for ex. VA01)

    Under Standard Varaints-> Standard Varaints by default some name like ZG2VA01 will appear.

    Now click on the create button and create the transaction variant as per requirement and save it.

    Similarly do it for other 2 variant groups.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2009 at 09:58 AM


    You are right,

    You can create multiple transaction variants(in SHD0) and assign multiple transaction codes(Variant transaction)

    Hence you can access transaction variants with multiple Z transaction codes that are created for the same standard transaction.

    But when you activate the transaction variant as the standard variant, instead of the standard transaction, your variant transaction is called. Hence you can have only ONE STANDARD VARIANT at time.

    Hence i suggest you to assign different transactions for the transaction variant and access them separately

    Hope this helps



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.