03-10-2006 3:46 PM
How would i know(writing ABAP code ) if a job that has been submitted is executed or still pending execution.
I have tried using FUNCTION 'BP_JOB_READ' by it does not seem to serve the purpose.
SOS
03-10-2006 3:48 PM
Have you tried BP_JOB_STATUS_GET yet?
This will return the status of the job.
<i>F1 help on the status field.
Short text
Status of background job
Definition
The following statuses are possible:
Scheduled: Job defined, but not yet eligible to run even if the start condition has been fulfilled.
Released: Job eligible to be started as soon as the start condition with which it was scheduled is fulfilled.
Ready: Job waiting to start. The job has been released and the job's start condition has been fulfilled.
Active: Job is currently running and can no longer be deleted or reset to scheduled.
Finished: Job has been successfully completed. All job steps completed successfully. Note: the background processing system cannot always determine whether an external job step was successfully completed. In this case, the system assumes successful completion.
Terminated: Job was ended abnormally either through user action or through an error in running a job step.</i>
Regards,
Rich Heilman
03-10-2006 3:49 PM
chk this
BDL_READ_JOB_STATUS
give job name and job number u will get status
Job status
R - Running
Y - Ready
P - Scheduled
S - Released
A - Aborted
F - finished
Z - put_active
X - unknown state
Message was edited by: Sekhar