SAP ABAP Transaction Variants
September 1, 2008 by Ameya Pimpalgaonkar
- L&T Infotech
Many times people get struck with some kind of requirements in their SAP ABAP Implementation projects and do not know how to proceed further. One of such requirement is “Changing the layout of the standard screen”. These changes may include hiding the existing fields, display default values, etc., Here comes the need of Transaction Variants for such type of requirements.
This article will provide you what all we can achieve through the transaction variants, and a link is provided at the end of this article which demonstrates step by step procedure to create a transaction variant with example and screen shots.
Transaction variants are very efficient & simple method provided by SAP for customizing the standard screens according to our business needs and implemented using SHD0 transaction. Transaction variants are actually made up of a set of screen variants. The field values and field attributes for each screen in a transaction variant are stored in screen variants. Transaction and screen variants may be created for all dialog and reporting transactions. Transaction variants may not be created for transactions already containing pre-defined parameters (parameter transactions and variant transactions).
Transaction & screen variants are independent objects and are cross client. By saying this, the variants can be transported.
Transaction variants can be used for:
-
Populating default values into the screen fields.
-
Change the ready for input status for fields.
-
Hiding & changing various screen elements, menu functions.
-
Hiding & changing the attributes of the screen fields
-
Adjusting table control settings.
In addition to hiding and changing the screen elements it allows us to change the elements of application tool bar. Suppose, if you want to edit the Menu related settings, then click on the Menu functions button provided.
The GUIXT is an inbuilt function of transaction variants. Using this GUIXT script, one can achieve many things like, positioning the fields, adjusting the table control settings, Adjusting the width & height of the screen fields, you can even add some picture in your transaction.
You can find this GUIXT push button in the “Confirm screen entries” pop up window of SHD0 transaction. Clicking on this will give you the GUIXT script for the respective screens. The GUIXT script is stored & transported along with its screen variants.
An example has been provided in the below link on how to create and save the transaction Variants. Go through the link for further details:
http://forums.madeitsimple.com/viewtopic.php?f=16&t=40
Regards,
Keerthi vasan .M





Hi Keerthi,
This is an awesome piece of information. No more search for alternatives if client asks to disable some buttons.
Good work!!!!
Yes keerthi,
Its really awesome..great job !!
It is a greatwork done by you, I am having problem in abap programming used in smartforms(PAI,PBO) and recordings used in BDC , so if you can post me some explaination abt it with some screen shots or pdf file to my email id subhadip_friends@yahoo.com then it would be great.