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: 

FM to get background job status

former_member187400
Active Contributor
0 Kudos
4,885

Dear fellow,

Anybody know the FM to get status background job in CRM whether it's active/cancelled/finished/schedules?

If you have that function and don't mind; could you share it to me? And explain to me how i fill the parameter & how i use it well.

Because if seek; i found parameter named JOBCOUNT; and really i don't know how i fill that parameter..

many thanks for ur attention.

best regards,

Daniel N.

  • available points for appraisal..

6 REPLIES 6

Former Member
0 Kudos
747

Refer to the link:

- Guru

Reward points for helpful answers

0 Kudos
747

look in table TBTCO to find the job number (count) by job name as selection criteria..

also go to SE80,Function Group - BTCH,u will find all the FMs related to Batch Jobs.

Hope it will help.

AMit

0 Kudos
747

Dear All,

I'd like to say thq for your attention,,,,

And Amit, i still don't know/get knowledge how to make a code.. If i only know the name of job; and then i search jobnumber there; the outcome must be more than one..

And how do i know what jobnumber that's active/running.

Actually, i wanna make a program like this:

1. I've background job to run some program for instance Program A where this background job run periodically.

2. I wanna make validation in that program A; if the previous background job still running, it means the next background job can't be executed.

3. I'll make program to get current status, to check whether the first background job is running, if running it means the next background job can't be executed.

Could you explain me..

Thq a lot fellow.

0 Kudos
747

if u will see table TBTCO,u have to just specify the job name and if u know tht the job A is shceduled daily then u can simply give the start date as Sy-datum and see the fetch that record in ur program..

and this will also have a field called 'Job status' u can make use of tht field to call or not call the next batch job..

hope u got it

amit

Former Member
0 Kudos
747

Niel,

Use FM

" BP_JOB_STATUS_GET"

Pls. mark if useful.

jayanthi_jayaraman
Active Contributor