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: 

Hi friends need some help while creating background job

Former Member
0 Kudos
763

I need to run a batch report in background in SM36 when any cancellation of sales order is done in VL09.

i.e when a cancellation of sales order is done i have to run a batch report which will call an IDOC outbound generation function module that will create the IDOC.....

Please tell me how to do this.....

2 REPLIES 2

Former Member
0 Kudos
706

You can submit ur report in the concerned program in a background mode using the following syntax.

Call Function 'Job_Open'.

SUBMIT <report name>

WITH <input variants>

USER sy-uname

VIA JOB <job name>

AND RETURN.

If sysubrc eq 0.

Call Function 'Job_Close'.

Reward if helpfull.

Jayadeep.

Former Member
0 Kudos
706

Hi,

To submit backgroud jobs.

Call Function 'Job_Open'.

SUBMIT <report name>

WITH <input variants>

USER sy-uname

VIA JOB <job name>

AND RETURN.

If sysubrc eq 0.

Call Function 'Job_Close'.

Reward if helpfull.