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 function module parallelly

jonwalnikhilesh
Participant
0 Likes
521

Hi Experts,

I have a function module in which i want to call three FM parallelly to get product information and finally consolidate the final result and return into table parameter.

I need ur suggestion how do i know that my all three FM executed and so that i can make final result.

please give me sample code so that i can achieve my requirement.

Thanks & Regards,

NJ

1 REPLY 1
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
487

Hello,

I have a function module in which i want to call three FM parallelly to get product information and finally consolidate the final result and return into table parameter.

If you want to implement parallel processing, you'll have to implement [asynchronous RFC(aRFC)|http://help.sap.com/abapdocu_702/en/ABAPCALL_FUNCTION_STARTING.htm].

To get the results from the aRFC, you'll have to code an additional callback procedure(subroutine/method). To stop the program execution, until the callback procedures have been executed you have to use the WAIT UNTIL statement.

BR,

Suhas