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: 

Program RFBIBL00 to create acct documents

Former Member
0 Kudos

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

2 REPLIES 2

andreas_mann3
Active Contributor
0 Kudos

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

0 Kudos

hi i am doing exactly what you mentioned.the only probelm is that several batch files are created instead of 1 only.