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

Runnignt he Function module 4 times at a time

Former Member
0 Likes
844

Hi all

In my program i want to run my function module 4 times parallelly that means i want to run at a time 4 times.

If i kept the FM in a LOOP or DO statements

it will be running 4 times one by once..it cant be run 4 times at a time

so i cannot keep the Fm in LOOP or DO

Please do suggest the solution

Thanks

Ajay

<LOCKED BY MODERATOR - DUPLICATED THREAD>

Edited by: Alvaro Tejada Galindo on Jan 13, 2010 4:46 PM

Hi all

In my program i want to run my function module 4 times parallelly that means i want to run at a time 4 times.

If i kept the FM in a LOOP or DO statements

it will be running 4 times one by once..it cant be run 4 times at a time

so i cannot keep the Fm in LOOP or DO

Please do suggest the solution

Thanks

Ajay

<LOCKED BY MODERATOR - DUPLICATED THREAD>

Edited by: Alvaro Tejada Galindo on Jan 13, 2010 4:46 PM

5 REPLIES 5
Read only

Former Member
0 Likes
804

Hi,

Whats the need for running the FM at 4X? Please explain the scenario.

Thanks,

Saravanan Rajan.

Read only

Former Member
0 Likes
804

Hi ajay,

In that case you may have to use the suffix STARTING NEW TASK to the call function syntax (please see f1 help on that). In that way you can start 4 times, independently.

Regards,

Amit Mittal.

Read only

Former Member
0 Likes
804

Hi

Use Asynchronous RFC for parallel processiong

Thanks

Read only

Rocky1
Product and Topic Expert
Product and Topic Expert
0 Likes
804

Hi,

Tthe function module that you call must be marked as externally callable. Following is the syntax to perform the same:

call function 'BAPI_CUSTOMER_*....'

starting new task 'FUNCT1'

destination 'NONE'

performing set_function1_done on end of task

exporting

customerno = p_kunnr.

call function 'BAPI_CUSTOMER_*....''

starting new task 'FUNCT2'

destination 'NONE'

performing set_function2_done on end of task

exporting

customerno = p_kunnr1.

wait until functioncall1 = done

and functioncall2 = done.

Hope it will help you.

Thanks & regards

Rocky

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
804

Duplicate post