How to detect job completed - requesting sample code

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Guest

How to detect job completed - requesting sample code

Post by Guest » Fri Nov 01, 2002 5:09 pm

Hello,

Does anyone have code to share on how to detect if a job running in the background is finished. Would this work if you manually run the program and then submit it to a background instead of scheduling it using SM36? If you have code to do this, could we have a sample of it just to get us started??

Thank you much

skarkada
Posts: 701
Joined: Mon Oct 21, 2002 1:12 pm
Location: Houston, TX, USA

Post by skarkada » Fri Nov 01, 2002 5:31 pm

You can use the FM BP_JOB_CHECKSTATE. Status value will be "F" if the job has finished.

Look at BP_JOB_* for related function modules. Sorry, I don't have any sample code.
Sudhi Karkada

Chaps
Posts: 32
Joined: Mon Oct 21, 2002 11:01 am
Location: Boston, USA

Post by Chaps » Fri Nov 01, 2002 5:31 pm

See the FM 'SHOW_JOBSTATE'.

Chaps.

pnovdenx
Posts: 127
Joined: Tue Oct 29, 2002 7:46 pm
Location: Tokyo, Japan

Post by pnovdenx » Sun Nov 03, 2002 4:12 am

There is a working code sample in the online help, in the section about job management.
Remi

abap1

job status

Post by abap1 » Mon Nov 04, 2002 6:59 am

PNOVDENX,
can u please post the working sample code?

TIA

Post Reply