<?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: log on into the function module with different user name. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980471#M703707</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 developing one basis tool. in that one i have to validate the transaction codes assigned to particular user. so that i need this check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 11:39:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-14T11:39:55Z</dc:date>
    <item>
      <title>log on into the function module with different user name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980468#M703704</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 log on into the system with my user id suppose 'mukka' and i have to check the authorization of another user say 'you' using the function module "authority_check_tcode". but here i am getting the problem that when i assigned sy-uname to 'you' and execute the function module it is entering into the function module with 'mukka' user name only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sample code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                            sy-uname  = p_uname.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'AUTHORITY_CHECK_TCODE'  "#EC"&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        tcode  = v_tcode&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        ok     = 1&lt;/P&gt;&lt;P&gt;        not_ok = 2.&lt;/P&gt;&lt;P&gt;when i am changing the sy-uname with p_uname the sy-uname is changed but when i entered into the function module authority_check_tcode in the debugging mode at the below the sy-uname variable is showing  as 'mukka' only. but i need to check the authorizations of user 'you' pls give me solution to my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 10:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980468#M703704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T10:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: log on into the function module with different user name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980469#M703705</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;Why would you want to check the authorisation of another user and not the one currently logged in?  The idea of authorisations is to check the current user is able to perform a certain activity.  The majority of fields on SYST are constantly updated to have the correct values (partly so you can't fiddel authorisation checks like this &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe if you explain to us what you are trying to do we can offer some other help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980469#M703705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: log on into the function module with different user name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980470#M703706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because the system variables store the current values at any point of time and change on execution of every statement.&lt;/P&gt;&lt;P&gt;Here when you change the sy-uname, it will change for that step only, once the statement call function is executed the variable will be re-initialised to the logged in user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Lokesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980470#M703706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: log on into the function module with different user name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980471#M703707</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 developing one basis tool. in that one i have to validate the transaction codes assigned to particular user. so that i need this check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980471#M703707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: log on into the function module with different user name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980472#M703708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;          thank you for your answer. but in 5.0 version this same code is working fine when we execute the program directly with out enter in to the debugging mode. and checks the authorization of transaction codes to the different users. but when i tried in debugging mode it is not giving the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980472#M703708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: log on into the function module with different user name.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980473#M703709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mukka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cant change system variables with such values.&lt;/P&gt;&lt;P&gt;Instead use a local variable &amp;amp; pass the data to the FM with local variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/log-on-into-the-function-module-with-different-user-name/m-p/2980473#M703709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:48:58Z</dc:date>
    </item>
  </channel>
</rss>

