11-27-2007 12:29 PM
HI All,
Can any body knows ,
IF I want to do further processing when the program in background executes?
How to identify the end of background processing?
Thanks and Regards,
Mrunal
11-27-2007 12:38 PM
Hello ,
Use FM SHOW_JOBSTATE. It takes in the Input as Job number and job name and returns the status of the job.
Regards
Saket Sharma
11-27-2007 12:38 PM
Hello ,
Use FM SHOW_JOBSTATE. It takes in the Input as Job number and job name and returns the status of the job.
Regards
Saket Sharma
11-27-2007 12:40 PM
Hi,
Call the FM .BP_JOB_STATUS_GET OR BAPI_XBP_JOB_STATUS_GET' by giving the job name and job count. u will get the status of the job whethre its complted or on progress or cancled.
Depends on that u can write ur code to move forward or u can write the code to WAIT there till the job complted.
Regs
Manas
11-27-2007 12:53 PM
Hi,
Below is the code for ur reference.
DO .
CALL FUNCTION 'BP_JOB_STATUS_GET'
EXPORTING
jobcount = jobcount
jobname = jobname
IMPORTING
status = staus
IF status EQ 'F'. "Finished
EXIT.
ENDIF.
ENDDO.
This code will wait till ur background job finished.
Regs
Manas.
11-27-2007 12:55 PM
select * from tbtco into table t_tbtco
where jobname EQ 'jobname' and
SDLDATE EQ sy-datum and
STATUS EQ 'F'
if sy-subrc EQ 0.
write:/ 'job completed'
endif.
reward if answered
11-27-2007 12:59 PM
Using tcode SM36, we can find whether the background job status. we have to give job name, user name etc., Please refer this tcode. If the job is cancelled the indication will be dispalyed as cancelled or else it will be displayed as completed.