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: 

Number of Sessions Actived

alejandro_lpez
Contributor
0 Kudos

Hi All,

I need to call a function from a user exit to make a process in parallel. I have used CALL FUNCTION .... IN NEW TASK to create the parallel process in a new session, but when the number of session is 8 and the function is executed, the system show me an alert message about the maximum number of session reached.

it is not possible to use LEAVE TRANSACTION TO because the user exit process have to finish, too.

How can obtain the number of session active actually (any tables) ?

is there a way to executed a call function in parallel process without create an new session?

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Alejandro,

Just after posting my last message I found the answer.

If you call the function module TH_USER_INFO you get back two parameters (you don't need to pass it any input):

ACT_SESSIONS and MAX_SESSIONS

These should give you exactly the data you need.

Cheers,

Brad

2 REPLIES 2

Former Member
0 Kudos

Hi Alejandro,

Do you need the user to interact with the new function? ie Do you have a CALL SCREEN in the new function? If not, I would suggest that you use CALL FUNCTION ... IN BACKGROUND TASK.

This not only prevents your issue with the sessions, it also prevents your called functions unnecessarily consuming dialog processes (and potentially locking real users out).

It also means that the processes get queued, and executed on the application server when there is resource (background processes) available for them.

Hope that helps.

Cheers,

Brad

Former Member
0 Kudos

Hi Alejandro,

Just after posting my last message I found the answer.

If you call the function module TH_USER_INFO you get back two parameters (you don't need to pass it any input):

ACT_SESSIONS and MAX_SESSIONS

These should give you exactly the data you need.

Cheers,

Brad