Sometimes the consultants come to the Basis guy asking to do unusual things but required by the business. I ain't different and some requirements come and I would like to share with you one of them: schedule not supported by SAP standard.
The project needs is following:
As known by Basis, this kind schedule isn't supported by SAP. If you set an hourly job there isn't option for time frame, window or anything like. After think a little about possible solutions, I conclude there are only 2 possible solutions without ABAP development:
For the first solution it is easily configured but with high maintenance effort, because if for some reason the business decided to add steps or even change the variant, will exist lots of different jobs to change.
The default job triggers are described bellow:
This runs the job immediately you save the job
Set an schedule to the job (specified date and time)
Run the job after another job.
Run the job after an occurrence of an SAP event <--- This is the matter of the Blog!
Run the job only determined operational mode is running. This option can be used if the job schedule is the same of the operational mode configured.
In SAP Netweaver some events are triggered for too many different reasons. The standard installation comes with lots of pre configured events and allows to create your own events. Following the SAP standardization create your own starting with "Z" or "Y".
On SM62, click on new. The following window pops up:
Set the event's name (starting by Z or Y) and a description for your event.
The matter of this blog is not to teach you how to schedule a job but how to make it using a special schedule. Due this, I will only take care about whats change on the regular configuration. To use the event, click on after event. This will enable the After Event area to be filed up. Select your event from the math box and do not forget to set it as Periodic Job.
My servers are windows servers, but this setup can be done in any operational system (on linux use the crontab and etc). The most important is to understand the procedure by itself than only follow a procedure. On windows task scheduler create a new task and set your schedule. Here I will show you an example. Adjust it for in accordance of your need.
Details | Screenshots |
---|---|
Set the task to run independent of the user is logged. | |
Select the triggers tab | |
Here it is the most important detail: This trigger will be executed Daily at 04:38:41 PM, will trigger every minute the SAPEVT for 12 min. In short - This trigger will start 4:38pm and will stop 4:50pm | |
On the tab Actions, you must execute a program called as SAPEVT.exe. This program is located in your kernel folder. Set as argument the name of your event and the name of your system following the standard <trigger's name> name=<SID> example - Z_TASKSCHEDULER name=SE1 |
And that is! Your special schedule is set successfully on your SAP system. Keep in your mind from now the trigger is the Windows Task Scheduler instead the SAP by itself.
I hope this would help you and see ya next time!
Frederich Murador
SAP Basis administrator
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |