04-21-2005 4:39 PM
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
04-21-2005 4:53 PM
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
04-21-2005 4:46 PM
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
04-21-2005 4:53 PM
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