Sie sind auf Seite 1von 16

How to - Transaction Variants

Page 1 of 16

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 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

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 2 of 16

3. 1.

2.

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

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 3 of 16

1.

You have now called transaction BP in recording mode. 1. When you push the exit button you will get the following popup

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 4 of 16

2.

3.

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.

In this Popup you can deactivate menu functions. 1. Open the Menu Bar Business Partner Create

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 5 of 16

1.

2.

Position the cursor on SCREEN_1000_CRE_PERS Person 2. And push the deactivate button

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 6 of 16

3. 3. Push enter

4.

4. And Exit and Save

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 7 of 16

5.

5. Save the Transaction Variant.

Test
You can now test your transaction variant by pushing the test button

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 8 of 16

4.

As you see the Person button is grayed out, and if you go to the menu Business partner can see that youre not allowed to create a person for the menu either.

Create, you

Removing the tab Payment Transactions


In order to modify your transaction variant, you go to transaction SHD0

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 9 of 16

1.

1. Press change with processing to enter the screen

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 10 of 16

2.

2. Press exit, You will now get a popup for each sub screen.

3.

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 11 of 16

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

4.

5. 5. Now save the transaction variant with Exit and Save. Notice that youll get a popup with a transport request for each screen.

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 12 of 16

6.

6. Now save the variant and go back to transaction SHD0 again.

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 13 of 16

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: 1. Assigning it as a standard variant for the transaction (here BP). 2. Create a new transaction code for the transaction variant.

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 Standard Variants

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 14 of 16

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.

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 You will now get the following popup: Create Variant Transaction.

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 15 of 16

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

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

How to - Transaction Variants

Page 16 of 16

Save and test your new transaction code.

http://www.mhn-consulting.com/Security/transactionvariants.htm

5/18/2012

Das könnte Ihnen auch gefallen