Application Development and Automation 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: 
Read only

Background reports

Former Member
0 Likes
492

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.

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
466

hi,

Refer this thread

pls rewrd points, if helped

regards,

anver

3 REPLIES 3
Read only

Former Member
0 Likes
466

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

Read only

anversha_s
Active Contributor
0 Likes
467

hi,

Refer this thread

pls rewrd points, if helped

regards,

anver

Read only

Former Member
0 Likes
466

Hi,

USe FM job_open,job_submit,job_close.

Regards

amole