Transaction Variants
Transaction Variants
Scenario In this example the scenario is: In transaction BP Business Partner, the user should not be able to create a new person. In transaction BP Business Partner, the user should not have access to the Payment tab.
Recording a Transaction Variant Transactions variant are recorded through transaction SHD0
1. Enter the transaction code you want to record here BP, and press enter 2. Enter a name for your transaction variant here Z_BP_NO_PERSON. Please notice that the naming convention for transaction variant requires that it starts with Z or Y. 3. Push Create
2. Enter a name for the screen variant e.g. Z_BP_NO_PERSON, 3. Press the deactivate menu function, and you get the following popup.
3. Push enter
Test You can now test your transaction variant by pushing the test button
As you see the Person button is grayed out, and if you go to the menu Business partner Create, you can see that youre not allowed to create a person for the menu either. Removing the tab Payment Transactions In order to modify your transaction variant, you go to transaction SHD0
2. Press exit,
3. Enter a name for these all of these sub screens e.g. the screen name with a Z as prefix
5. Now save the transaction variant with Exit and Save. Notice that youll get a popup with a
transport request for each screen.
When you now test the transaction variant, you can see that the tab strip Payment transactions has been removed.
Assigning the transaction Variant You can assign your newly created transaction variant to a transaction code by:
If you want the transaction BP to start with the transaction variant, you can set this variant as the standard variant. This is done in SHD0 under the Tab Standard Variants
Here you enter your transaction variant, and activate it. If you now call transaction BP you will see that its started with your transaction Variant.
Please Notice that this activation isnt transported. You need to activate the transaction Variant on all receiving system.
You also have the opportunity to create a new transaction for your transaction variant. By doing this you will end up with two transactions, one BP for the original version of transaction BP and one for your screen variant.
In order to create a new transaction code, choose from the menu Goto Create Variant Transaction. You will now get the following popup:
Enter a new Transaction code e.g. Z_BP_NO_PERSON, and a short text for this new transaction code, and press enter.