‎2008 Apr 16 4:09 PM
can anybody help me regarding varients ::
**what r varients???????
**y do v use varients?????
**advantages and disadvantages of varients???????
**what is the procedure for creating varients????????
‎2008 Apr 16 4:13 PM
varients are used to save the values that you enter on selection screen so that while testing you do not need to enter again and again...instead use the variant you already saved.
You can have mutiple variants. check table TVARV.
Enter the selection criteria on the selection screen and click save button. Give the name of the variant and save.
It's available to use.
variants saves time.
Hope it helps.
thanks
‎2008 Apr 16 4:13 PM
varients are used to save the values that you enter on selection screen so that while testing you do not need to enter again and again...instead use the variant you already saved.
You can have mutiple variants. check table TVARV.
Enter the selection criteria on the selection screen and click save button. Give the name of the variant and save.
It's available to use.
variants saves time.
Hope it helps.
thanks
‎2008 Apr 16 4:19 PM
hey......................
how v can use varients after saving it
‎2008 Apr 16 4:23 PM
Hi
Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
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
http://help.sap.com/saphelp_nw70/helpdata/en/c0/98037ae58611d194cc00a0c94260a5/content.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/73/69ee3c55bb11d189680000e829fbbd/content.htm
Regards
Kiran Sure
‎2008 Apr 16 4:25 PM
Hi Ankur,
Suppose i developed a report and it has a selection screen with 10 fields.
Fill all the fileds and save it as varinat.
So the second time you run the report again. there will be a button side by the execute button.
So when you click on this it will show all the varinats that you created, when you click on a aparticular variant, the selection screen will be filled with the details that you are already saved.
This way your time will be saved while testing.
This is one advantage.
One more is when you wantt o run the progrmas in batch mode you have to define a job, for this also the varinat is required.
Si in summmary,
The variant is used to populate the fileds on the selection screen automatically once its saved.
<REMOVED BY MODERATOR>
Regards,
sasi
Edited by: Alvaro Tejada Galindo on Apr 16, 2008 1:33 PM
‎2008 Apr 16 4:22 PM
hi ankur sharma,
if u have a 10 parameter and u have to enter some value in that before output is displayed.so if u are running that report
10 times then u have to enter that values ten times.
Insted of that what i will do is i will save that values in that
parameter(as Variant) and when ever i run that report just if i click on that variant it will display that default value in parameter and directly i can press execute.
Hope this will solve u r problem.
<REMOVED BY MODERATOR>
Thanks and regards,
Rajesh.
Edited by: Alvaro Tejada Galindo on Apr 16, 2008 1:25 PM
‎2008 Apr 16 4:24 PM
hi ankur,
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
Variants: Overview
Use
Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
For further information about selection screens, see Working with selection screens in the ABAP User's Guide.
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.
Variants in Dialog Mode
In dialog mode, variants make things easier for the user, since they save him or her from continually having to enter identical values. They can also make the selection screen easier to read, because you can use them to hide input fields. Running an executable program with a variant containing an optimal set of values also reduces the capacity for user error. The optimized database selections speed up the runtime of the program.
Variants in Background Mode
Variants are the only method for passing values to a report program in a background job. Therefore, when you run a program in the background, you must use a variant (or SUBMIT... VIA JOB). To avoid you having to create a new variant each time you run the report, ABAP contains a mechanism allowing you to pass variable values to variants. See variable values in variants.
To ensure that an executable program is always started using a variant, you can specify in the program attributes that the program may only be started in this way.
Features
Creation of variants
Display, change, copy, print, and delete variants
Use and definition of variables in variants
Variable date calculation
User-specific fixed values
Fixed values in table TVARV
Initial Screen
You access the variant maintenance tool from the initial screen of the ABAP Editor. Enter the name of the program, select Variants in the Sub-objects group box, and then choose Display or Change.
Functions
The above screen allows you to:
Create variants
Display the variant directory
Display and change values and attributes
Copy, delete, and rename variants
see this url for complete details on variants
http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm
thanks
karthik
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 16, 2008 1:30 PM
‎2008 Apr 16 4:25 PM
hi ankur sharma ,
Just use ( shift+F5) and select the variant name what u have given then that default values will be stored in the parameters
and u can run that report .
<REMOVED BY MODERATOR>
Thanks and regards,
Rajesh.
Edited by: Alvaro Tejada Galindo on Apr 16, 2008 1:31 PM