‎2013 Nov 25 10:56 AM
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
‎2013 Nov 25 11:16 AM
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
‎2013 Nov 25 11:16 AM
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
‎2013 Nov 25 11:19 AM
Please check parallel procesing in ABAP. You will see a list of FM to run in sequence like initialize etc
‎2013 Nov 25 11:59 AM
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
‎2013 Nov 25 12:13 PM
What is the return code after function call? Is any exception raised?
Regards