<?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: sap  sm04  functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123176#M445276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best thing is try to post the question in BASIS forum.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 15:47:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-11T15:47:47Z</dc:date>
    <item>
      <title>sap  sm04  functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123175#M445275</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;The Below   is  the  program  right  now  I am using   for   the   sm04   functionality  ,  it  is  working  fine  ,  But   my  objective   is  , on    the  slection- screen ,  &amp;lt;b&amp;gt;when   user   enters   tcode it  should  pick   all the users who are working on that server and kill that   tcode(like end session functionality)&amp;lt;/b&amp;gt; , before closing  the  all users  tcode, we  should send  a message  to   them and  after executing the program  it should  display    message  successfully killed  all users  tcode.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Please help  me on  this  task ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : tstc,usr02.&lt;/P&gt;&lt;P&gt;data : th_opcode(1) type x.&lt;/P&gt;&lt;P&gt;data: strtid(10).&lt;/P&gt;&lt;P&gt;constants : opcode_user_list like th_opcode value 2,&lt;/P&gt;&lt;P&gt;opcode_mode_count like th_opcode value 3,&lt;/P&gt;&lt;P&gt;opcode_long_usr_info like th_opcode value 32,&lt;/P&gt;&lt;P&gt;opcode_delete_usr like th_opcode value 25,&lt;/P&gt;&lt;P&gt;opcode_delete_trans_id like th_opcode value 45.&lt;/P&gt;&lt;P&gt;data : opcode_delete_mode like th_opcode value 24.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of lt_usgrp occurs 0.&lt;/P&gt;&lt;P&gt;include structure usgrp.&lt;/P&gt;&lt;P&gt;data: end of lt_usgrp.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : itab_all_users like uinfo occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : itab_all_xn like uinfo2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : itab_user_xn like uinfo2 occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: v_tabix type sy-tabix.&lt;/P&gt;&lt;P&gt;data: tid type i,&lt;/P&gt;&lt;P&gt;modes like sy-index.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data params like pri_params.&lt;/P&gt;&lt;P&gt;data: days(1) type n value 2,&lt;/P&gt;&lt;P&gt;count(3) type n value 1,&lt;/P&gt;&lt;P&gt;valid type c.&lt;/P&gt;&lt;P&gt;data: title like pri_params-prtxt.&lt;/P&gt;&lt;P&gt;data temp_text like sm04dic-popupmsg.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame. "TITLE TEXT-001.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define Transactions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select-options: s_xncode for tstc-tcode obligatory.&lt;/P&gt;&lt;P&gt;selection-screen skip.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define User groups&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select-options: s_grp for usr02-class.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Warn User Before Kicking Off?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters : warnuser as checkbox.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;clear : itab_user_xn,&lt;/P&gt;&lt;P&gt;itab_all_users,&lt;/P&gt;&lt;P&gt;itab_user_xn.&lt;/P&gt;&lt;P&gt;refresh : itab_user_xn,&lt;/P&gt;&lt;P&gt;itab_all_users,&lt;/P&gt;&lt;P&gt;itab_user_xn.&lt;/P&gt;&lt;P&gt;*Get list of all users&lt;/P&gt;&lt;P&gt;call 'ThUsrInfo' id 'OPCODE' field opcode_user_list&lt;/P&gt;&lt;P&gt;id 'TAB' field itab_all_users-&lt;STRONG&gt;sys&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'POPUP_WITH_TABLE_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;endpos_col = 100&lt;/P&gt;&lt;P&gt;endpos_row = 50&lt;/P&gt;&lt;P&gt;startpos_col = 10&lt;/P&gt;&lt;P&gt;startpos_row = 10&lt;/P&gt;&lt;P&gt;titletext = 'Users list'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;choise = v_tabix&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;valuetab = itab_all_users&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;BREAK_OFF = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;read table itab_all_users index v_tabix.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;tid = itab_all_users-tid.&lt;/P&gt;&lt;P&gt;write tid to strtid left-justified.&lt;/P&gt;&lt;P&gt;set parameter id 'TID' field strtid.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call 'ThUsrInfo' id 'OPCODE' field opcode_mode_count&lt;/P&gt;&lt;P&gt;id 'TID' field tid&lt;/P&gt;&lt;P&gt;id 'MODES' field modes.&lt;/P&gt;&lt;P&gt;modes = modes + 7.&lt;/P&gt;&lt;P&gt;call screen 2000 starting at 4 4 ending at 62 modes.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 15:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123175#M445275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: sap  sm04  functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123176#M445276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the best thing is try to post the question in BASIS forum.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 15:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123176#M445276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T15:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: sap  sm04  functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123177#M445277</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;Please my help on  this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 17:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123177#M445277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T17:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: sap  sm04  functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123178#M445278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ramesh...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basis guys had already infomed that there is no functionality as such on which they can help us...so i think we need to do using ABAP...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kommi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 18:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123178#M445278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T18:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: sap  sm04  functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123179#M445279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI , &lt;/P&gt;&lt;P&gt;I am new to SAP . IF u have got the solution for this can u mail me on maheshnaik85@gmail.com&lt;/P&gt;&lt;P&gt;even I am trying to do this ...for learnig....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-sm04-functionality/m-p/2123179#M445279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:34:21Z</dc:date>
    </item>
  </channel>
</rss>

