‎2011 Mar 17 6:25 AM
Hi,
I am newly using multi-threading technique.
I tried with a simple code for multi-threading.....
do.
i = i + 1.
if i > 3.
exit.
endif.
gv_task = gv_task + 1.
.
call function 'ZWRAPPER1'
starting new task gv_task
destination in group gv_group
performing rcvb_endprocess on end of task
exporting
a = 1
b = 2
enddo.
loop at itab into wa.
write wa-a.
endloop.
form rcvb_endprocess using
gv_task type any.
receive results from function 'ZWRAPPER1'
importing sum = sum.
if sy-subrc eq 0.
gv_rcvd = gv_rcvd + 1.
wa-a = sum.
append wa to itab.
endif.
endform.
i tried to get the sum of 2 variables ( a and b )..as the output of my report...
The FM ZWRAPPER1 doing the summation part..
But when trying to run the report, it's not executing at all...
i tried to analyse the code through debugger, it's going to the endprocess subroutine but then it's simply getting stucked...
Please respond me back and suggest me what else need to be taken care of while using multi-threading..
Thanks & Regards,
Tiki
‎2011 Mar 21 9:30 AM