Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Search a background job in SM37 with Jobcount and not the Jobname?

Former Member
0 Kudos

Hi Guru's,

Posting this query as I was unable find the same when searching it in the SDN.

Scenario :

I'm scheduling a background job through an ABAP program using the normal procedure

Step 1 -- FM "JOB_OPEN"

Step 2 -- SUBMIT <ABAP_PROGRAM> and Return

Step 3 -- FM "JOB_CLOSE".

By this way the Job is being scheduled and spool gets generated.

To check the Job status...in SE37 I give the Jobname and execute.This will list out all the jobs that have run in that period of time.

I just want to know how to include the Jobcount in the search so that I will only get the job of that particular jobcount displayed.

If this question has already been answered...please guide me through as I'm unable to find the same.

Warm Regards,

S V...

7 REPLIES 7

Former Member
0 Kudos

Hi Sunil,

We can track the background job in SM37.

Options are there to put your sap user name, from time, to time and job status, so that you can see your job progress.

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

If you want to do it in program, you can use FM SHOW_JOBSTATE by passing job name and count.

Other option is to check in table TBTCO. I dont think if SM37 has such option.

Thanks,

Vinod

0 Kudos

Thank You Nivedita & Vinod for your immediate replies.

In my scenario I have an ABAP Program (a report) which will display the Jobname and Jobcount in the output.

My intention is to provide the User the option to check the job with the jobcount so that he can check the specific job instead of getting confused checking bunch of jobs.

Example...

-- User runs the report now with few set of data and runs the same report at later point of time of the same day with different data.When he checks the job in SM37 the option we have is to provide the jobname & username which will display a set of jobs.

-- I want to know if we can include JobCount or any other parameter if available so that,User can check that particular job alone.

Warm Regards,

S V..

0 Kudos

The start time of the job changes each time.

The user can determine the job by seeing start time. I guess by seeing log, and start time user can understand which job is completed.

You need a different parameter other than start time ?

0 Kudos

HI,

Specifying the time on which the job was run would help ??

0 Kudos

Hi,

You can simply make this as interactive report. User can click on output row and ABAP coding can be done to display the job by calling standard FMs. This would be more user friendly solution.

Thanks,

Vinod.

0 Kudos

Hi,

Use Tcode SMXX.

WR,

PHB