‎2006 Sep 10 9:10 AM
Hi all,
Is there any other method to run a report in the background other than defining it in sm36...like any function module.
thank you all,
santosh Kotra.
‎2006 Sep 10 9:27 AM
‎2006 Sep 10 9:15 AM
you have two option :
1) se38 run the report to the selection screen
put the relevant variant ,
and than choose from the manu "run in background"
2) in other program insert the following code
call function 'JOB_OPEN'
exporting
jobname = jobname
importing
jobcount = jobcount
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.
call function 'JOB_SUBMIT'
exporting
authcknam = 'FI-BATCH'
jobcount = jobcount
jobname = jobname
language = 'B'
report = report
variant = variant
exceptions
bad_priparams = 1
bad_xpgflags = 2
invalid_jobdata = 3
jobname_missing = 4
job_notex = 5
job_submit_failed = 6
lock_failed = 7
program_missing = 8
prog_abap_and_extpg_set = 9
others = 10.
call function 'JOB_CLOSE'
exporting
jobcount = jobcount
jobname = jobname
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.
hope it help you
‎2006 Sep 10 9:27 AM
‎2006 Sep 10 2:41 PM