cancel
Showing results for 
Search instead for 
Did you mean: 

How to monitor background jobs automatically

Former Member
0 Kudos

Hello,

How to monitor background jobs automatically

(we have more then 100+ jobs in a month and some jobs are repeating 4 - 5 times in a same day )  Now i am searching any salutation for monitor background jobs automatically

Let me know the  options

Thanks,

Suresh

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Hello All,

Thanks for your replay,

We have another requirement with (monitor background jobs automatically)

After successfully finished job , we need to know the file is sent out from SAP (AL11 ) or not.

Thanks,

Suresh

Former Member
0 Kudos

Hi,

If your batch job is creating a file in SAP and sending it to another system. These are some things you could do, if you have tools and resources available.

1) When the job ( SAP program ) runs to create the file, ensure there is no file already existing in the landing zone ( AL11), if it does then do not over write, just throw an error, because the last file created did not leave the landing zone, because the other system or middle were did not pick it up. Usually when the middleware or third party system picks up your file from the landing zone, it may delete the file, so next time fresh file can be picked up. It is always good to have date and time stamp on the file that you create on the landing zone, so we could uniquely track which files were creates, when it was created and transmitted.

2) Lets say your job created the file in the landing zone, the FTP program or what ever service or tool that you use to pick the file, if it is running as per design, then it should pick it up, if not you need to see why it is not running, usually the FTP softwars like GIS will throw an error if no file is found, and we could track them.

I am sure there are many other ways to handle if the file really left the landing zone or not. Something to think about. thanks

Former Member
0 Kudos

Hi Suresh,

Write a custom program which checks the status of the jobs.Make use of the table TBTCO for achieving.Once status of the job is changed you can trigger some mails based on the error.I have some sample codes which i used for APO related process chain monitoring in my early days.

Hope it helps.

Regards,

Kannan

Former Member
0 Kudos

By the way, did you look into note - 553953 - RZ20: Monitoring background jobs ?

This may work. thanks

Former Member
0 Kudos

Hi there,

As other pointed out Like Redwood, other ones to look into are Tivoli, Autosys etc. Thanks

Former Member
0 Kudos

Hi Suresh,

Redwood provides that option to trigger email notifications, if the job did not start, cancelled and we can add email notification for job completion too.

Notifications through SM37 is not possible and is a manual way to monitor the jobs.

Hope this helps.

thanks

Mos

0 Kudos

Other than SM37, with a stapler holding down F8, you don't have a nice option directly in SAP.


Have a look at Redwood Software. They have a solutions to truly monitor jobs automatically.

Redwood uses 'action rules', and with these you would never need to check a job in SM37 again.

You start with assigning business logic to a job - "what needs to be checked after the job runs? and who should be notified ? Can some error messages be ignored, and others trigger notification? Is the data in a spool file correct? (ex - is balance of account zero? If not, automatically post correcting entry to the GL.etc) This enables full automation of a business process, not just automation of a background job.

bxiv
Active Contributor
0 Kudos

Have a look into JobMon in SolMan - http://help.sap.com/saphelp_sm71_sp12/helpdata/en/82/b3ab51bb005905e10000000a44538d/content.htm?fram...

The downside is that SolMan must be at least stack release 10 for the UI5 features.

Laszlo_B
Active Contributor
0 Kudos

Hello Suresh,

transaction SM37 shows the status of the background jobs. You can specify a selection in SM37 to narrow down which batch job / program / timestamp is specifically required, or even batch job status.

Or was there something else you meant under automatic background job monitoring?

Best regards,

Laszlo

Former Member
0 Kudos

Hello Laszlo,

Now we are monitor  though SM37 only.   Our  requirement  is once completed the job automatically (Success or failure  )   system will intimate to respective person.

Thanks ,

Suresh

Former Member
0 Kudos

Hi Suresh,

It will be possible using a Solman System. Please check the below link. It's an old article but would be helpful... As it clearly says ''It can be used to monitor important selected background jobs and assign the possible alerts to the corresponding business process steps within your (core) business processes. This paper will provide you with guidelines how to set up job monitoring on the basis of given examples.''

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/97d2e8b3-0b01-0010-b787-b8ce558a5...

Once you implemented this, please let know/may post your findings/implementation status here itself.

Thanks

Sriram