‎2007 Mar 22 6:11 AM
Hi,
I have created a program of my own in SE38.I need to schedule this program so as to run it once in a week.When I went to SM36 it asked for a variant.Could you please help me to understand how we create a variant for a program and then schedule it?
‎2007 Mar 22 6:19 AM
If you have any selection screen parameters for your program you need to enter the values for those fields in runtime. So, if you schedule your program in background to execute then there is no one to do this job. Here comes the concept of Variant.
With variant you defince what are the selection field values in the runtime. During runtime the program picks this values and runs the program.
When you execute your program which has selection fields, you enter the values and then you click on 'GO TO ' tab and 'SAVE AS VARIANT'.
When you schedule your program in background, give this variant also. Then it will run automaticall.
‎2007 Mar 22 6:14 AM
Hi,
When you press the F8 button, Selection screen will come, then enter the values in the Selections screen and press SAVE button, thne it will ask the variant name give the variant name and press ok.
then goto SM36, and create the background job, there give the program name and give the variant name then , schedule the program to run once a week
regards
Sudheer
‎2007 Mar 22 6:16 AM
Hi Sandeep,
As you have said go to SM36 , there it asks for variants.
Variants means the input which you have to give before executing the program itself so that when you schedule it for background then it automatically asks for the variant and when you specify a variant based onthe input given by you, the execution starts.
Hope this resolves your query.
Reward all the helpful answers.
Regards
‎2007 Mar 22 6:17 AM
If u program has selection-screen then the you have to create variant. If has not selection screen then no need to pass variant, just leave it as blank.
If u want to create a variant, then execute the program, give input in selection screen and press save button.
‎2007 Mar 22 6:18 AM
Hi,
Goto Se38 give program name.
and execute it.And then give input.And then save it .
after saving it will ask the variant name And descriptin.
Then ur variant is created.
‎2007 Mar 22 6:19 AM
If you have any selection screen parameters for your program you need to enter the values for those fields in runtime. So, if you schedule your program in background to execute then there is no one to do this job. Here comes the concept of Variant.
With variant you defince what are the selection field values in the runtime. During runtime the program picks this values and runs the program.
When you execute your program which has selection fields, you enter the values and then you click on 'GO TO ' tab and 'SAVE AS VARIANT'.
When you schedule your program in background, give this variant also. Then it will run automaticall.