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: 

KILL SAP SESSIONS

Former Member
0 Kudos
5,533

Hi All,

Can ANy one help me /Tell me that

How to kill all the SAP Sessions progrmatically.

For more cleriance:

i will give SAP user id as input and i will run a program then if the USER ID is open then the sessions should close.

can any one help me on this,

4 REPLIES 4

Former Member
0 Kudos
531

Hi,

You can try with,Tcode SM04 is used to kill the sessions.Select the session you want to kill then continue.

Thankz,

Aditya

Edited by: aditya on May 16, 2008 7:19 PM

0 Kudos
531

Sorry

I want to close all sessions by a program not one session all

0 Kudos
531

Hi,

Execute FM 'TH_DELETE_USER' passing user and client.

Hope it helps,

Chang

Former Member
0 Kudos
531

Hi,

you can use command /nex which will close all the sessions even without prompting for logoff.

Reward points if helpful.

Thanks and Regards.