Application Development 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: 

parallel processing in background.

Former Member
0 Kudos

i am using following FM :-

CALL FUNCTION STARTING NEW TASK with the argument DESTINATION IN GROUP DEFAULT

for Parallel Processing Jobs with Asynchronous RFC.

It uses the Dialog work process. Do we have option to use only Background work process instead of using dialog work process. If yes,please let me know how.

Or do we have any other option ...instead of using CALL FUNCTION STARTING NEW TASK with the argument DESTINATION IN GROUP DEFAULT. That would divide the task and schedule them on different-different Apllication server in back ground.

3 REPLIES 3

Former Member
0 Kudos

Hi Dilip ,

You can write CALL FUNCTION func IN BACKGROUND TASK ..............

For This IN BACKGROUND TASK addition Background work process will be alloted for this task .

Regards

Pinaki

Former Member
0 Kudos

Hi Dilip,

SAP recommends only to use asynchronous RFC for parallel processing, which is calling FUNCTION func... STARTING NEW TASK. The reason being is that the main program have to wait for the parallel processing to complete before sending the next task to the work process.

However, if your main program is only used to split the work into several work process, and it does not coordinate and communicate with other work process, then you can use transactional RFC, CALL FUNCTION func IN BACKGROUND TASK. You can monitor the successful of the execution in SM58.

Regards,

Lim...

former_member192616
Active Contributor
0 Kudos

Hi Dilip,

you can either parallelize with asynchronous RFC (ARFC) which will use DIALOG processes for the RFC

or

use the background job api to split the work in parallel BACKGROUND jobs.

Compare:

http://help.sap.com/saphelp_nw70/helpdata/EN/c4/3a7f1f505211d189550000e829fbbd/frameset.htm

and:

http://help.sap.com/saphelp_nw70/helpdata/EN/fa/097720543b11d1898e0000e8322d00/frameset.htm

hth,

Hermann