Skip to Content
0
Former Member
Aug 02, 2005 at 06:36 AM

How do I know if the Job is finished?

20 Views

Dear all:

I'm trying to select data from database after the job(code below) has insert the datas. But seems the data will be selected even earlier than the job inserting data. Question is, How do I wait until I know the job is done with inserting datas? is there a status I can monitor? Thanks...

-


CALL FUNCTION 'JOB_CLOSE_ADK'

EXPORTING

JOBNAME = TBTCO-JOBNAME

JOBCOUNT = JOBCOUNT

STRTIMMED = F110V-XSTRF

TARGETSYSTEM = F110V-BHOST

EXCEPTIONS

OTHERS = 1.