<?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: Host user name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070940#M1504638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jul 2010 06:39:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-10T06:39:00Z</dc:date>
    <item>
      <title>Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070933#M1504631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, it's posible to know what is the host username connected to SAP?&lt;/P&gt;&lt;P&gt;SM04 has information of the client host address but not of the operating system user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 08:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070933#M1504631</guid>
      <dc:creator>enrique_ruiz</dc:creator>
      <dc:date>2010-07-08T08:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070934#M1504632</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;have a look at class CL_GUI_FRONTEND_SERVICES. There is a method which returns desktop user name. Obviously, this works only if used is logged on via SAP Gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 08:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070934#M1504632</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-07-08T08:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070935#M1504633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's valid only for obtain the host user name of the user who is executing the method. I need to know the host user name for all the sessions opened in my system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 09:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070935#M1504633</guid>
      <dc:creator>enrique_ruiz</dc:creator>
      <dc:date>2010-07-08T09:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070936#M1504634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 09:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070936#M1504634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T09:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070937#M1504635</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;you are right. That method works only for user who is executing code. I don't know about any method/function which would give you a list user names for each session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can give you a "simple" workaround. You could use SUSR0001 to store current desktop user name for each SAP user name. We can assume that desktop username can't change during GUI session. This user exit is called after dialog user logs on to system. So you can get desktop user name here and store it into DB or shared memory. Then in your report you just read current desktop name from DB or memory. The multiple logons for same user name might complicate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW what is your real requirement? Why do you need to know desktops user name for each user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 09:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070937#M1504635</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-07-08T09:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070938#M1504636</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;Refer to julius statement on Su01 exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SU01 exits are described in SAP Note 367660 (which is currently not released anymore at this moment as the exits are only available up to release 7.00) and are replaced by BADI's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1730182"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 16:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070938#M1504636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T16:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070939#M1504637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread is completely unrelated to the one you are linking to (SU01 exits)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique wants the user name logged onto the host machine of the frontend SAPGui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ Enrique: A way of doing this is to use the computer user's name as the principal SNC name and map it to the SAP user ID. Then activate SNC and deactivate the user's password. Works like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 17:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070939#M1504637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T17:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070940#M1504638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 06:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070940#M1504638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-10T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070941#M1504639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; This thread is completely unrelated to the one you are linking to (SU01 exits)...&lt;/P&gt;&lt;P&gt;&amp;gt; Enrique wants the user name logged onto the host machine of the frontend SAPGui.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, actuallly it's not.&lt;/P&gt;&lt;P&gt;One could call the method during the user-exit which is processed directly after a successful SAPGUI logon.&lt;/P&gt;&lt;P&gt;But he would have to persist the retrieved information in his own persistence - and he would have to make sure that he does some "house-keeping" (i.e. deleting the data when the user is logging off respectively when the connection between SAPGUI and ABAP server has dropped - for which no user-exit exists).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I would also be very keen in getting to know about the background of this requirement.&lt;/P&gt;&lt;P&gt;Sounds like someone is actually striving for a SSO solution. In that case, "SNC" is the keyword (just search for that in this forum and you should find some hits - but ensure to relax the date filter).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 12:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070941#M1504639</guid>
      <dc:creator>Wolfgang_Janzen</dc:creator>
      <dc:date>2010-07-16T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070942#M1504640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; No, actuallly it's not.&lt;/P&gt;&lt;P&gt;Yes it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri's "contribution" here is easily confusing because she is posting the wrong information to the wrong thread and then cross-link-farming them as nested reference indexes for the rest of the internet...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link to the other thread refers to SU01 exits for the naming convention of the ABAP user ID (SU01). Sri then hijacked the other thread with irrelevant information about SUSR0001 (the logon user exit &amp;lt;-- also irrelevant).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is only in this thread where information about SUSR0001 is relevant, but Sri still managed to mention SAP Note 367660 in it now (also irrelevant) which relates to the other thread and SU01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So two wrongs don't make a right, even although the exits are in the same package &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Sounds like someone is actually striving for a SSO solution.&lt;/P&gt;&lt;P&gt;That is why I also wanted to know what good could come of this. I have seen something similar once before "in the wild" and it was to ensure that the password was sent for the correct user ID name - incase they happened to have been the same for a different user. They also called it SSO... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jul 2010 12:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070942#M1504640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-16T12:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070943#M1504641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;and he would have to make sure that he does some "house-keeping" (i.e. deleting the data when the user is logging off respectively when the connection between SAPGUI and ABAP server has dropped - for which no user-exit exists).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I think that in this case you don't need to do "house-keeping". You can have a table with latest desktop username for each user. We can assume that username can't change during logon session and user exit is called at start of each session. So you can use standard SM04 functioanlity to get list of current users and just read desktop username for each user from your table. If you want to avoid query to DB you can try to use shared memory. I am not sure how it works for multiple applicaiton servers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW my first guess was that Enrique is trying to catch users who share logon details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jul 2010 08:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070943#M1504641</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-07-17T08:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Host user name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070944#M1504642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; BTW my first guess was that Enrique is trying to catch users who share logon details.&lt;/P&gt;&lt;P&gt;There is a SAP standard table (usr41_mld) and procedure in the logon program for that, so no need to re-invent anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that Enrique wants to force people to use their own PC only, and the reason for that might have something to do with not changing the user ID as the logon either fails or if worst comes worse then it is successfull... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique: please enlighten our curiosity?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jul 2010 08:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/host-user-name/m-p/7070944#M1504642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-17T08:32:49Z</dc:date>
    </item>
  </channel>
</rss>

