Main purpose of this T-Code is to customise any standard SAP transaction in a minimum time, by which a new version will be created of standard SAP T-code without any actual modification. It can be used in a way that if we dont want any bunch of users to view or enter any thing in a particular field then we can do this without going for any customization.
The below Document will give steps for using Transaction Variant for Vendor Master Creation [FK01]:
- Enter T-Code ‘SHD0’:
Enter in Transaction Code – FK01
Enter in Transaction Variant – ZFK01 and then on create button
- In the next screen T-Code FK01 will be opened in recording mode.
Here we are going to hide Reference Vendor Tab, so enter some default value ‘1800177’.
Then click enter and new pop up screen will be opened.
- In the confirm screen entries, we can choose what we want to do in that screen. Enter screen variant short txt as ‘Testing’ and tick on Invisible Tab to hide Reference Vendor from the screen.
Then Click on Menu Functions.
4. After clicking on ‘Menu Functions’ tab, a screen will be opened, in that select Vendor → EANZ (Display) and then De-activate button. This will now be deactivated and it will be in yellow. Now Click on Enter Tab.
5. After above step on confirmation, click on ‘Exit and Save’ Tab.
- Now system will ask for saving the Transaction Variant. It has to be saved in either a New Request of can be saved as ‘Local Object’.
- We can now test the transaction Variant in the Initial Screen by Clicking on ‘Test’ Button.
Assigning Transaction Variant ot Transaction Code:
- Run T-Code ‘SE93’. Enter Transaction Code – ‘ZFK01_tcode’ and Click on ‘Create’ Tab.
- In next screen enter short text and select Radio Button of ‘Transaction with variant (variant transaction) and click on Enter.
3. In next screen, enter text in ‘Transaction’ & ‘Transaction Variant’ field.
By this now a new Transaction Code – ‘ZFK01_TCODE’ is available with Reference → Vendor Field as Invisible.
We can see from above that Reference → Vendor field is Invisible and a default Vendor is selected.
How do you make sure that user can only run trnx ZFK01_TCODE but NOT allow to run FK01 ? According to my understanding, if user need to run ZFK01_TCODE, he/ she should also have the right the run FK01. Thus, he can run this trnx by directly type the transaction code
Dear Yuen
You can authorize only ZFK01_TOCDE not FK01.
Try this.
Thanking you!
Ashish Mishra
Thank you.. its a good Post with screen shots.
Thanks A Manish Kumar.
If it is helpful you can give the points or like the document.
🙂
Hi Mahlar,
Good work. But
Assignment of transaction variant to transaction code:- Please see my thoughts, instead of going long process. in SHD0 transaction --> click on "Standard variants" tab --> under this another "standard variant" tab --> Assign your variant (ex: ZFK01) --> click on activate button.
Once activated -->test standard t.code FK01--> Reference vendor field will not be dispalyed.
Please rectify, If i am wrong.
Thanks,
Mariks
Hi Malar,
Excellent work....
Thanks Abhilash.
If it is helpful you can give the points or like the document.
🙂
Hi,
this is surely craeted for the variants within the standard transaction as per User requirement,
SHD0 avoids additional programming,
Devendra
Very useful document. This configuration steps are perfect to use with SAP T-codes.
Hi Malhar Jain,
Nicely articulated easy to understand .
Thanks for sharing 🙂 .
Kamlesh
Very good overview of this functionality. Nice job Malhar!
Hello,
Excellent article
thank you very much
all the best erwin
Very good document
Hi Malhar Jain,
Very nice document for transaction variant.
Regards,
siva kumar.
HI Malhar,
It's really provided the informative information .
it has given good idea about the transaction variant .
Regards ,
Venkat
Wow ! This article is exceptional
Nice blog..
This came in the right time the right day.
Great Job.
➕ ➕ ➕
Tried to follow, but not going through !
attached a screen shot........................Asking to "Enter a Transaction"
!
Hi,
Did you resolve the issue. If yes can I know how?
Regards,
Shrusti
i followed to instruction given but it still didn't perform as expected. We ended up creating an user exit for this.
Thanks
Have a great day
Not sure if you solved this and if you did then the variant didn't do what was required so you created a user exit instead but if still stuck on the first screen and unable to create the variant in the first place, this program can be a bit odd! When you first go into SHD0:
Enter the transaction code e.g. VA01
Enter the variant name e.g. ZVA01TW
Put the cursor back in the transaction code field while still input capable!!!
Press create button
You should now get the first screen of the transaction. If you leave the cursor in the variant field as would be natural because it is the second and last field to be filled before create, the system gives you the error that the transaction does not exist. It's odd but you can work around it.
Regards
Tim
This is a great document. I have one question. I have created a variant for standard CO07 tcode and made the profit center required. The variant only works if the user enters that tab but if they ignore the tab the systems accepts the create without requiring the profit center.
How do I make the field required for this tcode using this variant upon saving the function.
Please help.