<?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: Get user system domain name ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852831#M46574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nameeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'WS_QUERY'
  exporting
    environment = 'USERDOMAIN'
    query       = 'EN'
  importing
    return      = _return_variable.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, it's an obsolete FM, and I've tried it just in Windows NT, but it may still work !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if it was OK. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Feb 2005 08:03:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-16T08:03:53Z</dc:date>
    <item>
      <title>Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852829#M46572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there FM/Method to get the user's system domain name?&lt;/P&gt;&lt;P&gt;There are some function modules and front-end call methods to get username,terminal name..etc but haven't come across one which gives the domain name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any feedback will be helpfull..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;Nameeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 07:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852829#M46572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-16T07:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852830#M46573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it plain SAP or with HTPP(s)? If it's the latter you can always retrive the ip addresse (~remote_addr)&lt;/P&gt;&lt;P&gt;See &lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/c1/7f56d32e243141a1595268bfcf351a/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/c1/7f56d32e243141a1595268bfcf351a/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have also a look at&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="211800"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 07:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852830#M46573</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2005-02-16T07:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852831#M46574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nameeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'WS_QUERY'
  exporting
    environment = 'USERDOMAIN'
    query       = 'EN'
  importing
    return      = _return_variable.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, it's an obsolete FM, and I've tried it just in Windows NT, but it may still work !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if it was OK. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 08:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852831#M46574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-16T08:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852832#M46575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nameeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need the hostname of the server you're logged on to, the variable SY-HOST should give you what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you need the hostname of the user logged on, take a look at program RSUSR000 (tcode AL08) - you should be able to extract the information you need with the code inside. but basically you get all the systems/instances for the server you're logged on, and determine the users on each server. from there it shouldn't be hard to read off the hostname of the user's login name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;[edit]&amp;lt;/b&amp;gt; ... and the code above should give you what you need too. heheh. not only did i not read your question correctly, but by the time i got to post, someone had something more correct posted already. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; &amp;lt;b&amp;gt;[/edit]&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps anyway,&lt;/P&gt;&lt;P&gt;ryan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ryan Kristoffer Tan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ryan Kristoffer Tan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 08:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852832#M46575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-16T08:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852833#M46576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nameeth / Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You wouldn't find this &amp;lt;i&amp;gt;obsolete&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data front_end   type ref to CL_GUI_FRONTEND_SERVICES.
data user_domain type string.

start-of-selection.
  create object front_end.
  
  CALL METHOD cl_gui_frontend_services=&amp;gt;environment_get_variable
    EXPORTING
      variable             = 'USERDOMAIN'
    CHANGING
      value                = user_domain
    EXCEPTIONS
      others               = 4.
IF sy-subrc &amp;lt;&amp;gt; 0.
* Error Handling
ENDIF.

CALL METHOD CL_GUI_CFW=&amp;gt;FLUSH.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2005 08:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852833#M46576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-16T08:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852834#M46577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't forget to reward points if you feel that your question is answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 13:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852834#M46577</guid>
      <dc:creator>eddy_declercq</dc:creator>
      <dc:date>2005-03-22T13:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get user system domain name ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852835#M46578</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 method Anand mentioned is the best. However you can also use the function module &amp;lt;b&amp;gt;'TH_USER_INFO'&amp;lt;/b&amp;gt; as far as I remember.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2005 15:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-user-system-domain-name/m-p/852835#M46578</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-03-22T15:44:42Z</dc:date>
    </item>
  </channel>
</rss>

