‎2009 Aug 25 11:52 AM
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
‎2009 Aug 25 4:08 PM
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
‎2009 Aug 27 8:29 AM
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_LISTNafran
‎2009 Aug 27 12:31 PM
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.
‎2009 Sep 01 8:32 AM
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