cancel
Showing results for 
Search instead for 
Did you mean: 

Job shceduling in SM36

Former Member
0 Kudos

Hi,

I have schedule a process chain every day that to 4,5,,6.....19 hrs.So Invariabely I have to go for job scheduling in SM36.

I dont know how to select the jobs and also what the server name is to be given,also programe name and varient.

Please help me how to choose all these parameters.

Accepted Solutions (1)

Accepted Solutions (1)

former_member189406
Active Participant
0 Kudos

Hi,

Instead of Job scheduling, try this option.

Define the Process chain that needs to be executed at 4,5,,6.....19 hrs as Event driven chain.

Create a Event in SM62, say ZSTART_PC and specify this event in the PC.

Create an ABAP program to trigger the event using the FM BP_EVENT_RAISE.

Have input selection parameters as time.

create variants for the different times (4,5,,6.....19 hrs ) you want to execute the PC.

Schedule the ABAP program as an hourly job.

Yr program will run for every hour and chk if the time specified in the variant is equal to the System time.

If so, the event will be triggered using the FM.

As event is triggered, the PC also will be triggered.

And yr issue will be solved.

P.S : You may think that this is gonna take time, but this will surely solve yr problem

Regards,

Balaji V

Former Member
0 Kudos

As I am not an ABAPer.I dont know the coding part.So I have chosen this option and also as there is some constraints to use other options.

Former Member
0 Kudos

Hi Vasu,

If you are in 7.0 then I suggest you schedule your Process Chain to run with a Periodic value of 1 hour and after the Start process in your chain include a decision step which will check the System Time whether it is in between 4 to 19 hrs and on success you connect it to the next step in the chain.

or

Create the copy of Process Chains for each hour you need to execute and schedule them to run individually daily.

Regards,

Neelesh Jain.

Former Member
0 Kudos

Can you explain it please?

Former Member
0 Kudos

Hi,

As per my understanding your requirement is to run a chain for every one hour starting from 04:00 hrs to 19:00 hrs.

So if you are using 7.0 then Schedule your Process Chain to run every hour. To schedule your chain on an hourly basis go to the plan view of the chain and right click on the Start process and select display variant,click on edit then select the option direct scheduling and click on change selections and give the date and time suppose you have given 24.07.2008 04:00:00 and then click the Periodic Job check box and then click on Periodic values and select hourly. and check and save.

But by doing this from 24.07.2008 04:00:00 onwards the chain will continue to run every hour. but after 19:00:00 run you do not need to run it. so I suggest you to add decision process type after the start process and write the formaula to check whether the System time falls in between 04:00:00 to 19:00:00 or not, if it succeeds then connect to next step or stop.

Or

The simpler way will be creating the copies of the Process Chain. Suppose Test is the name of the chain. you create the copies of Test such as Test_0400, Test_0500... Test_1900.

After creating schedule Test_0400 to run daily at 04:00, Test_0500 to run daily at 05:00 and so on.

Regards,

Neelesh Jain.

Former Member
0 Kudos

Thanks a lot.

But I have doubt about the Name of the ABAP programe and also the varient to be given.

I have given the Name of the ABAP programe as RSPROCESS and the varient as &0000000001412.I need an explaination what this RSPROCESS is doing and also what this varient is doing and also how to create this varient.

Former Member
0 Kudos

Can any one please take a look at it?

Former Member
0 Kudos

Hi Vasu,

With the options I have suggested you dont need to use any ABAP Program, so can u tell me where do u want to use that program.

Generally for each process type in the Process Chain, a background Job is created for the execution of the process for example for Start process 'BI_PROCESS_TRIGGER' or Local Chain process 'BI_PROCESS_CHAIN', these jobs include the program 'RSPROCESS' and for each process a unique Variant is automatically assigned.

Also this program generally is used to lock and unlock the resources required by that process and also report the status of failure or success.

Regards,

Neelesh Jain.

Edited by: Neelesh Jain on Jul 23, 2008 7:21 PM

Answers (0)