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: 

Getting the maximum number of internal mode (internal sessions)

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

7 REPLIES 7

kesavadas_thekkillath
Active Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

Hi its a typo mistake, check the tables available in that package.

0 Kudos

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.

0 Kudos

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,

0 Kudos

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.

0 Kudos

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...