2006 Dec 20 4:58 PM
Hi,
I am having problem with the Batch job.
I am using the following code,
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
sdlstrtdt = p_bdate
sdlstrttm = p_btime
IMPORTING
jobcount = lv_jobcount
SUBMIT (gv_program) VIA JOB lv_jobname NUMBER lv_jobcount
WITH p_vkorg = p_vkorg.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
.
When i use the above code, job is getting created, when i go to SM37 and release the job. it is getting executed but another job is getting created automatically with same name.
please advice i might have gone wrong.
Thanks.
Hi,
I am having problem with the Batch job.
I am using the following code,
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_jobname
sdlstrtdt = p_bdate
sdlstrttm = p_btime
IMPORTING
jobcount = lv_jobcount
SUBMIT (gv_program) VIA JOB lv_jobname NUMBER lv_jobcount
WITH p_vkorg = p_vkorg.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_jobcount
jobname = lv_jobname
.
When i use the above code, job is getting created, when i go to SM37 and release the job. it is getting executed but another job is getting created automatically with same name.
please advice i might have gone wrong.
Thanks.
2006 Dec 20 5:03 PM
as ur using SUBMIT it is creating one more job....instead use JOB_SUBMIT fm.
Message was edited by:
Ramesh Babu Chirumamilla
2006 Dec 20 5:11 PM
2006 Dec 20 5:18 PM
if ur problem is solved then close the thread by awarding points.
2006 Dec 21 12:55 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |