Application Development 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: 

Calling fm in new task only when it is possible.

Former Member
0 Kudos

I'm calling a fm in a new task, and I need to check it is possible to open a new task before proceeding.

How can I check the number of open tasks? How can I check the maximum number of tasks allowed?

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi!

You don't have to check it, it is handled by SAP automatically.

The only requirement, there has to be at least 3 dialog processes in your SAP system.

For this check transaction SM50.

Because startin an FM in a new task is an asyncronous processing, it's result is not important to your program run.

Regards

Tamá

5 REPLIES 5

Former Member
0 Kudos

Hi!

You don't have to check it, it is handled by SAP automatically.

The only requirement, there has to be at least 3 dialog processes in your SAP system.

For this check transaction SM50.

Because startin an FM in a new task is an asyncronous processing, it's result is not important to your program run.

Regards

Tamá

0 Kudos

The problem is that I get a dump whenever I am on the tasks limit.

0 Kudos

Have you tried this one?

CALL FUNCTION func IN BACKGROUND TASK.

Regards

Tamá

0 Kudos

Alas, I need it to be displayed.

0 Kudos

Hi

Have you try to use the special exception SYSTEM_FAILURE

and COMMUNICATION_FAILURE?

I believe they can be used if it uses the addition DESTINATION

Max