2009 Aug 21 11:08 PM
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?
2009 Aug 21 11:15 PM
try
This should work : BP_JOB_STATUS_GETCALL FUNCTION 'TH_WPINFO'
EXPORTING
SRVNAME = SERVER_INFO-SERVER
TABLES
WPLIST = LOC_WPLIST
EXCEPTIONS
OTHERS = 1.
try
This should work : BP_JOB_STATUS_GETCALL FUNCTION 'TH_WPINFO'
EXPORTING
SRVNAME = SERVER_INFO-SERVER
TABLES
WPLIST = LOC_WPLIST
EXCEPTIONS
OTHERS = 1.
2009 Aug 21 11:15 PM
try
This should work : BP_JOB_STATUS_GETCALL FUNCTION 'TH_WPINFO'
EXPORTING
SRVNAME = SERVER_INFO-SERVER
TABLES
WPLIST = LOC_WPLIST
EXCEPTIONS
OTHERS = 1.
2009 Aug 24 10:18 PM
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?
2009 Aug 24 10:32 PM
"TH_WPINFO" which returns a list of work processes with program names
2009 Aug 24 10:40 PM
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?
2009 Aug 24 10:45 PM
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 _)
2009 Aug 24 10:48 PM
2009 Aug 23 2:23 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |