2010 Jan 13 8:03 AM
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
2010 Jan 13 8:06 AM
Hi,
Whats the need for running the FM at 4X? Please explain the scenario.
Thanks,
Saravanan Rajan.
2010 Jan 13 8:07 AM
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.
2010 Jan 13 8:10 AM
2010 Jan 13 8:12 AM
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
2010 Jan 13 8:35 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |