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

execute code asynchronously

Former Member
0 Likes
1,029

Hi experts,

is it possible to execute a part of a program in background (asynchronous) ?

I have an amount of code which processes input from the user, but it doesn 't require any action from the user. he only has to wait until the code has finished processing. Is it possible to execute this code without that the user has to wait ?

Edited by: Björn Demol on Apr 7, 2008 3:34 PM

4 REPLIES 4
Read only

Former Member
0 Likes
774

Hi,

It can be done,

Goto selection-screen of report, then keen the required parameters then click on PROGRAM>Execute in background.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:51 PM

Read only

Former Member
0 Likes
774

Bjorn

I'm not 100% on this, but using the SUBMIT verb may accomplish what you area asking. You may have to play with the options for SUBMIT to accomplish you goal.

Read only

Former Member
0 Likes
774

I am not sure whether the below steps will help you or not. But just give an try on it.

1. Write a separate report with the code that you want to run asynchronously with the main report execution with out the user interaction.

2. Call the following function modules in sequence in your main program. These function modules will create a job to execute the code asynchronously.

a. JOB_OPEN.

b. JOB_SUBMIT.

c. JOB_CLOSE.

Try with 'where used list' option on these function modules in SE37, there you can get lot of standard SAP objects for the examples of these function modules usage.

Read only

Former Member
0 Likes
774

Hi all,

I tried it with making a function module and use it as a rfc fm to run it asynchronously..

thanks for the heklp !