‘Exception condition “RESOURCE_FAILURE” raised’ error in parallel processing

I have mentioned about parallel processing in parallel processing strategy-1 and parallel processing strategy-2 posts. In order to prevent resource problems in parallel processing I had offered a custom code which is checking system resources for each new parallel function call.
If you do not put any check in your program it can cause a resource failure which finally causes a runtime exception. You will see runtime exception with short text ‘Exception condition “RESOURCE_FAILURE” raised’. If you examine ABAP call stack you are going to see that runtime error occured in SPBT_PARALLEL_PROCESSING. This function module is called by system automatically when you make an implementation of parallel processing with CALL FUNCTION Z_PARALLEL_FUNC STARTING NEW TASK for details refer RFC types. It finds a server with enough resources and calls your custom function module in that server.
For a solution of this problem i offered to use Z_CHECK_RESOURCES that i had explained in parallel processing strategy-2 post. You should use it before calling your Z_PARALLEL_FUNC ,thus you will be safe about system resources to call each parallel process.

You may also like

  • abap parallel processing- strategy – part 2 (0)
    This post is a follower post for abap parallel processing-1 strategy. As i mentioned in first post ,i am just checking resources in SAP system then i am executing my real function accordingly.
  • abap parallel processing- strategy – part 1 (0)
    Whenever i searched for ABAP parallel processing in google, i find many hard to understand samples and in the end i tried different solutions for performance tuning. Finally i decided to […]
  • monitoring sap work processes (0)
    Monitoring SAP work processes is done by a few transactions which are confused very often. To call the work process overview for the current application server (local work process […]