Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I have diff transacton Variant for the same tcode?

Former Member
0 Kudos

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: [;

Thanks,

Jithin

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

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.

9 REPLIES 9

Former Member
0 Kudos

Hi,

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

Regards

Shiva

0 Kudos

Hi Shiva,

Thanks for your reply.

assign different transactions

My requirement is to assign diffrent Transaction variants for

 same T-code 

Is this possible?

Thanks,

Jithin

rvinod1982
Contributor
0 Kudos

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.

Regards,

Vinod

0 Kudos

Hi Vinod,

I need to assign different Transaction variants for the same T-code.

My requirement is not assigning different Transaction variant for different T-code.

Jithin

0 Kudos

Hi Jithin

Yes, this is possible to have different variant for same T code. You can contact your BASIS team for more info.

0 Kudos

Hi Yadav,

What request should i reaise to the basis team? When i explained my requirement to them, they are not able to find a slotion on what needs to be done.

Thanks,

Jithin

Sandra_Rossi
Active Contributor
0 Kudos

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.

0 Kudos

HI Sandra,

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

The issue is here. SAP takes the sandard variant that is being activated to the Transaction and not the variant assigned to the group.

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).

Now when we excute the transaction, only the variant for group1 is considered for group2 also because it is the standard variant.

So i think it is not possible to assign different varinat for a same t-code. Please correct me if i am wrong

Jithin

0 Kudos

>

> 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...