+ All Categories
Home > Documents > SHD0 - Transaction Variant.pdf

SHD0 - Transaction Variant.pdf

Date post: 28-Oct-2015
Category:
Upload: basavarajn81
View: 116 times
Download: 7 times
Share this document with a friend
Description:
SHD0 - Transaction Variant.
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 SAP’s 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 Page 1 of 16 How to - Transaction Variants 5/18/2012 http://www.mhn-consulting.com/Security/transactionvariants.htm
Transcript
Page 1: SHD0 - Transaction Variant.pdf

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 SAP’s 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

Page 1 of 16How to - Transaction Variants

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

Page 2: SHD0 - Transaction Variant.pdf

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

1.

2.

3.

Page 2 of 16How to - Transaction Variants

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

Page 3: SHD0 - Transaction Variant.pdf

You have now called transaction BP in recording mode.

1. When you push the exit button you will get the following popup

1.

Page 3 of 16How to - Transaction Variants

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

Page 4: SHD0 - Transaction Variant.pdf

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

2.

3.

Page 4 of 16How to - Transaction Variants

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

Page 5: SHD0 - Transaction Variant.pdf

Position the cursor on “SCREEN_1000_CRE_PERS Person”

2. And push the deactivate button

1.

2.

Page 5 of 16How to - Transaction Variants

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

Page 6: SHD0 - Transaction Variant.pdf

3. Push enter

4. And “Exit and Save”

3.

4.

Page 6 of 16How to - Transaction Variants

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

Page 7: SHD0 - Transaction Variant.pdf

5. Save the Transaction Variant.

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

5.

Page 7 of 16How to - Transaction Variants

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

Page 8: SHD0 - Transaction Variant.pdf

As you see the Person button is grayed out, and if you go to the menu Business partner � Create, you can see that you’re 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

4.

Page 8 of 16How to - Transaction Variants

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

Page 9: SHD0 - Transaction Variant.pdf

1. Press change with processing to enter the screen

1.

Page 9 of 16How to - Transaction Variants

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

Page 10: SHD0 - Transaction Variant.pdf

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

2.

3.

Page 10 of 16How to - Transaction Variants

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

Page 11: SHD0 - Transaction Variant.pdf

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

5. Now save the transaction variant with “Exit and Save”. Notice that you’ll get a popup with a transport request for each screen.

4.

5.

Page 11 of 16How to - Transaction Variants

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

Page 12: SHD0 - Transaction Variant.pdf

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

6.

Page 12 of 16How to - Transaction Variants

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

Page 13: SHD0 - Transaction Variant.pdf

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”

Page 13 of 16How to - Transaction Variants

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

Page 14: SHD0 - Transaction Variant.pdf

Here you enter your transaction variant, and activate it. If you now call transaction BP you will see that it’s started with your transaction Variant. Please Notice that this activation isn’t transported. You need to activate the transaction Variant on all receiving system.

Create a new transaction code for the transaction v ariant. 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:

Page 14 of 16How to - Transaction Variants

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

Page 15: SHD0 - Transaction Variant.pdf

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”

Page 15 of 16How to - Transaction Variants

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

Page 16: SHD0 - Transaction Variant.pdf

Save and test your new transaction code.

Page 16 of 16How to - Transaction Variants

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


Recommended