If you want to hide unwanted screens and fields in any standard SAP program without changing it, the use of the Transaction Variant is the best solution. Creating a Transaction Variant alters the layout of the screen. This tip offers two ways to perform this task.
Case one for creating Transaction Variants
Step 1:
Execute transaction SHD0 and create a Transaction Variant against the original transaction.
Step 2:
As soon as you press the create button, the original screen of the transaction will appear. After
pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any
field or tab or any button you want to disappear from the menu functions. Press the exit and save
button when you are sure that no further settings are required on sub-screens (if present). After
pressing the exit and save button another menu variant screen will appear. Press the save button
here and save as a local object or under any development class.
Step 3:
When you are back on the Transaction Variant (SHD0) screen, press shift+F6 or click the goto menu
and press the create variant transaction button. Through this transaction SE93 will be executed.
Enter the transaction name you want to create and any other required field and now press the save
button.
Step 4:
Now execute the transaction you create through create Transaction Variant and enjoy the
results.
Case two for creating Transaction Variants
Requires Free Membership to View
Step 1:
Create a dialogue transaction through SE93 and enter the program name and screen number of the
original transaction you want to make a variant on (e.g., PFCG). Press the save button and check
whether the replica transaction (PFCG) has been created successfully by executing it on a new
session.
Step 2:
Execute transaction SHD0 to create a Transaction Variant. Specify the transaction name (replica of
PFCG) which you have just created and create a Transaction Variant against the replica
transaction.
Step 3:
As soon as you press the create button, the original screen of the transaction will appear. After
pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any
field or tab or any button you want to disappear from the menu functions. Press the exit and save
button when you are sure that no further settings are required on sub-screens (if present). After
pressing the exit and save button another menu variant screen will appear. Press the save button
here and save as a local object or under any development class.
Step 4:
When you are back on the main screen of the SHDO (Transaction Variant) click the edit option on the
menu tab and activate Standard Variant. Through this a Standard Variant will be assigned to the
transaction specified (replica transaction).
Note: Make sure you activate the Standard Variant against a replica transaction and not on the
original one.
More resources about transaction variants:
- How do we customize the opportunity screen?
- Call transaction while bypassing auth check.
- Avoiding the yellow light when adding transactions via PFCG.
- Quiz: SAP security best practices.
This was first published in August 2006

Join the conversationComment
Share
Comments
Results
Contribute to the conversation