<?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 Authorization object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030856#M1499370</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;&lt;/P&gt;&lt;P&gt;My requirement is to create a authorization object such that user having this Auth Object attached to his profile can change a value of field on particular Tcode from X to y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the different steps  i need to carry out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with few steps but aftaer that i have no idea how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt; I created a object class in SU21&lt;/P&gt;&lt;P&gt;2&amp;gt; Then i created one authorization object under this class.&lt;/P&gt;&lt;P&gt;3&amp;gt;  I went to SU20 to create field name for which i want to restrict these values.&lt;/P&gt;&lt;P&gt;4 &amp;gt; Now back to SU21 i selected that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afer that i am not sure wht other steps i need to carry out.....where i will assign possible values such that person can only set  value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 22:40:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-02T22:40:06Z</dc:date>
    <item>
      <title>Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030856#M1499370</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;&lt;/P&gt;&lt;P&gt;My requirement is to create a authorization object such that user having this Auth Object attached to his profile can change a value of field on particular Tcode from X to y.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain the different steps  i need to carry out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with few steps but aftaer that i have no idea how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;gt; I created a object class in SU21&lt;/P&gt;&lt;P&gt;2&amp;gt; Then i created one authorization object under this class.&lt;/P&gt;&lt;P&gt;3&amp;gt;  I went to SU20 to create field name for which i want to restrict these values.&lt;/P&gt;&lt;P&gt;4 &amp;gt; Now back to SU21 i selected that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Afer that i am not sure wht other steps i need to carry out.....where i will assign possible values such that person can only set  value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 22:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030856#M1499370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T22:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030857#M1499371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  It seems that procedures were correct. However is important to check authorization check statment in your programs &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AUTHORITY-CHECK OBJECT &amp;lt;my_objc&amp;gt; 
         ID 'ACTVT' FIELD 'X'
         ID 'myfield' FIELD 'myvalue'

   IF sy-subrc NE 0.
      User does not have access to this record/area 
   ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Carlos Machado on Jun 3, 2010 2:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 23:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030857#M1499371</guid>
      <dc:creator>former_member214857</dc:creator>
      <dc:date>2010-06-02T23:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030858#M1499372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read the following:&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;u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026&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;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FYI&lt;/STRONG&gt;&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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May this helps you.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Deepak Sharma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 23:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object/m-p/7030858#M1499372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T23:29:46Z</dc:date>
    </item>
  </channel>
</rss>

