Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

variant .

Former Member
0 Likes
958

Hi.

please tell me the steps for creation of screen variant & transaction variant .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
926

check tcode SHD0.

and its documentations.

Regards

Peram

6 REPLIES 6
Read only

Former Member
0 Likes
927

check tcode SHD0.

and its documentations.

Regards

Peram

Read only

Former Member
0 Likes
926

Hi Prajwal

Variant Transactions

A transaction with a variant can have its own transaction code, which you can then use to execute the transaction with the appropriate variant.

To create a variant transaction, proceed as follows:

Choose Goto ® Create vari. trans. from the initial transaction variant maintenance screen.

Enter a transaction name and corresponding short text. Transaction type Variant transaction is already set. The following screen already contains default values for the name of the calling transaction, the variant name, and the client-specific or cross-client variant checkbox.

Save your entries.

Example:

Variant ABC has been defined for transaction Z000. We now want to create the variant transaction ZVAR.

Name of the new transaction: ZVAR

Name of the calling transaction: Z000

Name of the variant: ABC

Transaction ZVAR starts transaction Z000 with variant ABC.

If the variant specified for a variant transaction does not exist (in the current client), then the calling transaction will be started without variant.

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
926

Hi,

Transaction Variants is used to make fields Mandatory, Hidden or Display. Also applicable to screens and tabstrips.

You can hide unwanted screens and fields in any of the standard SAP programs without changing any of the standard programs. Additional features such as making the variant as default on the standard SAP transaction code is only available as of 4.6x.

Transaction SHD0 - Create a variant for the required transaction by changing the layout through hiding fields and screens.

Transaction SE93 - Create a variant transaction (e.g. for VA02 = ZVA02).

Next allocate the transaction variant to this variant transaction.

In 4.6c, you can default your transaction variant as the standard variant. (SHD0 - Edit -> Activate/Deactivate as standard variant)

Read the application help provided in SHD0 trxn.

see the links for more info:

http://www.sap-basis-abap.com/sapbs010.htm

http://www.sapgenie.com/abap/tvar.htm

Regards,

Priyanka.

Read only

Former Member
0 Likes
926

Hi

By using transaction and screen variants we can,

Insert default values into fields

Change the ready for input status for fields

Hide various screen elements, menu functions or entire screens

Adjust table control settings.

are created with transaction: SHD0

The difference between the two types is that a Transaction variant covers the whole transaction and therefore can

have more than 1 screen, while a screen variant only can have 1 screen.

http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm

reward points to all helpful answers

kiran.M

Read only

0 Likes
926

Thanks to all.

Regards

Prajwal

Read only

Former Member
0 Likes
926

Hi

go to<u><b> SHDO</b></u>

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

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.

reward if usefull