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

Maximum Work Process is zero

manikandan_shanmugam3
Active Participant
0 Likes
1,078

Hi All,

I have written code to check the Number of Work process presently available to create a task and its always returns zero and it was fine early.

DO.

     CALL FUNCTION 'SPBT_GET_CURR_RESOURCE_INFO'

       IMPORTING

         max_pbt_wps                 = lv_max_wp

         free_pbt_wps                = lv_free_wp

       EXCEPTIONS

         internal_error              = 1

         pbt_env_not_initialized_yet = 2

         OTHERS                      = 3.

Regards,

Mani

5 REPLIES 5
Read only

Former Member
0 Likes
776

Hi Mani,

This function module is not designed to run in isolation, a group of parallel background tasks needs to first be initialised.

Does the FM set a return code when you call it?

regards,

Nick

Read only

former_member188827
Active Contributor
0 Likes
776

Please check if any exception is raised when you call the function. sy-subrc will return the exception code and then you may analyze the reason for this.

Regards

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
776

Please check parallel procesing in ABAP. You will see a list of FM to run in sequence like initialize etc

Read only

manikandan_shanmugam3
Active Participant
0 Likes
776

HI All,

i have already initialize the parallel processing and trying to fetch a available number of work process so then i can split the number of records per task.

Regards,

Mani

Read only

0 Likes
776

What is the return code after function call? Is any exception raised?

Regards