2007 Mar 05 5:05 PM
Hi All,
I need to set no. of varaints for one program and this program will run in by selecting varaints one after one background as a batch job.
can anybody tell me how will I goabout it after setting variants?
Is there any sample code which helps me ?
Thanks for the information..
After setting up the varaints and correspnding steps in sM36 ..
What ll be the remaining steps?
if suppose i schedule a job with 72 varaints /steps.and once I release it ..will it execute all steps ?even if one of the steps fails in between..?
2007 Mar 05 5:08 PM
Use Tcode SM36 define a Job & add steps with the ABAP program & one varainat for each step & schedule it.
~Suresh
2007 Mar 05 7:06 PM
Thanks for the information..
After setting up the varaints and correspnding steps in sM36 ..
What ll be the remaining steps?
if suppose i schedule a job with 72 varaints /steps.and once I release it ..will it execute all steps ?even if one of the steps fails in between..?
2007 Mar 05 7:11 PM
to quote SAP help "Job steps run partially independently of each others status. That is, the abnormal termination of one job step does not roll back the work of a previously completed job step if this previous step was executing a commit. If any job step fails, however, then the entire job fails. No further job steps are carried out, and the job's status changes to Canceled. "
~Suresh
2007 Mar 05 5:09 PM
Hi,
You go to SE38 to create different variants for a program then you go to SM36 to create a job with multi steps which will execute a program with different variants (created above).
Please check this links for more detail.
http://help.sap.com//saphelp_erp2004/helpdata/EN/c4/3a7f87505211d189550000e829fbbd/frameset.htm
http://help.sap.com//saphelp_erp2004/helpdata/EN/c4/3a7f05505211d189550000e829fbbd/frameset.htm
Regards,
Ferry Lianto
2007 Mar 05 5:10 PM
you can schedule a back ground job in SM36. Since you have many variants and you want to run one after the other, check if there is a way to mention the variants one after the other. Or else the blunt way of doing it is ...
to create as many jobs as there are variants in SM36.
Award points if it helps.
2007 Mar 05 7:11 PM
Hi,
Once you released, the job will be executed (if you released immediately).
Otherwise the program will be run at the predefined time/schedule.
If one of the steps fails in between..?
The program will be stopped at the failed step.
Regards,
Ferry Lianto
2007 Mar 05 11:44 PM
hi,
Variants are the set of data passed as an input to perform operations.
Alv use varinats to store layouts and the function in question here provides F4 help on the parameter field for veriant.
to know more you can check this-
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
. When you execute your report which has a parameter or a select option it first goes to the selection screen. In this screen you can find in the path,
goto --> variants --> save as variants.
This will lead to a variant attributes screens where you can give ur values for your parameters and select-options and save it by giving a variant name.
After that when you execute the same program another time you can see another button on the selection screen where you can select variant according to the variant name.
You can save any no. of variants.
Usually variants are used for testing for specific values.
For eg. Let us take 5 parameters where the result of the program will vary based on parameter values.
You can test the program by storing a specific values of the parameters in a variant and you can use it during your next execution. ( you need not enter the values for each and every execution. )
Hope this helps you.
sri
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |