<?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 Authorisation for users in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-for-users/m-p/3914927#M938464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;In transaction ME51n i want to give authorisation to users based on cost center. how can i do this. do i have to create an authorisation objct for this.&lt;/P&gt;&lt;P&gt;or can we implement some logic in user exit if so which exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me detail step by step way to create authrisation object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Quavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 08:24:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-27T08:24:51Z</dc:date>
    <item>
      <title>Authorisation for users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-for-users/m-p/3914927#M938464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;In transaction ME51n i want to give authorisation to users based on cost center. how can i do this. do i have to create an authorisation objct for this.&lt;/P&gt;&lt;P&gt;or can we implement some logic in user exit if so which exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me detail step by step way to create authrisation object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Quavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 08:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-for-users/m-p/3914927#M938464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T08:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Authorisation for users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-for-users/m-p/3914928#M938465</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;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 &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 &lt;/P&gt;&lt;P&gt;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;Note: Keywords and options of statements are uppercase. Each statement ends &lt;/P&gt;&lt;P&gt;with a period or U can consult with ur ABAP consultant regarding &lt;/P&gt;&lt;P&gt;authority-check syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 08:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-for-users/m-p/3914928#M938465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T08:27:45Z</dc:date>
    </item>
  </channel>
</rss>

