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

Workflow getting hanged when calling another task

Former Member
0 Likes
414

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.

2 REPLIES 2
Read only

paul_bakker2
Active Contributor
0 Likes
391

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

Read only

0 Likes
391

Hi,

Tried that also.. But the workflow gets completed.

But no background job is created. Inspection Plan, BOM are not getting created.