<?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: Authority-check problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753966#M640669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below PDF Document and here you will see good example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2007 12:43:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T12:43:08Z</dc:date>
    <item>
      <title>Authority-check problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753964#M640667</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;I created a &amp;lt;b&amp;gt;authority object&amp;lt;/b&amp;gt; which has 3 &amp;lt;b&amp;gt;object fields&amp;lt;/b&amp;gt;, I want to confirm &lt;/P&gt;&lt;P&gt;whether the user has &amp;lt;b&amp;gt;&amp;lt;u&amp;gt;anyone&amp;lt;/u&amp;gt; of the 3 object fields&amp;lt;/b&amp;gt;, is there a good way&lt;/P&gt;&lt;P&gt;to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753964#M640667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T12:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Authority-check problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753965#M640668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tt,&lt;/P&gt;&lt;P&gt;I think the easiest way to do so is to check individually each one of the three fields:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT ...
  ID 'FIELD1' FIELD value1
  ID 'FIELD2' DUMMY
  ID 'FIELD3' DUMMY.
IF sy-subrc &amp;lt;&amp;gt; 0.
  AUTHORITY-CHECK OBJECT ...
    ID 'FIELD1' DUMMY
    ID 'FIELD2' FIELD value2
    ID 'FIELD3' DUMMY.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    AUTHORITY-CHECK OBJECT ...
      ID 'FIELD1' DUMMY
      ID 'FIELD2' DUMMY
      ID 'FIELD3' FIELD value3.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope this helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753965#M640668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authority-check problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753966#M640669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the below PDF Document and here you will see good example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753966#M640669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T12:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Authority-check problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753967#M640670</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 will need to use all the three field in the check..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st will be the field that u r going to check.. for example a profit center&lt;/P&gt;&lt;P&gt;2nd will be the activity that u can perform 01, 02, 03&lt;/P&gt;&lt;P&gt;3rd will be the value for the above field.. for ex.. 10001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i have PC 03 10001.. this means that i am authorized to view this profit center..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753967#M640670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T12:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authority-check problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753968#M640671</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;Steps to implement authorization checks:&lt;/P&gt;&lt;P&gt;1. Creating Authorization object in SU21. (If it is not existing already)&lt;/P&gt;&lt;P&gt;    Assign the Fields here&lt;/P&gt;&lt;P&gt;    This is done by ABAP resouce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Creating authorizations  using these Auth Objects.&lt;/P&gt;&lt;P&gt;    This is done by BASIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Assigning these authorizations to users (SU01)&lt;/P&gt;&lt;P&gt;    This is done by BASIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Checking the Authorization of a user in a program&lt;/P&gt;&lt;P&gt;    This is done by ABAP resouce &lt;/P&gt;&lt;P&gt;    using the Statement called AUTHORITY-CHECK in a program.&lt;/P&gt;&lt;P&gt;    This statement accepts the Values for the Fields and if a suitable authorization found in the User profile then it returns SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 12:46:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2753968#M640671</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-03T12:46:55Z</dc:date>
    </item>
  </channel>
</rss>

