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: 

parallel processing--share your suggestions

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

hymavathi_oruganti
Active Contributor
0 Kudos

CALL FUNCTION func DESTINATION dest STARTING NEW TASK.

U need to set up RFC DESTINATION IN SM59.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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
.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi,

Check this link which contains a sample code for parallel processing.

http://www.kabai.com/abaps/z83.htm

Check this also.

http://www.kabai.com/abaps/z91.htm

Former Member
0 Kudos

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