02-27-2006 5:29 AM
Hi Experts,
I have a program which is taking long time (min 10days)to run because of 4 millian data.Thing is i am planning to use parallel processing, i have gone through help documents.They have used one Syntax
"CALL FUNCTION func ...STARTING NEW TASK task name "
ans some additions.
What this function module name?.Do i need to create a
"RFC function module" and call my report from this function module.My problem is how to use my progarm and this SYNTAX.
Can any will explain and give some suggestion on it.
Note : I fine tunned this program Max.extend
Thanks in advance.
Murali
02-27-2006 6:14 AM
Hi ,
what my question is :
Total my code is in a program Which is taking long time OK
1.What should i write in RFC function module?
2.Where shold i call this function module by using
that syntax?
(OR)
1. Do i need to call taht Program from function module
02-27-2006 5:35 AM
CALL FUNCTION func DESTINATION dest STARTING NEW TASK.
U need to set up RFC DESTINATION IN SM59.
02-27-2006 5:39 AM
hi
You will have to create a fuction module for the task, enable RFC for the fuction module.
The call for a RFC defers only that the destination field is added to the call denoting where the fuction module resides.
02-27-2006 5:41 AM
I guess this is what you asked for...
To call this attach a tcode to your program
DATA t(8).
DATA tcode(6).
tcode = 'SE11'.
t = 'tid001'.
CALL FUNCTION <b>'ABAP4_CALL_TRANSACTION'</b>
STARTING NEW TASK t
EXPORTING
TCODE = tcode
.
02-27-2006 6:14 AM
Hi ,
what my question is :
Total my code is in a program Which is taking long time OK
1.What should i write in RFC function module?
2.Where shold i call this function module by using
that syntax?
(OR)
1. Do i need to call taht Program from function module
02-27-2006 6:19 AM
1.u need to write logic tin the fn module like a normal fn module, but set attributes as remote enabled for that fn module.
2. u call the fn module in the other system with the above syntax where the logic demands
02-27-2006 7:58 AM
Hi,
Check this link which contains a sample code for parallel processing.
http://www.kabai.com/abaps/z83.htm
Check this also.
02-27-2006 6:14 AM
Hello Murali,
There are many considerations for starting the job in parallel.
1. u should be able to logically break the job for parallel process to handle.
2. When the jobs starts in parallel mode there is no sequence in which they will complete and so should be independant of each other.
3. The FM which is called in CALL FUNCTION func ...STARTING NEW TASK task name should be RFC enabled.
4. In order to process the jobs in parallel ur system should have atleast 3 dialog work process and should have one dialog process free when u start parallel processing.
I am assuming u don't have the FM which is why u are asking what is the fucntion module name. I would suggest u need to modify ur code in such a way that u are able to create a FM which is going to be called in the CALL FUNCTION func ...STARTING NEW TASK task name.
Abhijit