<?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: Abap program to end specific User's Program, by sesion/tcode or GUIID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853164#M2030736</link>
    <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;Look at the already provided include&amp;nbsp;&lt;SPAN&gt;TSKHINCL&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 14:31:40 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2024-09-03T14:31:40Z</dc:date>
    <item>
      <title>Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13852827#M2030725</link>
      <description>&lt;P&gt;Hello everyone, I've seen this posted quite&amp;nbsp; few times, posted here but it does not seem to work properly for me, and wanted to know what I was doing wrong.&lt;/P&gt;&lt;P&gt;So what I want to do is end a specific users program/session which they have started, it would be great if I could end it by GUI-id but I havnt been able to find any info on doing that. But atleast to be able to do it by session &amp;amp; tcode, this would have to be done via the background, with no user interaction.&lt;/P&gt;&lt;P&gt;What I've tried is to get the info on users by&lt;BR /&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;CALL&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;FUNCTION&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;'TH_USER_LIST'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;lt_UINFO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;USRLIST&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;lt_USRINFO&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;others&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;and then kill the session by&lt;BR /&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;CALL&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;FUNCTION&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;'TH_DELETE_USER'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;client&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;sy&lt;SPAN class=""&gt;-&lt;/SPAN&gt;mandt&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;"&amp;nbsp;Current&amp;nbsp;client&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;ls_usrinfo&lt;SPAN class=""&gt;-&lt;/SPAN&gt;bname&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;"&amp;nbsp;Username&amp;nbsp;of&amp;nbsp;the&amp;nbsp;session&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;=&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;ls_usrinfo&lt;SPAN class=""&gt;-&lt;/SPAN&gt;tid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;"&amp;nbsp;Session&amp;nbsp;ID&amp;nbsp;(TID)&amp;nbsp;to&amp;nbsp;end&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;OTHERS&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;as I've seen other people on here say it worked for them, but this ends the users entire session, all their current transaction and not just a specific program or tcode and thus wont work for me.&lt;BR /&gt;&lt;BR /&gt;Does anybody know of a good way to end a users specific transaction/program or guiid?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 11:04:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13852827#M2030725</guid>
      <dc:creator>ben09</dc:creator>
      <dc:date>2024-09-03T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13852965#M2030729</link>
      <description>&lt;P&gt;Could you try:&lt;/P&gt;&lt;P&gt;(NB: Use Include TSKHINCL for constants)&lt;/P&gt;&lt;P&gt;Loop on result of &lt;SPAN&gt;TH_USER_LIST' and&amp;nbsp;&lt;/SPAN&gt;list of nodes for each user&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_mode_count
    ID 'TID' FIELD tid
    ID 'MODES' FIELD modes. " table of type modus&lt;/LI-CODE&gt;&lt;P&gt;Delete one node with&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode_delete_mode
    ID 'TID' FIELD tid 
    ID 'MODES' FIELD modus-modus. &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 12:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13852965#M2030729</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2024-09-03T12:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853108#M2030734</link>
      <description>&lt;P&gt;Thank you, but what data value should I define the OPCODE id's with? to my knowledge they are al defined with some number e.g:&lt;!--  StartFragment   --&gt; &lt;SPAN&gt;&lt;SPAN class=""&gt;DATA&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&amp;nbsp;&lt;/SPAN&gt;opcode_get_mode_list&amp;nbsp;&lt;SPAN class=""&gt;TYPE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;x&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;VALUE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;'INT'&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 13:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853108#M2030734</guid>
      <dc:creator>ben09</dc:creator>
      <dc:date>2024-09-03T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853164#M2030736</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;Look at the already provided include&amp;nbsp;&lt;SPAN&gt;TSKHINCL&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 14:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853164#M2030736</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2024-09-03T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853824#M2030748</link>
      <description>&lt;P&gt;ohh apologies, my reading comprehension is worse than I thought.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 07:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853824#M2030748</guid>
      <dc:creator>ben09</dc:creator>
      <dc:date>2024-09-04T07:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853938#M2030754</link>
      <description>&lt;P&gt;A cup of coffee &lt;span class="lia-unicode-emoji" title=":hot_beverage:"&gt;☕&lt;/span&gt; and you're back on track&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 08:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13853938#M2030754</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2024-09-04T08:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Abap program to end specific User's Program, by sesion/tcode or GUIID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13855175#M2030797</link>
      <description>&lt;P&gt;Thank you for the assistance, that worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Just out of curiosity do you know a way to end a users program in fashion similar to &lt;SPAN class=""&gt;LEAVE PROGRAM, as in a service that listens to a request of closing a program and returning the user to their previous "page". &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 06:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-program-to-end-specific-user-s-program-by-sesion-tcode-or-guiid/m-p/13855175#M2030797</guid>
      <dc:creator>ben09</dc:creator>
      <dc:date>2024-09-05T06:11:29Z</dc:date>
    </item>
  </channel>
</rss>

