Application Development 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: 

How do I know if the Job is finished?

Former Member
0 Kudos
293

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.

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos
85

Hi,

try fm <b>SLW_WL1_GET_BTCH_JOB_STATUS</b>

(->status F = ready)

regards Andreas

3 REPLIES 3

Former Member
0 Kudos
85

Hi,

May be in such a case it's better to raise an event at the end of the job, that starts another job.

FM 'BP_EVENT_RAISE'

Svetlin

andreas_mann3
Active Contributor
0 Kudos
86

Hi,

try fm <b>SLW_WL1_GET_BTCH_JOB_STATUS</b>

(->status F = ready)

regards Andreas

Former Member
0 Kudos
85

Hi,

You can monitor the status of job using transaction code SM36. By specifying parameters on the first screen u can select and check the status of a perticular job

Message was edited by: Amit Joshi