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
1,209

hi,

what is variant? how to create the variant ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,059

hi,

Variants allow you to save sets of input values for programs that you often start with the same selections. You can use them for any programs except subroutine pools (type S).

creation of variants:

You must have defined one or more selection screens for the relevant program. The program may have any type except type S.

procedure-

1.On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change.

2.On the variant maintenance initial screen, enter the name of the variant you want to create.

Choose Create.

3.If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away.

4.If there is more than one selection screen, select the screens for which you want to create the variant.

6 REPLIES 6
Read only

Former Member
0 Likes
1,059

Hi,

When ever you entering inputs for selection screen ..

you have option to save perticuler inputs..saving these inputs is called a Variant.

you can have multiple variants..which are commonly used inputs..

Creating it..

Execute any report which is having selection screen..

enter input values ans save it..it will ask you to enter variant name..

thats it..

variants are for reuse purpose.which are regular same inputs..

Regards,

Ramesh.

Read only

Former Member
Read only

Former Member
0 Likes
1,059

hi,

while executing a program we give inputs to the parameters or select-options, before pressing execute button if u press save then it asks for name of the variant. if u give any name and save, variant will be created.

while executing next time if u need to give same set of input values then u can click on the variant symbol it automatically populates the input values.

hope it is useful

regards,

sreelakshmi

Read only

Former Member
0 Likes
1,060

hi,

Variants allow you to save sets of input values for programs that you often start with the same selections. You can use them for any programs except subroutine pools (type S).

creation of variants:

You must have defined one or more selection screens for the relevant program. The program may have any type except type S.

procedure-

1.On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change.

2.On the variant maintenance initial screen, enter the name of the variant you want to create.

Choose Create.

3.If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away.

4.If there is more than one selection screen, select the screens for which you want to create the variant.

Read only

Former Member
0 Likes
1,059

Variants

Variants allow you to save sets of input values for programs that you often start with the same selections. You can use them for any programs except subroutine pools (type S).

LINK

http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm

Steps for creating a varient for an existing program

Go to SE38 TRCODE for ABAP Editor

Provide the existing program name[Eg:zvendor]

Select varients

Go to change mode[Click on the change option]

Define varient name here[Eg :zvar] and go for create

Selection screen appears.Provide the i/p values.

Go with attributes option

Under attributes provide the description for varients[like Eg:Demo on varients]

Save the details[Ctrl+s]

TRANSACTION VARIANTS

Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.

Procedure

You can create transaction variants in the SAP Reference IMG.

...

1. Choose Basis Components ® Application Personalization ® Tailoring of Application Transactions ® Configure Transaction-Related Display Values for Fields (transaction SHD0).

2. To execute a transaction variant, you have to define a variant transaction using the Transaction Maintenance transaction (SE93).

3. Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).

4. To define a variant, enter the name of the transaction and the name of the variant.

5. Usually the settings in the Classification group box are set by default.

Professional User Transactions are the standard transactions executed in the SAP system. An Easy Web Transaction is an ITS-based transaction, which can be executed only in the SAP GUI for HTML. You need to refer to an ITS service in order to use it.

The SAP GUI settings do not affect the transaction itself; they only inform the user what software is needed to start the transaction: SAP GUI for Windows, SAP GUI for Java or only the browser (SAP GUI for HTML).

Result

You can use the newly created transaction code to start a special variant of the transaction.

this link will also be helpful

http://help.sap.com/saphelp_webas620/helpdata/en/c0/980389e58611d194cc00a0c94260a5/content.htm

reward if helpful

Read only

Former Member
0 Likes
1,059

Hi,

If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant.

You can create any number of variants for any program in which selection screens are defined. Variants are assigned exclusively to the program for which they were created.

You can also use variants to change the appearance of the selection screen by hiding selection criteria. This is particularly useful when you are working with large selection screens on which not all of the fields are relevant.

Reports, module pools, and function groups may have several selection screens. It is therefore possible to create a variant for more than one selection screen.

Variants are an interface between the user and the selection screen. They can be used both in dialog and in background mode, although their uses are slightly different.

Pls refer :

http://help.sap.com/saphelp_nw70/helpdata/en/c0/980386e58611d194cc00a0c94260a5/frameset.htm

http://www.sourceveda.com/

Regards,

Renjith Michael.