2013 Jun 05 11:50 AM
Hi experts,
I'm new to ABAP. i need to create background job scheduling for sending a mail twice in a month(once in 15 days). i.e every month 15th and last date of a month. how to set this in sm37 . I've used job wizard. i found weekly , monthly .but how to set for every 15 days.Please help me out in this.
Thanks in Advance
Regards
satish kumar
2013 Jun 05 12:47 PM
Hi Satish,
Under Period Values in Start Condition in SM37, there is an option called "Other period". Select that option and specify the days as 15.
Regards,
RN
2013 Jun 05 1:00 PM
You do see that this doesn't meet the posters requirements. He said "every month 15th and last date of a month". Some months are longer than 30 days (and one less). Every time there is a difference, Your solution will be moved off of the intended day.
Neal
2013 Jun 05 1:13 PM
I missed that. Apologies. Better check with the Basis team if they uses any job scheduler (eg. CPS, Control-M, etc). It would be easier for them to schedule using these tools.
If it has to be done from SM37 itself, then the best way I can think of is to have 3 instances of the job scheduled:
1. Period Value monthly - 15th of every month
2. Period Value monthly - 30th of every month
3. Period Value monthly - 31st of every month
2013 Jun 05 1:05 PM
I have a solution, but I don't think that you will like it. Perhaps someone will post a better solution.
A long time ago, I built a program that would inspect the current date. Then based on the program's variant, it would submit a job if it were the right date. You then schedule it daily and it schedules your intended job step for you. Would that be something that would interest you?
Neal
2013 Jun 05 1:13 PM
Hi Satish,
You can do that in the SM37 in the Step Creation process.
Process the Job by selecting Other Period option and mention 15 days.
You can also check the SAP standard Program in SE38 which are related to Background jobs with the search term as RSBDC* or RSBTC* or RSB*..
Also for sharing the knowledge to you can do R&D on Event in SM37 for Backgrounds. This will be helpful to you alot in your career going forward.
Hope this helps.
2013 Jun 05 1:55 PM
You can create 2 jobs:
Job 1 ( Every 15th day of the month) :
-In SM36 specify Start condition:
-Date/Time->Scheduled Start: pick your first date let's say 06/15/2013 ->Time -> Period values -> Monthly -> Save -> Save . Don't forget to specify your step of course...
Job 2:
-In SM36 specify Start condition:
- the very last button that looks like >..
Here's the tricky part - your calendar should include all days as working days. You might need to create a new one for that.
-Choose you calendar -> Workday = 1 -> Time -> Workday relative to End of month -> Save -> Save Don't forget to specify your step of course...
Hope it helps
2013 Jun 05 3:05 PM
Hi Satish,
try the following solution:
1) schedule 1 job with starting 15 of the month and period values "Monthly";
2) schedule another job starting on a 31st for a monthly period, and it will run on the last day of all subsequent months.
Hope this helps.
2013 Jun 05 3:50 PM
2013 Jun 06 8:34 AM
2013 Jun 06 12:58 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |