‎2011 Mar 23 5:15 AM
Dear Experts,
We have a custom workflow designed for material creation.
The workflow has steps to create BOM, Inspection Plan.
We have a custom function module to create BOM and Inspection Plan.
Our workflow calls the function module to create the BOM and Inspection Plan.
The problem which we are facing is that when the execution time exceeds 600 seconds the workflow is getting hanged.
We want to call the function module to execute as a background task and also the workflow should be able to get the errors sent by the function module.
The current code is CALL FUNCTION 'ZZZ'
I tried changing it to CALL FUNCTION 'ZZZ' IN BACKGROUND TASK, but the task was not triggered.
Please let us know whether there could be any solution for this.
‎2011 Mar 23 5:32 AM
Hi,
When you call a function module in BACKGROUND TASK, it is not submitted until you execute a 'COMMIT WORK' command.
Try that and let us know if it helps.
regards
Paul Bakker
‎2011 Mar 23 6:31 AM
Hi,
Tried that also.. But the workflow gets completed.
But no background job is created. Inspection Plan, BOM are not getting created.