Application Development and Automation 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: 
Read only

Terminate User Session

Former Member
0 Likes
4,726

Hi all,

I'm using FM TH_DELETE_USER to delete a user session, however this will terminate all sessions. Can anyone suggest a system function that will delete a specific user session?

Thanks, Mark

7 REPLIES 7
Read only

Former Member
0 Likes
1,366

Try the FM

TH_DELETE_MODE

REgards,

Ravi

Read only

Former Member
0 Likes
1,366

Try Function Module ITS_END_SESSION in the Zprogram.

Read only

dani_mn
Active Contributor
0 Likes
1,366

Hi,

Try to make a recording of SM04 might be it work.

because there you can terminate specific sessions.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
1,366

Hi,

Try Function Module <b>ITS_END_SESSION</b> in the Zprogram.

It will terminate the session of running program from other program.

Thanks,

Ramya.

Read only

Former Member
0 Likes
1,366

Hi ,

TH_DELETE_USER kills the sessions of the user.But there is no FM to delete the particular session.

But if you Debug SM50 you get some info.

i tried it i got this...

     CALL 'ThWpInfo' ID 'OPCODE'   FIELD OPCODE_WP_DEL             
                     ID 'WP_INDEX' FIELD WP_TABL_ALV-WP_INDEX.     
           

in this program <b>RSMON000_ALV</b> you can find the code .

Regards

vijay

Read only

Former Member
0 Likes
1,366

HI,

Use

If sy-uname = exxx

Call ITS_END_SESSION

Endif.

Regards,

Nandha

Read only

Former Member
0 Likes
1,366

Hi Mark,

Just check SM50 , select the session and Endsession. that exactly matches your requirement. check my previous post.

Regards

vijay