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

call method by Parallel Processing

Former Member
0 Likes
1,624

hi  experts,

     the science as follow:

     i already coding many method to process data,and the parameter is obeject(type ref to),and now we need process it by parallel process,

so how i can do it?

    because the parameter is oo, so the call function start new start task cannot used , because rfc cant use oo, and use job to do the parallel process is not a good idea , because it can cause many job record.

    so could any experts help me?

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
866

Hi,

Wrap your logic in a remote enabled function module and call it inside a method. Then, check the section 2 in this link ABAP Keyword Documentation

Regards

Kesav

Read only

matt
Active Contributor
0 Likes
866

You must use RFC enabled function modules for parallelisation. Therefore you need to refactor your program.

For example, you could serialise your object and use that as a parameter for your function module.

Read only

Former Member
0 Likes
866

hi Mattew,

   the method use a object(A) as parameter, and transfer the sub object(B) of the a to the method, and by mandatory to get  B, by the way, we have more than 50 method as above, so if we use rfc to reactor the method, it's a large work,because we need use the every attribute of b for rfc, because

oo cant be used in parameter in rfc.

Read only

matt
Active Contributor
0 Likes
866

I didn't say it would be easy.

Without knowing the design of your program, it isn't really possible for anyone to supply you with a good solution.

I think perhaps you need to do a bit more analysis. I doubt the bit that needs parallelising needs all the the methods and attributes of your object. Find out exactly which bits need parallelising, abstract them, and implement using function modules. It's the only way.