‎2010 Mar 16 3:22 AM
Hello experts,
I want to set variants dynamically on a selection screen. Please help me.
Thanks,
Ashwani.
‎2010 Mar 16 6:11 AM
Hi Ashwani,
The variant can be set using:
SUBMIT program name [USING SELECTION-SET <var>]
USING SELECTION-SET <var>
This option tells the system to start the called program with the variant <var>.
For further details you can refer the link below:
http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
Also refer,
http://sapbrainsonline.com/sap-training/SAP-tutorial-pdf-material_425.html
Regards,
Soundarya.
Edited by: K.Soundarya Singh on Mar 16, 2010 7:16 AM
‎2010 Mar 16 5:56 AM
HI Ashwin,
See below Eg:
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
Regards
Srikanth M
‎2010 Mar 16 6:08 AM
what kind of fields you are using in the variant
if it is like data kind of variable then standard itself having the option for dynamic variant
and if it is some other fields then you have to use selection-set
as said by preivous friend
cheers
s.janagar
‎2010 Mar 16 6:11 AM
Hi Ashwani,
The variant can be set using:
SUBMIT program name [USING SELECTION-SET <var>]
USING SELECTION-SET <var>
This option tells the system to start the called program with the variant <var>.
For further details you can refer the link below:
http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm
Also refer,
http://sapbrainsonline.com/sap-training/SAP-tutorial-pdf-material_425.html
Regards,
Soundarya.
Edited by: K.Soundarya Singh on Mar 16, 2010 7:16 AM
‎2010 Mar 16 6:39 AM
‎2010 Mar 16 6:51 AM
Hi,
Welcome to SCN!!!
Please search in SCN. We have lot of information on this topic.
Checkout below blog which dicuss about the same.
/people/vinod.vemuru2/blog/2010/01/04/how-to-create-a-dynamic-variant-and-setup-batch-job-with-dynamic-variant
Thanks,
Vinod.
‎2010 Mar 16 7:18 AM
Hi,
Have a look at this [link|http://www.divulgesap.com/blog.php?p=MTM=]. It has a procedure to create dynamic variant for Delivery due list. VL10 transaction.
Hope it is useful.
Regards,
Ravikiran
‎2010 Mar 17 11:29 AM
Hi,
These are the steps.
1. First maintain a variable with values in table TVARV. This can be done from transaction STVARV. Later this variable needs to be assigned to the variant.
2. Next create the dynamic variant by pressing the SAVE button on the selection screen.
3. In the next screen (ABAP: Save as Variant) enter Variant name, description, set the u2018Selection variableu2019 (L) radio button and press u2018Selection variableu2019 push button.
4. In the next screen check that green traffic light is on under column T (T: Table variable from TVARV).
5. Now from the popup select the variable name created in Step1 and save the variant.
Sumit
‎2011 May 20 6:35 PM
Hi Ashwin,
You can use the table update VARID, its containing the variant parameter.
If you are using any job just make report before to update this table with dynamic variant value details and your job will run with new variant parameter.
For changing variant parameter you can use function module FASU_RS_CHANGE_CREATED_VARIANT.
Regards
Dhirendra Pandit