transaction variants
Post on 14-Apr-2018
232 Views
Preview:
TRANSCRIPT
-
7/29/2019 Transaction Variants
1/12
Transaction Variants
Step By Step Guide - Creating Transaction Variants
Purpose:The Purpose of transaction variants is to hide fields, menu functions, screens, to supply individual fields with
default values or to change the ready for input status of one or more fields.
Using transaction variant, you can tailor screens to meet your required business process, and it can be used to
accomplish security task, not directly supported by SAPs security concepts.
A Transaction variant consist of a number of screen variants, customized to meet your requirements,Transaction variant only alters the layout of the screen. The Business processes delivered by SAP retain their
integrity.
Scenario
In this example the scenario is:
In transaction BPBusiness Partner, the user should not be able to create a new person.
In transaction BPBusiness Partner, the user should not have access to the Payment tab.
Recordin g a Transactio n Variant
Transactions variant are recorded through transaction SHD0
-
7/29/2019 Transaction Variants
2/12
1. Enter the transaction code you want to recordhere BP, and press enter
2. Enter a name for your transaction varianthere Z_BP_NO_PERSON. Please notice
that the naming convention for transaction variant requires that it starts with Z or Y.
3. Push Create
You have now called transaction BP in recording mode.
1. When you push the exit button you will get the following popup
2. Enter a name for the screen variante.g. Z_BP_NO_PERSON,3. Press the deactivate menu function, and you get the following popup.
-
7/29/2019 Transaction Variants
3/12
In this Popup you can deactivate menu functions.
1. Open the Menu Bar Business Partner Create
Position the cursor on SCREEN_1000_CRE_PERSPerson
2. And push the deactivate button
-
7/29/2019 Transaction Variants
4/12
3. Push enter
4. And Exit and Save
-
7/29/2019 Transaction Variants
5/12
5. Save the Transaction Variant.
Test
You can now test your transaction variant by pushing the test button
-
7/29/2019 Transaction Variants
6/12
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
Press change with processing to enter the screen
-
7/29/2019 Transaction Variants
7/12
2. Press exit,
You will now get a popup for each sub screen.
3. Enter a name for these all of these sub screens e.g. the screen name with a Z as prefix
When you reach Sub screen 1100_MAIN_ARE
4. flag the Payment transaction as invisible and push Exit and Save
-
7/29/2019 Transaction Variants
8/12
5. Now save the transaction variant with Exit and Save. Notice that youll get a popup with a
transport request for each screen.
6. Now save the variant and go back to transaction SHD0 again.
-
7/29/2019 Transaction Variants
9/12
When you now test the transaction variant, you can see that the tab strip
Payment transactions has been removed.
Assign ing the transact ion Var iant
You can assign your newly created transaction variant to a transaction code by:
1. Assigning it as a standard variant for the transaction (here BP).
2. Create a new transaction code for the transaction variant.
-
7/29/2019 Transaction Variants
10/12
Assign it as a standard variant for the transaction BP
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 StandardVariants
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.
-
7/29/2019 Transaction Variants
11/12
Create a new transaction code for the transaction variant.
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.
In the next screen flag Inherit GUI Attributes
-
7/29/2019 Transaction Variants
12/12
Save and test your new transaction code.
top related