title: How do I know how many RFC tasks I can create?
body: <p>I'm implementing a report that executes the same code twice, in parallel.</p>
  
  <p>To achieve this, I do the following:</p>
  
  <pre><code>  call function 'my_func'
    starting new task 'T1' destination 'NONE'
    calling go_results-&gt;receive_results on end of task
      exporting
        it_pernr_tab            = lt_1st_half
        is_selection_parameters = gs_parm.
  
    call function 'my_func'
    starting new task 'T2' destination 'NONE'
    calling go_results-&gt;receive_results on end of task
      exporting
        it_pernr_tab            = lt_2nd_half
        is_selection_parameters = gs_parm.
  
    wait until go_results-&gt;mv_received_results = 2.
  </code></pre>
  
  <p>This will create two new tasks, which will execute just fine.</p>
  
  <p>But I don't make any validations at all, I simply call the task twice because I've decided to. </p>
  
  <p>I don't know if there is enough "room" for two new tasks, nor if there is room for 10 and I could use them better.</p>
  
  <p>And this is precisely my question:</p>
  
  <p>a) can I calculate somehow the max number of tasks that I can create, so that I use parallism to its full? for example, get the number of available work processes?</p>