SAP Transaction Variants


How to Create SAP Transaction Variants 

SAP ABAP Course for 2020

SAP ABAP Fundamentals

SAP ABAP Interview Questions – Real Time

 

Transaction variant is used to disable/Enable fields, Menu/Sub Menus functions, Screens, to pass individual fields with default values or to change the ready for input status of one or more fields without changing source code or enhancement. It is very simple & easy way to hide unwanted screens and fields in any standard SAP Tcode.

Here, we will show step by step process to create a transaction variant for SAP standard Transaction CO01.

Step 1: Go to Transaction SHD0. Enter SAP Tcode in “Transaction Code” & type any name in “Transaction variant” as per below screen. Then click on Create Button.

Step 2: We will hide the field “Order type” of below screen. Enter the values & Press “Enter”. A pop-up screen will appear.

Step 3: Enter screen variant name and description and make the field as “Invisible” for “Order type” it will hide the field from the screen.

Step 4: Now, Click on “Exit and Save” button to save the transaction variant and provide a transport request number or we can save as local.

Step 5: For the test, Goto Tcode SHD0 again & type transaction variant name & press F8 button in the initial screen.

Assigning Transaction Variant to Transaction Code

After creating this transaction variant, now we will assign it to a transaction code(Tcode). And it can be used by the user to get the required altered of the original transaction.

Step 6: Go to Tcode SE93. Enter any name of the transaction code and click the button “Create”.

Step 6: Enter short text, select the fourth radio button and press Enter.

Step 7: Enter Transaction text, Standard Tcode(CO01) and Transaction variant (Z_CO01) & check all three check box. Now, Click on “Save” button.

Now Transaction variant is ready and it can be used to get an altered screen of the original (CO01) transaction code as per below screen.

Output:

Here, we can see input Field “Order type” is not visible. This is the use of the SAP Transaction Variant.

Original Tcode’s Screen.