<?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 Understanding AUTHORITY-CHECK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938544#M62652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a security guy but am trying to understand how the AUTHORITY-CHECK works. I have read the help on it but it doesn't answer to my understanding. I want a check in a report so that no matter what the user selects the program goes out and checks the authorization in the users master record and only displays what he has access to. I am sure this is basic but I am not a programmer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2005 17:23:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-19T17:23:40Z</dc:date>
    <item>
      <title>Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938544#M62652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a security guy but am trying to understand how the AUTHORITY-CHECK works. I have read the help on it but it doesn't answer to my understanding. I want a check in a report so that no matter what the user selects the program goes out and checks the authorization in the users master record and only displays what he has access to. I am sure this is basic but I am not a programmer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2005 17:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938544#M62652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-19T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938545#M62653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must create an authority object or use an existing one.  In the report program, code the authority check.  If sy-subrc &amp;lt;&amp;gt; 0, then the user does not have authority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  authority-check object 'A_A_VIEW'
           id 'VIEW' field p_asset.

  if sy-subrc &amp;lt;&amp;gt; 0.
    write:/ 'No Authority'.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Tue, 19 Jul 2005 17:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938545#M62653</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-07-19T17:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938546#M62654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich. The documentation lists specific values for the field values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2005 17:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938546#M62654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-19T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938547#M62655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your question answered ? Or do you require additional information ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your problem is solved, then could you please mark this thread as answered ?&lt;/P&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, 20 Jul 2005 03:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938547#M62655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T03:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938548#M62656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain the working of Authority-check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 05:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938548#M62656</guid>
      <dc:creator>rahulab</dc:creator>
      <dc:date>2005-12-22T05:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938549#M62657</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;Authority-Check is used to check User authorizations. You can use an AUTHORITY-CHECK in your program, if you have a requirement where only specific users can have access to the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can have several validations in Authority-Check. For e.g. only selected Users can run a particular transaction, only selected Users can run a report for a specific plant &amp;amp; if any other user tries to execute the report, then the Authority-check would fail &amp;amp; will raise a message that 'The User doesn't have access for a specific plant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One has to create a authorization object &amp;amp; assign authorization fields to it. Only those fields are validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZABC'&lt;/P&gt;&lt;P&gt; ID 'BUKRS' FIELD ITAB-BUKRS&lt;/P&gt;&lt;P&gt; ID 'VKORG' FIELD ITAB-VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the user authorization is done for two fields i.e. BUKRS &amp;amp; VKORG. If for a particular value of BUKRS or VKORG, the User executing the program doesn't have authorization, then that record won't be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if in another program, developer doesn't want to have validation on two fields but only validation on VKORG. Then he can use the same Authorization Object with following changes :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZABC'&lt;/P&gt;&lt;P&gt; ID 'BUKRS' DUMMY&lt;/P&gt;&lt;P&gt; ID 'VKORG' FIELD ITAB-VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here the BUKRS field won't be validated &amp;amp; only VKORG would be validated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clears the doubts.&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>Thu, 22 Dec 2005 06:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938549#M62657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding AUTHORITY-CHECK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938550#M62658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Explanation Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 14:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-authority-check/m-p/938550#M62658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T14:30:40Z</dc:date>
    </item>
  </channel>
</rss>

