Skip to Content
Author's profile photo Former Member

How to Create a Transaction Variant

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]:

  1.   Enter T-Code ‘SHD0’:

Enter in Transaction Code – FK01

Enter in Transaction Variant – ZFK01 and then on create button

/wp-content/uploads/2012/06/transaction_110506.jpg

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

/wp-content/uploads/2012/06/transaction_110506.jpg

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

/wp-content/uploads/2012/06/transaction_110506.jpg

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.

/wp-content/uploads/2012/06/transaction_110506.jpg

5. After above step on confirmation, click on ‘Exit and Save’ Tab.

/wp-content/uploads/2012/06/transaction_110506.jpg

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

/wp-content/uploads/2012/06/transaction_110506.jpg

/wp-content/uploads/2012/06/transaction_110506.jpg

  1.   We can now test the transaction Variant in the Initial Screen by Clicking on ‘Test’ Button.

/wp-content/uploads/2012/06/transaction_110506.jpg

Assigning Transaction Variant ot Transaction Code:

  1.   Run T-Code ‘SE93’. Enter Transaction Code – ‘ZFK01_tcode’ and Click on ‘Create’ Tab.

/wp-content/uploads/2012/06/transaction_110506.jpg

  1.   In next screen enter short text and select Radio Button of ‘Transaction with variant (variant transaction) and click on Enter.

/wp-content/uploads/2012/06/transaction_110506.jpg

3. In next screen, enter text in ‘Transaction’ & ‘Transaction Variant’ field.

/wp-content/uploads/2012/06/transaction_110506.jpg

By this now a new Transaction Code – ‘ZFK01_TCODE’ is available with Reference → Vendor Field as Invisible.

/wp-content/uploads/2012/06/transaction_110506.jpg

/wp-content/uploads/2012/06/transaction_110506.jpg

We can see from above that Reference → Vendor field is Invisible and a default Vendor is selected.

Assigned tags

      23 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Yuen Ching, Pansy Leung
      Yuen Ching, Pansy Leung

      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

      Author's profile photo Former Member
      Former Member

      Dear Yuen

      You can authorize only ZFK01_TOCDE not FK01.

      Try this.

      Thanking you!

      Ashish Mishra

      Author's profile photo Former Member
      Former Member

      Thank you.. its a good Post with screen shots.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks A Manish Kumar.

      If it is helpful you can give the points or like the document.

      🙂

      Author's profile photo Mariks .
      Mariks .

      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

      Author's profile photo abilash n
      abilash n

      Hi Malar,

      Excellent work....

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks Abhilash.

      If it is helpful you can give the points or like the document.

      🙂

      Author's profile photo Former Member
      Former Member

      Hi,

      this is surely craeted for the variants within the standard transaction as per User requirement,

      SHD0 avoids additional programming,

      Devendra

      Author's profile photo Former Member
      Former Member

      Very useful document. This configuration steps are perfect to use with SAP T-codes.

      Author's profile photo Kamlesh Kumar Arya
      Kamlesh Kumar Arya

      Hi Malhar Jain,

      Nicely articulated easy to understand .

      Thanks for sharing 🙂 .

      Kamlesh

      Author's profile photo Former Member
      Former Member

      Very good overview of this functionality.  Nice job Malhar!

      Author's profile photo Erwin Leitner
      Erwin Leitner

      Hello,

      Excellent article

      thank you very much

      all the best erwin

      Author's profile photo SANJIT BHATTACHARYA
      SANJIT BHATTACHARYA

      Very good document

      Author's profile photo Siva kumar Devana
      Siva kumar Devana

      Hi Malhar Jain,

      Very nice document for transaction variant.

      Regards,

      siva kumar.

      Author's profile photo Former Member
      Former Member

      HI Malhar,

      It's really provided the informative information .

      it has given good idea about the transaction variant .

      Regards ,

      Venkat

      Author's profile photo Former Member
      Former Member

      Wow ! This article is exceptional

      Author's profile photo Sneha Jadhav
      Sneha Jadhav

      Nice blog..

      Author's profile photo SAP FiCO
      SAP FiCO

      This came in the right time the right day.

      Great Job.

      ➕ ➕ ➕

      Author's profile photo SAP FiCO
      SAP FiCO

      Tried to follow, but not going through !

      attached a screen shot........................Asking to "Enter a Transaction" Create a T Variant error.png!

      Author's profile photo Arpitha Karuna
      Arpitha Karuna

      Hi,

      Did you resolve the issue. If yes can I know how?

      Regards,

      Shrusti

      Author's profile photo Rodney Sweat
      Rodney Sweat

      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

      Author's profile photo Former Member
      Former Member

      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





      Author's profile photo Rodney Sweat
      Rodney Sweat

      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.