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: 

To Run Selected Code in Batch or Asynchronous

pankajs_dwivedi
Participant
0 Kudos

Hi All,

I have a part of code in my program, which doesn't have dependency on any other place in the program. I need to run this part asynchronously so that I get better throughput time. Is it possible using ABAP. If so please advice how to do it.

Thanks in advance,

Pank.

4 REPLIES 4

Former Member
0 Kudos

HI

GOOD

I DONT THINK YOU CAN RUN A PART OF YOUR REPORT SEPARATELY,

YOU CAN RUN A REPORT IN BACK GROUND PROCESS.

THANKS

MRUTYUN

Former Member
0 Kudos

Pankaj,

You cannot do that in ABAP.

Its a sequential execution of the code.

However, you can call a function in the UPDATE TASK mode, which will spawn off a thread.

Regards,

Ravi

Former Member
0 Kudos

Hi !

A thing you could do is the following:

1.) bring the code you wand to ecexute asynchronus

into a Function-Module and mark is as remote

function

2.) change your report by using a

CALL FUNCTION your_new_fm IN BACKGROUND TASK.

If you've done so - the code (now in your new Function Module) runs asynchronus !

Regards

Rainer

Some points would be fine if that helped you.

hymavathi_oruganti
Active Contributor
0 Kudos

hi write that piece of code in a fn module and call the fn moule using the following syntax.

CALL FUNCTION <fn module> STARTING NEW TASK.

the above fn calls a fn module asynchrounously, ie with out interrupting the other programs, u can run this fn module separately.