<?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: authorization concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789655#M339818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While you might not be able to do this with authorizations, depending on the roles the user has, you can do it another simple way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make an entry in table TVARVC (use SE16) where the name is something unique (like the program name) and the low value equal to the user ID. Then within the program add the statement:&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM tvarvc&lt;/P&gt;&lt;P&gt;    WHERE name = &amp;lt;unique name from above&amp;gt;&lt;/P&gt;&lt;P&gt;     AND  low  = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message --- "you are not authorized to use this program".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2007 20:58:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-03T20:58:46Z</dc:date>
    <item>
      <title>authorization concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789650#M339813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: I have two users user1 and user2 and a transaction ZS01. user1 can access this transaciton while user2 must not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: How can i program this using auth concept. As i am new to this i need step by step procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saravanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 16:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789650#M339813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T16:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: authorization concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789651#M339814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;check this below link may be helpful for you&lt;/P&gt;&lt;P&gt;&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="2243233"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GUDURI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 16:40:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789651#M339814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: authorization concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789652#M339815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below code is useful to check if user has the authority to execute transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;                id     'TCD' &lt;/P&gt;&lt;P&gt;                field  'ZS01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  User does not have authority for transaction zs01!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also refer this link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 18:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789652#M339815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T18:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: authorization concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789653#M339816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saravanan, you will have to have your security team include the transaction code in the profile for user 1 and not do it for user 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such a scenario, you do not need any program changes. When user2 tries to execute the tcode , he will get authorziation error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 19:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789653#M339816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T19:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: authorization concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789654#M339817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saravanan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems you want to provide access to both users (user 1 and user 2) but both of them should not access the transaction ZS01 at the same time. Is that correct?  If yes, you cannot achieve this using auth. concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to do it through programming only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Viswa&lt;/P&gt;&lt;P&gt;(Assign points if helpful)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 19:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789654#M339817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T19:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: authorization concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789655#M339818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While you might not be able to do this with authorizations, depending on the roles the user has, you can do it another simple way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make an entry in table TVARVC (use SE16) where the name is something unique (like the program name) and the low value equal to the user ID. Then within the program add the statement:&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM tvarvc&lt;/P&gt;&lt;P&gt;    WHERE name = &amp;lt;unique name from above&amp;gt;&lt;/P&gt;&lt;P&gt;     AND  low  = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message --- "you are not authorized to use this program".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 20:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-concept/m-p/1789655#M339818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T20:58:46Z</dc:date>
    </item>
  </channel>
</rss>

