09-14-2010 3:10 PM
Is there a way to find out the maximum number or internal sessions?
I use the FM:
CALL FUNCTION 'TH_USER_INFO'
IMPORTING
act_sessions = lv_actual_sess
max_sessions = lv_maximal_sess
my_session = lv_my_sess
my_internal_session = lv_my_int_sess
rc = lv_rc.
To get the number of internal sessions in lv_my_int_sess.
I need the maximum number of internal sessions in order to compare it but I cannot find out how to get it.
09-14-2010 3:44 PM
You can check TH_LONG_USR_INFO, count the return table .
If you want the maximum number of sessions allowed
check the ddic table savailable in package SPFL.
09-14-2010 3:44 PM
You can check TH_LONG_USR_INFO, count the return table .
If you want the maximum number of sessions allowed
check the ddic table savailable in package SPFL.
09-14-2010 4:16 PM
Hi Keshav.,
Thanks for your feedback!
I cannot find a table named "savailable" in the package SPFL.
Could you, please give me some more information on getting the maximum number.
Thanks,
Ivaylo.
09-14-2010 4:22 PM
Hi its a typo mistake, check the tables available in that package.
09-14-2010 4:34 PM
You can use transaction RZ10 for this purpose.
Parameter : rdisp/max_alt_modes will give you the information.
The default number of sessions is set as 6 per user.
09-14-2010 4:47 PM
Hi,
Re. the previous note, just follow through the logic in program RSPARAM1 to see how it reads these parameters - in SE38, run program RSPARAM1 to see the full list of parameters.
Regards,
09-14-2010 4:50 PM
You can retrieve in this manner.
goto rz11 pass rdisp/max_alt_modes and hit display , you can view tha values.
In program you can get it this way.
CALL 'C_SAPGPARAM' ID 'NAME' FIELD TPFYPROPTY-PARANAME "rdisp/max_alt_modes
ID 'VALUE34' FIELD USR_PARVALUE "User value
ID 'VALUE44' FIELD SHM_PARVALUE."
for more info check program RSPFLDOC and see how the values are retrieved.
The max value is stored in table TPFYPROPTY, pass rdisp/max_alt_modes to field paraname and RDISP/MA_ALT_MODES to field obj_name.
The value will be stored in field VMAX.
09-15-2010 8:35 AM
9 is the no for internal sessions...as mentioned in the SAP library
Second if you want to control the no of session windows that is to be controlled by maximum sessions and the actual session..
I hope it helps...