‎2014 Oct 27 9:45 AM
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?
‎2014 Oct 27 10:49 AM
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
‎2014 Oct 27 11:55 AM
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.
‎2014 Oct 28 1:59 AM
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.
‎2014 Oct 28 5:28 AM
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.