‎2010 Aug 24 4:32 PM
Hi,
I have a requirement where in i need to schedule a job once in week and last three and first three days of the month.
Can any one pls let me know how to do this. We are using SAP 4.6C .
Thanks,
Raj
Moderator message: please use more descriptive subject lines from now on.
Edited by: Thomas Zloch on Aug 24, 2010 5:44 PM
‎2010 Aug 24 4:50 PM
This will probably cause a few headaches, so why not just schedule it daily? What happens if it runs on the fourth or sixteenth day of a month? Is it a custom program? You could build in logic that quits processing right away if it is not running on a desired day.
Thomas
‎2010 Aug 24 4:50 PM
This will probably cause a few headaches, so why not just schedule it daily? What happens if it runs on the fourth or sixteenth day of a month? Is it a custom program? You could build in logic that quits processing right away if it is not running on a desired day.
Thomas
‎2010 Aug 24 4:55 PM
Hi Thomas,
Thanks for the reply.
This is a standard program and needs to be run once in week and also last three and first three days of the month, due to business requirement. So cant schedule it daily.
Thanks,
Raju
‎2010 Aug 24 5:01 PM
Well, I'm also being handed requirements, and if I see problems, I will discuss them, and sometimes the requirements get changed accordingly.
You could schedule multiple jobs, a weekly one, one on the first, second, and third day for monthly execution, one on a 31st for monthly execution to solve the "last day of month" part, but I leave you with the remaining two.
I'm sure there will be quite complex suggestions coming (events, jobs to schedule jobs, external scheduler, ...) that might not be necessary in the first place.
Thomas
‎2010 Aug 24 5:01 PM
Create a "wrapper" program that submits the standard program only when needed. Run the wrapper program daily.
Rob
‎2010 Aug 24 7:42 PM
Hi Rob,
What is the Wrapper program?
Can you explain in brief what exactly i need to do in that program.
Thanks,
Raju
‎2010 Aug 24 7:49 PM
If you search the forum, you'll find plenty of examples.
Basically, the program looks at the current date and based on whether or not it is the first three days, last three days of the month or a certain day of the week, it submits the standard report with whatever selection criteria you need.
Rob