cancel
Showing results for 
Search instead for 
Did you mean: 

Run PT60 background schedule job on daily basis.

Former Member
0 Kudos

Dear Expert,

i need your advice to schedule PT60 job automatically in morning as well evening.

1.I made a pT 60 varinat.

2. Then go to SM36 , define job name, job class,.

3. Then go to Job Wizard

4.enter job name and target server

5.Now there are 3 steps are coming.

5.1 ABAP Programe step

5.2 External command a step

5.3 External Programe as a step

here plse advice,, which one i need to select.. and what are the further steps required.

Regards,

Sharma

Accepted Solutions (0)

Answers (4)

Answers (4)

venkateshorusu
Active Contributor
0 Kudos

If your query is answered you can close thread as well.

Regards

Venkatesh

venkateshorusu
Active Contributor
0 Kudos

Once your query is answered you can close thread.

Regards

Venkatesh

Former Member
0 Kudos

Dear Venkatesh,

Thanks a Lot  for your reply.

i have done all steps as per your advice.

Please advice: what date need to be mentioned in Evaluation Up To Field::


As we are running job on daily basis on 2 time. one is in early morning and other in afternoon.

please correct if i am wrong....

I put all the data in PT60 screen and then save as a variant.

(((I have not execute PT 60 while making variant:::::)))

Then saved PT60 Variant i am using in job scheduling..

Regards,

Sharma

Former Member
0 Kudos

Hi Rohan,

through this process i think we cant give dates.

as you said earlier that you are doing with ABAP program, in that case check the dates as system date. when ever your job will run system automatically take that day system date.

Former Member
0 Kudos

Ok Praneeth,

Let me check this and update you soon..

Regards,

Sharma

venkateshorusu
Active Contributor
0 Kudos

Go to PT60 and pass Personnel number, Evaluation schema,Time statement variant,keep evaluation up to as blank check display log,test run then click on F8 later check how system is working till what date system is executing time evaluation.

Accordingly you can define variant.

Regards

Venkatesh

Former Member
0 Kudos

Dear Yadav,

Thanks again your back to back reply.

So after executing PT60, i need to save as varinat..

Please correct, if i am wrong.......

Up to now:: i just enter data on PT60 screen, and then save the varinat.

Regards.

Sharma

venkateshorusu
Active Contributor
0 Kudos

Go step by step.

1) Create a variant before scheduling Job i.e usually it should be executed for all the employees so keep blank as personnel number we need schema enter it Time statement variant is required enter it and rest others not required since you do not enter evaluation up to system picks the current date as evaluation up to date, So test it for one two personnel number for your understanding.

2)once variant is ready according to the requirement then define a Job where you can call the variant and program name as mentioned in images.

3)Go to SM37 once job is executed you can check the status and log of the job by clicking on spool and log of the job how many personnel numbers selected and successful, unsuccessful details etc.

Regards

Venkatesh

venkateshorusu
Active Contributor
0 Kudos

Once your query is answered you can close thread with marking it as correct answer.

Regards

Venkatesh

Former Member
0 Kudos

Definately Bro,,

Please tell me, after putting all values in PT60. shall i run pt60 and then make a variant...

Or

Putting required values on PT60, need to make a varinat. Means Without running PT60..

Please clearifyy....

Regards,

Sharma

venkateshorusu
Active Contributor
0 Kudos

As mentioned earlier Go to PT60 and pass Personnel number, Evaluation schema,Time statement variant,keep evaluation up to as blank check display log,test run then click on F8 later check how system is working till what date system is executing time evaluation usually if you do not pass evaluation up to time evaluation will be execute till current date check it for your better understanding.


Later once you are confirmed that input parameters are fine then remove test run, display log rest everything same then save it as a variant  the same can be called in SM36.


Why i asked you to execute test run is it should meet your business requirement that can be analyzed with test run even though if you do not execute program no issues but you should be confident that it works as desired then no point of program execution before saving it as a variant.





Regards

Venkatesh



Sanky
Active Contributor
0 Kudos

Hi Rohan,

Check with your ABAP consulatnt and Basis Consultan. They wtill schedule it through SM35.

Regards,

Sankarsan

Former Member
0 Kudos

Hi Man,

Apperciate for your quick reply.

We are doing in that way only.

But unable to get solution.

regards,

Sharma

Sanky
Active Contributor
0 Kudos

Hi

Create a job where you have to give the program name and daily schedule time consult with basis consultant.

Regards,

Sankarsan

Former Member
0 Kudos

Dear Sankarsan

we are going to run background job on daily basis.

So what vales or date i need to mention in given below fields in PT 60 Screen.

1. Forced recalculation as of

2. Evaluation up to

Program Option:

Display Log : need to mark or not

Test Run : need to mark or not

Regards,

Sharma

Former Member
0 Kudos

Hi Rohan,

If you are running this PT60 Job every day then ask ABAPer to check System date (SY-DATUM) in the both fields.

when ever PT60 run in the background job both fields will updated with system date (present date of the system)

venkateshorusu
Active Contributor
0 Kudos

Go through below images and check whether it is working or not.

Regards

Venkatesh

venkateshorusu
Active Contributor
0 Kudos

it is depends up on individual consultant usually forced retro is not required Evaluation up to is required display log is not required test run is not required if it is a scheduled job for all the employees in live system.

Regards

Venkatesh

Former Member
0 Kudos

Dear Venkatesh,

Now all step are done.

Now system will run job automatically.

So where i can check the results.

Eg: Currently users are running PT60 on daily basis...

so user can see in log..

So my question here is: after running Job in background,, where we can check the log...

Regards,

Sharma

Former Member
0 Kudos

check the Time cluster table: PT_CLSTB2

sikindar_a
Active Contributor
0 Kudos

Before posting have you checked with ABAP Consultant or latest searched the forum?

Former Member
0 Kudos

Hi Sikandar,

I am reading  this link scn.sap.com/thread/3221163 .

Also Abap and basis consultant besides me  only.

but unable to find solution.

Please advice for the same.

Regards,

Former Member
0 Kudos

Hi Sikandar,

we are going to run background job on daily basis.

So what vales or date i need to mention in given below fields in PT 60 Screen.

1. Forced recalculation as of

2. Evaluation up to

Program Option:

Display Log :

Test Run :

Regards,

Sharma