‎2009 Apr 22 6:24 AM
Hi All,
Can any body tell how to create varient from program?
Ex. I am schedulling a job through my program. and the program which i am submitting to 'JOB_SUBMIT'
function module needs a varient which will consist of only one input field and that field is changing
very frequently so i want to create verient as input field changes..
‎2009 Apr 22 6:28 AM
Well, SE38 is where you can maintain variants. What's the nature of the field? If it's date related, then you can use built in variables in the variant attributes screen. Otherwise, you can create your own using transaction STVARVC, and programmatically set the values.
For details - search the forums.
matt
‎2009 Apr 22 6:28 AM
Well, SE38 is where you can maintain variants. What's the nature of the field? If it's date related, then you can use built in variables in the variant attributes screen. Otherwise, you can create your own using transaction STVARVC, and programmatically set the values.
For details - search the forums.
matt
‎2009 Apr 22 6:30 AM
Hi,
pass required values to the fields on selection screen and press SAVE button on the same screen..
It navigates u to next screen, give the required variant name & description and save it again..it creates a variant and comes to selection screen.
If u want to see the variant prees SHIFT+F5 on selection screen, it shows all the available variants.
Regards,
Pavan
‎2009 Apr 22 6:38 AM
Hi Vishnu ,
Thanks for your reply. But I want to create vareint programmatically.
‎2009 Apr 22 7:00 AM
>
> Hi Vishnu ,
> Thanks for your reply. But I want to create vareint programmatically.
As I understand, you want to create values for the variant programmatically. For that, see my earlier response. And though I frown on posting just linkes, janagar sundara...'s second link has what you need.
You would only want to create a variant programmatically, if the selection fields on the screen were changing all the time. And that is non-trivial.
‎2009 Apr 22 6:34 AM
hi
enter the values which required on selection-screen and use save button .
use u r meaning full name for variant and description
If u want to see the variant prees SHIFT+F5 on selection screen, it shows all the available variants.
~linganna
‎2009 Apr 22 6:37 AM
In SE38,choose the program and select Variants option and then create and provide description for the variant and then save it,
‎2009 Apr 22 6:39 AM
Hi Gaytri,
I want to create varient through program. Is there any Function module to create vareint.
‎2009 Apr 22 6:45 AM
https://wiki.sdn.sap.com/wiki/display/Snippets/setdefaultvarient+inreports
https://wiki.sdn.sap.com/wiki/display/ABAP/Creatingdynamicvariantusingtable+TVARV
hope it will be useful for you
‎2009 Apr 22 6:59 AM