<?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 SAGUI Internal Session ID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032296#M84145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to find a unique identifier for a logon from another on sapgui session level.. i tried function modules or took a glance at the C system functions i couldn't find any..&lt;/P&gt;&lt;P&gt;The requirement is , abap program should contact to active sapgui, find it's "session id" or "thread id" or "internal number" or a key similar to those.. and abap program will let's say, insert this gui-id to a database table as a record.. in another logon, another user will be able to check if this session id still exists and active, if not, record will be deleted... &lt;/P&gt;&lt;P&gt;i hope i could've explained the situation... &lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2005 04:15:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-19T04:15:50Z</dc:date>
    <item>
      <title>SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032296#M84145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to find a unique identifier for a logon from another on sapgui session level.. i tried function modules or took a glance at the C system functions i couldn't find any..&lt;/P&gt;&lt;P&gt;The requirement is , abap program should contact to active sapgui, find it's "session id" or "thread id" or "internal number" or a key similar to those.. and abap program will let's say, insert this gui-id to a database table as a record.. in another logon, another user will be able to check if this session id still exists and active, if not, record will be deleted... &lt;/P&gt;&lt;P&gt;i hope i could've explained the situation... &lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 04:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032296#M84145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T04:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032297#M84146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sahin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure you if I have you understand correct.&lt;/P&gt;&lt;P&gt;Have you take a look to the fucntiongroup &amp;lt;b&amp;gt;THFB&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are functions like&lt;/P&gt;&lt;P&gt;TH_GET_SESSION_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 07:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032297#M84146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T07:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032298#M84147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, thank you for the answer and It's my fault that i did not mention the version of sap server is 4.6C. sorry for that. &lt;/P&gt;&lt;P&gt;in that version th_get_session_id does not exist in THFB fugr .&lt;/P&gt;&lt;P&gt;Do you have any other idea ?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sahin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 10:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032298#M84147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T10:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032299#M84148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sahin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try FM &amp;lt;b&amp;gt;TH_SYSTEMWIDE_USER_LIST&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;This gives you a list of currently logged on user sessions, with USERID, TERMINAL name, last dialog time,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is what you like to record in the database table. Here you get it "online".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find my answer useful, please don't forget the reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Juergen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 10:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032299#M84148</guid>
      <dc:creator>former_member225448</dc:creator>
      <dc:date>2005-10-19T10:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032300#M84149</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;  Actually the following is the C call inside the fm that Stefan has given you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call 'ThUsrInfo' id 'OPCODE' field opcode_get_session_id&lt;/P&gt;&lt;P&gt;                 id 'SESSION_ID' field session_id&lt;/P&gt;&lt;P&gt;                 id 'ID_LEN' field id_len.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the data declaration of opcode_get_session_id is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: OPCODE_GET_SESSION_ID   LIKE TH_OPCODE VALUE 68.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;session_id is of TYPE THFB_SESSION_ID (not there in 46C)&lt;/P&gt;&lt;P&gt;but is of CHAR32 length..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;id_len is TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you get back session_id and id_len..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 10:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032300#M84149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T10:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032301#M84150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juergen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've already tracked back the logon information like logon time, terminal or details you may see in sm04 but this is not sufficient since teorically there can be identical logon information for two different logon at a point of time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need more unique identifier like a thread or session id between sap server and sapgui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 16:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032301#M84150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032302#M84151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer,&lt;/P&gt;&lt;P&gt;i run this c function but it returns subrc=1 and session_id/id_len returns null... perhaps this hex-68 value which i guess that corresponds the 'get_session_id' method of opcode, was not recognized.. do you know if this value is defined in 46C kernel or is there a way to have a list of all OPCODES delivered in 46C kernel ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks and regards,&lt;/P&gt;&lt;P&gt;Sahin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 16:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032302#M84151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T16:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032303#M84152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works for me in my 46c system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002 .

data: opcode_get_session_id type x value 68.
data: session_id(32) type c.
data: id_len type i.


call 'ThUsrInfo' id 'OPCODE' field opcode_get_session_id
          id 'SESSION_ID' field session_id
          id 'ID_LEN' field id_len.


check sy-subrc = 0.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 17:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032303#M84152</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-19T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032304#M84153</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 don't know what goes wrong but that piece of code does not return any value in this system. &lt;/P&gt;&lt;P&gt;my gui version is 640/patch 12 sap basis kernel is 46D patch 1290.. running oracle on unix .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anyway to debug or get details info about this opcodes ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2005 17:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032304#M84153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-19T17:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAGUI Internal Session ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032305#M84154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sahin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this on a 46C system in our company with a 46D kernel patch 2041 and a gui 6.20 patchlevel 50.&lt;/P&gt;&lt;P&gt;-&amp;gt; It works - no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have your company planned a kernelpatch in the next time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 06:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sagui-internal-session-id/m-p/1032305#M84154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T06:36:37Z</dc:date>
    </item>
  </channel>
</rss>

