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

Parallel Processing

Former Member
0 Likes
1,007

Hi,

I have implemented Parallel Processig in some of my programs.

The job takes in all available work process and assigns task for each.

In case when all work processes are occupied, and if a new job is run then the job is abending.

Is there any process, where in we can restrict say 5 work process for Parallel Processing and some critical process that should not be used by the parallel processing.

thanks,

Arun

4 REPLIES 4
Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
757

Hi,

if you are using ARFC (asynchronous RFC, starting new task) read this:

http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7f39505211d189550000e829fbbd/content.htm

and check note 986373, 595032 and 74141.

HTH,

Hermann

Read only

Former Member
0 Likes
757

from the bellow function you can get all work processor information

what you can do is check if your program is already using 5 then keep the job waiting of you can decide what to

TH_DISPLAY_WORKPROCESS_LIST

Nafran

Read only

Former Member
0 Likes
757

Hi,

you may program the jobs: Use the five work process and chain the jobs in five 'threads'.

Ej: You have process 45 batch-inputs and you include every one in one job: You must process 45 Jobs ( 1,2,3,4, ...45).

Process ( jobs 😞

1-6-11-16

2-7-12-...

3-8-13

4-9-14

5-10-15

and so on...

Job 6 is chain to job 1. Until Job 1 don´t finish Job 6 don´t begin.

Regards.

Read only

Former Member
0 Likes
757

I recommend the use of the function module 'SPTA_PARA_PROCESS_START_2'. Have a look at the demo 'SPTA_PARA_DEMO_1' for how to use this.

It's using system parameters to have at least some free work processes, and you can set the maximum number of parallel tasks.

Edited by: Carsten Grafflage on Sep 1, 2009 9:34 AM