2010 Jul 13 11:04 AM
Hello,
i am using this program with
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = ld_job_name
IMPORTING
jobcount = ld_job_num
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc EQ 0.
SUBMIT rfbibl00 WITH ds_name EQ gd_fichier
WITH callmode EQ 'B'
WITH max_comm EQ '1000'
WITH xpop EQ 'X'
VIA JOB ld_job_name NUMBER ld_job_num
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = ld_job_num
jobname = ld_job_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
a batch file is being created for every acct document to create.
for example if i have to create 10 accounting docs, 10 batch files are created.How do i create a single batch file for all the jobs?thanks
Hello,
i am using this program with
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = ld_job_name
IMPORTING
jobcount = ld_job_num
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc EQ 0.
SUBMIT rfbibl00 WITH ds_name EQ gd_fichier
WITH callmode EQ 'B'
WITH max_comm EQ '1000'
WITH xpop EQ 'X'
VIA JOB ld_job_name NUMBER ld_job_num
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = ld_job_num
jobname = ld_job_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
a batch file is being created for every acct document to create.
for example if i have to create 10 accounting docs, 10 batch files are created.How do i create a single batch file for all the jobs?thanks
2010 Jul 13 12:13 PM
you have to fill the otput-structures for rfbibl00 in a loop:
1) 1 x bgr00
2) n BBKPF
3) and to every BBKPF 2 - m BBSEG
all items must be transfered to your file
after close dataset
process your job with rfbibl00
hope that helps
Andreas
2010 Jul 13 12:18 PM
hi i am doing exactly what you mentioned.the only probelm is that several batch files are created instead of 1 only.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |