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

Hi

Former Member
0 Likes
553

Cud u please explain me th difference between JOB_SUBMIT and SUBMIT <report> via job name and job count.

The scenario i'm working on is, i need to give the user a flexibility to run the report immediately or he shud be running it whenever he wants, through SM37.

Thanks in advance

Vijaya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
531

hi

good

Use JOB_SUBMIT to add a job step to a background job that you have opened with JOB_OPEN.

A job step is an independent unit of work in a job, the execution of an ABAP or external program. Each job step can have its own authorizations user and printer/optical archiving specifications.

Related function modules include:

JOB_OPEN: Create a background job.

JOB_CLOSE: Submit a background job to the background processing system for execution.

The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which

calls another report. Can only execute reports of type '1'.

http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

thanks

mrutyun^

Cud u please explain me th difference between JOB_SUBMIT and SUBMIT <report> via job name and job count.

The scenario i'm working on is, i need to give the user a flexibility to run the report immediately or he shud be running it whenever he wants, through SM37.

Thanks in advance

Vijaya.

3 REPLIES 3
Read only

Former Member
0 Likes
531

You may provide two radio buttons on the selection screen with Online / background options. If the user selects online they could directly run the report or if they select background option, you may use Job_SUBMIT function module with a specific job name, if need be, and submit the program to run in background.

What you may want to know is whether user would like to run the background job as soon as the background option is selected or schedule it for a later date.

Read only

0 Likes
531

thanks alot for replying.

If the user clicks the background option, the job shud get scheduled but shud not be run. Its like whenever the user wants to run.he will go to SM37 and run the report at the background.

how can i do dat?

Thanks,

Vijaya.

Read only

Former Member
0 Likes
532

hi

good

Use JOB_SUBMIT to add a job step to a background job that you have opened with JOB_OPEN.

A job step is an independent unit of work in a job, the execution of an ABAP or external program. Each job step can have its own authorizations user and printer/optical archiving specifications.

Related function modules include:

JOB_OPEN: Create a background job.

JOB_CLOSE: Submit a background job to the background processing system for execution.

The SUBMIT statement executes a report from within a report. i.e. you could have a drill-down which

calls another report. Can only execute reports of type '1'.

http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

thanks

mrutyun^