<?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 Re: TH_DELETE_USER + TH_DELETE_MODES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210121#M1522495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bulent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your responce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By your answer, I could delete ohter user's sessions by TID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But actually,  I want to delete one of External sessions of a user, not all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By TH_DELETE_MODE, I could delete one of External sessions of myself.  But it has no way to set ohter user's mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source of the function TH_DELETE_MODE is below.&lt;/P&gt;&lt;P&gt;   CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_DELETE_MODE&lt;/P&gt;&lt;P&gt;     ID 'MODE' FIELD MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm serching a function or method to delete other user's External session (MODE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it impossible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 09:22:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-31T09:22:56Z</dc:date>
    <item>
      <title>TH_DELETE_USER + TH_DELETE_MODES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210119#M1522493</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;I'm making a program to list users' sessions.&lt;/P&gt;&lt;P&gt;I could list them, and now trying to delete one session of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could delete one of own sessions by TH_DELETE_MODES.&lt;/P&gt;&lt;P&gt;But I cannot find out how to delete one of other user's sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to delete all sessions of a user by TH_DELETE_USER.&lt;/P&gt;&lt;P&gt;But it delete all of the user's session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And TH_DELETE_MODES has no parameter to identify a user.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;By using SM04, it is possible to delete one of other user's session.&lt;/P&gt;&lt;P&gt;I debugged it but couldn't find out how to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope anyone has some information on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 04:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210119#M1522493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-31T04:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: TH_DELETE_USER + TH_DELETE_MODES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210120#M1522494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Todoman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This command ends the session of another user :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL 'ThSndDelUser'
        ID 'MANDT'  FIELD sy-mandt
        ID 'BNAME'  FIELD usrlist-bname
        ID 'SERVER' FIELD t_server_list-name  "&amp;lt;-- server name which user logged on
        ID 'TID'    FIELD usrlist-tid. "&amp;lt;-- session ID of user
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get server list with function 'TH_SERVER_LIST'&lt;/P&gt;&lt;P&gt;and you can get user list with TID session IDs on a server wih function 'TH_USER_LIST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bulent Balci on Aug 31, 2010 8:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 06:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210120#M1522494</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-31T06:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: TH_DELETE_USER + TH_DELETE_MODES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210121#M1522495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bulent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your responce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By your answer, I could delete ohter user's sessions by TID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But actually,  I want to delete one of External sessions of a user, not all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By TH_DELETE_MODE, I could delete one of External sessions of myself.  But it has no way to set ohter user's mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source of the function TH_DELETE_MODE is below.&lt;/P&gt;&lt;P&gt;   CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_DELETE_MODE&lt;/P&gt;&lt;P&gt;     ID 'MODE' FIELD MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm serching a function or method to delete other user's External session (MODE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it impossible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 09:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210121#M1522495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-31T09:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: TH_DELETE_USER + TH_DELETE_MODES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210122#M1522496</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;I'll describe in more detail :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to transaction SM04 on your system&lt;/P&gt;&lt;P&gt;you'll see the list of  logged users on that system &lt;/P&gt;&lt;P&gt;and this list contains a field titled "Type".  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll see the values GUI, RFC, HTTP Plug In ..&lt;/P&gt;&lt;P&gt;as I understand you want to delete sessions which type HTTP Plug In / external.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function TH_USER_LIST returns the internal representation of SM04 list&lt;/P&gt;&lt;P&gt;- Now loop on that table&lt;/P&gt;&lt;P&gt;- Find line which type = external &lt;/P&gt;&lt;P&gt;   and username = uname u searching for&lt;/P&gt;&lt;P&gt;- Use TID field of that line for the command I sent in previous message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But probably your system is containing more than one application server &lt;/P&gt;&lt;P&gt;than I recommended you to use function TH_SERVER_LIST first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than get user list for each application server with TH_USER_LIST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 07:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210122#M1522496</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-09-01T07:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: TH_DELETE_USER + TH_DELETE_MODES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210123#M1522497</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;Sorry for my bad explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing SM04, select one line of the list and push Sessions button or double click. &lt;/P&gt;&lt;P&gt;Then a popup dialog shows No, Transaction, Time. I want to kill one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making a program to list those sessions without the dialog and I could do it. &lt;/P&gt;&lt;P&gt;And now I want to kill one of session of a user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 05:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/th-delete-user-th-delete-modes/m-p/7210123#M1522497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-02T05:02:28Z</dc:date>
    </item>
  </channel>
</rss>

