<?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 Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649547#M610658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Tcode for Authority object are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SU20 -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;&amp;gt; for authorization field&lt;/P&gt;&lt;P&gt;SU21----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; Authorization Object&lt;/P&gt;&lt;P&gt;SU22----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; Assign Authorization Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 04:55:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T04:55:22Z</dc:date>
    <item>
      <title>Authority Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649544#M610655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone plese tell me the procedure for creating authority object and implementing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction &lt;/P&gt;&lt;P&gt;Steps &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 04:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649544#M610655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T04:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649545#M610656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to su21 to create the Authority object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implementing in code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'YTM1SD001'&lt;/P&gt;&lt;P&gt;          ID 'ACTVT' FIELD '16'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE i003 WITH sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 04:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649545#M610656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T04:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649546#M610657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the following extract on Authorisation objects -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using SU21 u can create Authorisation Object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Details to give an authorisation for ABAP PROGRAMS are as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The smallest unit against which the check should be run is the authorization &lt;/P&gt;&lt;P&gt;field. &lt;/P&gt;&lt;P&gt;The ABAP command AUTHORITY-CHECK is used for performing authorizaton checks in programs. Before accessing the database the user should carry out an &lt;/P&gt;&lt;P&gt;authorization check which is implemented in the ABAP program. The &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK statement first checks if the user has the authorization &lt;/P&gt;&lt;P&gt;containing all the required values. Then the code value in the system field &lt;/P&gt;&lt;P&gt;SY-SUBRC is checked. If the required value is available for each &lt;/P&gt;&lt;P&gt;authorization field, the check is successful (SY-SUBRC = 0). If the value is &lt;/P&gt;&lt;P&gt;not 0, then the check is unsuccessful, which means that the user does not &lt;/P&gt;&lt;P&gt;possess the required authorization and an error message will be displayed. &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK sets SY-SUBRC to 4, 8, 12, 16, 24, 28, 32 or 36 depending on &lt;/P&gt;&lt;P&gt;the cause of the authorization failure, e.g. return code 4 means that the &lt;/P&gt;&lt;P&gt;user does not have the required authorization; SY-SUBRC = 8 means that the &lt;/P&gt;&lt;P&gt;check could not successfully be carried out since not all fields of the &lt;/P&gt;&lt;P&gt;object were specified. The field SUBRC is in the APAB Dictionary SYST. To &lt;/P&gt;&lt;P&gt;address the system field in an ABAP program, the form SY-&amp;lt;fieldname&amp;gt; is &lt;/P&gt;&lt;P&gt;used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP syntax of the AUTHORITY-CHECK statement is: &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT '&amp;lt;object&amp;gt;' (which created by you in SU21) &lt;/P&gt;&lt;P&gt;ID '&amp;lt;name1&amp;gt;' FIELD &amp;lt;f1&amp;gt; (fields given in Authorisation object) &lt;/P&gt;&lt;P&gt;??????????? &lt;/P&gt;&lt;P&gt;ID '&amp;lt;name10&amp;gt;' FIELD &amp;lt;f10&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &amp;lt;object&amp;gt; is the name of the authorization object that has to be &lt;/P&gt;&lt;P&gt;checked, &amp;lt;name1&amp;gt;,..., &amp;lt;name10&amp;gt; are the authorization fields in the object, &lt;/P&gt;&lt;P&gt;and &amp;lt;f1&amp;gt;,... ,&amp;lt;f10&amp;gt; are the values for which the authorization is to be &lt;/P&gt;&lt;P&gt;checked. If after the field name is entered DUMMY, the check for a &lt;/P&gt;&lt;P&gt;particular field will not be carried out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it serves your purpose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 04:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649546#M610657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T04:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Authority Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649547#M610658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Tcode for Authority object are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SU20 -&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;&amp;gt; for authorization field&lt;/P&gt;&lt;P&gt;SU21----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; Authorization Object&lt;/P&gt;&lt;P&gt;SU22----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&amp;gt; Assign Authorization Object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 04:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/2649547#M610658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T04:55:22Z</dc:date>
    </item>
  </channel>
</rss>

