Skip to Content
0
Former Member
Feb 14, 2007 at 12:45 PM

Submit via Job

462 Views

Hello all

I m creating a program to delete old entries from tables.This can be done

1. Foreground

2. Background

I have created 2 reports

Report A - MAin report

Report B -has the following stmts

REPORT b.

DATA: i_JOBCOUNT LIKE TBTCJOB-JOBCOUNT,

i _JOBNAME LIKE TBTCJOB-JOBNAME .

SUBMIT A AND RETURN

USER SY-UNAME

VIA JOB I_JOBNAME NUMBER I_JOBCOUNT

.

In the background option of report A I have used

job_open with jobname as Report A.

Submit B

user sy-uname

via jobname jobnumber

and return.

Job_close

with jobname, jobnumbr and start immediately = 'x'.

Now when I execute this pgm with foreground option,

I get the records deleted from the table

but the same does not happen in background option.

kindly guide me.

Thanks

Tharani