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

Get which programs are still running

alejandro_romero2
Participant
0 Likes
1,253

Hi gurus i need to to make a report, in this report i have to introduce the name of one program or transaction and i have to

show if this program is istill running or not, any idea?

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
1,212

try

This should work :  BP_JOB_STATUS_GET
CALL FUNCTION 'TH_WPINFO'
     EXPORTING
         SRVNAME        = SERVER_INFO-SERVER
     TABLES
         WPLIST         = LOC_WPLIST
     EXCEPTIONS
         OTHERS = 1.

Hi gurus i need to to make a report, in this report i have to introduce the name of one program or transaction and i have to

show if this program is istill running or not, any idea?

7 REPLIES 7
Read only

former_member156446
Active Contributor
0 Likes
1,213

try

This should work :  BP_JOB_STATUS_GET
CALL FUNCTION 'TH_WPINFO'
     EXPORTING
         SRVNAME        = SERVER_INFO-SERVER
     TABLES
         WPLIST         = LOC_WPLIST
     EXCEPTIONS
         OTHERS = 1.

Read only

0 Likes
1,212

thanks a lot your answere works, so i have another question do you know how can i get which work procces is assigned to a program?

Read only

0 Likes
1,212

"TH_WPINFO" which returns a list of work processes with program names

Read only

0 Likes
1,212

yes but the program name that this funcion returns arent the names of the programs.

For example supose i have to run the program zpru, then inside the code of zpru i need to get the work process asigned to zpru.

If i run sm50 in the report name i dont get zpru ,so this function does not work in this case so what should i do?

Read only

0 Likes
1,212

I executed FM and sm50 in same server in two diff sessions I am able to see the same results...

(I am the only one working on my whole global server _)

Read only

0 Likes
1,212

it doesnt work for me , another idea?

Read only

Former Member
0 Likes
1,212

hii,

you can chk these FM.

BP_IS_JOB_ACTIVE_IN_WP

BP_JOB_CHECKSTATE

BP_JOB_CHECKSTATE_SM37B

BP_JOB_STATUS_GET

BP_JOB_READ

To explore more FMs look at FG BTCH

rgrds,

Shweta