Application Development and Automation 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: 
Read only

FM to check programs running in background

Former Member
0 Likes
2,450

HI All,

Is there any FM to Check if a program is already running at background by program name .

Thanks

Neha

HI All,

Is there any FM to Check if a program is already running at background by program name .

Thanks

Neha

5 REPLIES 5
Read only

Former Member
0 Likes
1,638

Hi,

May be you can refer to the table TBTCP - Background Job Step Overview available.

Regards,

Santhosh.

Read only

Former Member
0 Likes
1,638

YOu can use the Function module:

BP_JOB_STATUS_GET

First , get the jobname(JOBNAME) and jobcount(JOBCOUNT) using the program name(PROGNAME) using the table TBTCP

Regards,

Ravi

Read only

former_member222860
Active Contributor
0 Likes
1,638

Hi,

You can check like this too

tables: tbtco.

parameters: p_jobnam like tbtco-jobname   default '*Backgroundjobname*'.

select * from tbtco
        where jobname like '%Z_jobname_list%'
          and status = 'R'.

  if sy-subrc = 0.
     write: / 'Job still running', tbtco-jobname, tbtco-sdlstrttm.
  else.
     write: / 'No job is running at the moment'.
 endif.
endselect.

Cheers|

Read only

Former Member
0 Likes
1,638

Hi,

Check the fm.

BP_JOB_STATUS_GET

Regards

Read only

former_member435013
Active Participant
1,638

Hi,

use Function "BP_FIND_JOBS_WITH_PROGRAM" and check the resulting joblist for entries with not initial strdate/strdate and initial enddate/endtime.

Regards

Walter Habich