<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Log off all the Users in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876783#M50835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Is there any program to log off all the users who are currently logged into the system. Using SM04 transaction this can be achieved but I am looking for a report/tcode which will &amp;amp; delete all the users currently logged in at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2005 07:26:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-07T07:26:10Z</dc:date>
    <item>
      <title>Log off all the Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876783#M50835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Is there any program to log off all the users who are currently logged into the system. Using SM04 transaction this can be achieved but I am looking for a report/tcode which will &amp;amp; delete all the users currently logged in at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2005 07:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876783#M50835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-07T07:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Log off all the Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876784#M50836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, this is not a desirable operation, even for a super user. Consequently, I don't think there's any report which does that for you. If it is a matter of academic interest then you an set about writing a program of your own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the general practice is to let the users know that they should log off themselves, saving anything important that they may be currently working on. You can choose to send an Express Message to all the logged on users, or you can put up a message on the log on screen which tells the users not to log on during a specified time period for the purpose of some system administation tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask you why you need a program like that ? May be there's an elegant alternative that you could use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2005 07:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876784#M50836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-07T07:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Log off all the Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876785#M50837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats a very dangerous option and cannot be encouraged. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for academic interest you can try in these lines to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define Opcode variables for deletion &amp;amp; commit operations say &lt;/P&gt;&lt;P&gt;DATA: TH_OPCODE(1) TYPE X&lt;/P&gt;&lt;P&gt;    OPCODE_DELETE LIKE TH_OPCODE VALUE 25,&lt;/P&gt;&lt;P&gt;    OPCODE_COMMIT LIKE TH_OPCODE VALUE 41.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the user info using fn. module 'TH_USER_LIST' into a table say &amp;lt;ITAB1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then loop through the user list in &amp;lt;ITAB1&amp;gt; and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_DELETE&lt;/P&gt;&lt;P&gt;                 ID 'TID' FIELD &amp;lt;ITAB1-TID&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then commit the work,&lt;/P&gt;&lt;P&gt;CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will delete the sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go through the include program TSKHINCL to get OPCODE details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post is NOT for Notorious programmers  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2005 08:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-off-all-the-users/m-p/876785#M50837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-07T08:15:22Z</dc:date>
    </item>
  </channel>
</rss>

