05-05-2006 7:35 AM
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.
05-05-2006 7:48 AM
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
05-05-2006 7:51 AM
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
05-05-2006 9:36 AM
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.
05-05-2006 9:45 AM
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.