<?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: Auth Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455229#M215260</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;Check this sap help..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_crm50/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_crm50/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2006 13:04:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-07T13:04:17Z</dc:date>
    <item>
      <title>Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455225#M215256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply me that what are the authorization objects and why do we use them??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking in advance.&lt;/P&gt;&lt;P&gt;Gauima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 12:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455225#M215256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T12:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455226#M215257</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;Check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT object &lt;/P&gt;&lt;P&gt;    ID name1  FIELD f1 &lt;/P&gt;&lt;P&gt;    ID name2  FIELD f2 &lt;/P&gt;&lt;P&gt;    ... &lt;/P&gt;&lt;P&gt;    ID name10 FIELD f10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Explanation of IDs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object &lt;/P&gt;&lt;P&gt;Field which contains the name of the object for which the authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the names of the &lt;/P&gt;&lt;P&gt;name10 &lt;/P&gt;&lt;P&gt;authorization fields defined in the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the values for which the &lt;/P&gt;&lt;P&gt;f10 &lt;/P&gt;&lt;P&gt;authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK checks for one object whether the user has an authorization that contains all values of f (see SAP authorization concept). &lt;/P&gt;&lt;P&gt;You must specify all authorizations for an object and a also a value for each ID (or DUMMY). &lt;/P&gt;&lt;P&gt;The system checks the values for the IDs by AND-ing them together, i.e. all values must be part of an authorization assigned to the user. &lt;/P&gt;&lt;P&gt;If a user has several authorizations for an object, the values are OR-ed together. This means that if the CHECK finds all the specified values in one authorization, the user can proceed. Only if none of the authorizations for a user contains all the required values is the user rejected. &lt;/P&gt;&lt;P&gt;If the return code value in SY-SUBRC is 0, the user has the required authorization and may continue. &lt;/P&gt;&lt;P&gt;The return code value changes according to the different error scenarios. The return code values have the following meaning: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 &lt;/P&gt;&lt;P&gt;User has no authorization in the SAP System for such an action. If necessary, change the user master record. &lt;/P&gt;&lt;P&gt;8 &lt;/P&gt;&lt;P&gt;Too many parameters (fields, values). Maximum allowed is 10. &lt;/P&gt;&lt;P&gt;12 &lt;/P&gt;&lt;P&gt;Specified object not maintained in the user master record. &lt;/P&gt;&lt;P&gt;16 &lt;/P&gt;&lt;P&gt;No profile entered in the user master record. &lt;/P&gt;&lt;P&gt;24 &lt;/P&gt;&lt;P&gt;The field names of the check call do not match those of an authorization. Either the authorization or the call is incorrect. &lt;/P&gt;&lt;P&gt;28 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;32 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;36 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the return code value is 8 or 24, inform the person responsible for the program. If the return code value is 4, 12, 16 or 24, consult your system administrator if you think you should have the relevant authorization. In the case of errors 28 to 36, contact SAP because authorizations have probably been destroyed. &lt;/P&gt;&lt;P&gt;Individual authorizations are assigned to users in their respective user profiles, i.e. they are grouped together in profiles which are stored in the user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Instead of ID name FIELD f, you can also write ID name DUMMY. This means that no check is performed for the field concerned. &lt;/P&gt;&lt;P&gt;The check can only be performed on CHAR fields. All other field types result in 'unauthorized'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Check whether the user is authorized for a particular plant. In this case, the following authorization object applies: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table OBJ: Definition of authorization object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_EINF_WRK &lt;/P&gt;&lt;P&gt;   ACTVT &lt;/P&gt;&lt;P&gt;   WERKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, M_EINF_WRK is the object name, whilst ACTVT and WERKS are authorization fields. For example, a user with the authorizations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_EINF_WRK_BERECH1 &lt;/P&gt;&lt;P&gt;   ACTVT 01-03 &lt;/P&gt;&lt;P&gt;   WERKS 0001-0003 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can display and change plants within the Purchasing and Materials Management areas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a user would thus pass the checks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;    ID 'WERKS' FIELD '0002' &lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '02'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;    ID 'WERKS' DUMMY &lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '01': &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but would fail the check &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;    ID 'WERKS' FIELD '0005' &lt;/P&gt;&lt;P&gt;    ID 'ACTVT' FIELD '04'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To suppress unnecessary authorization checks or to carry out checks before the user has entered all the values, use DUMMY - as in this example. You can confirm the authorization later with another AUTHORITY-CHECK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455226#M215257</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-07T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455227#M215258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Auth Objects are used to restrict users from executing transactions for which they are not authorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg a MM user is not authorised to execute transactions related to FI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use them by calling the AUTHORITY CHECK command in the programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer SAP help for further help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455227#M215258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T13:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455228#M215259</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;authorization objects are used to prevent access to particular report or transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is attach with an object . whenever user tries to access particular object it check the authentication before allowing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Authorization Object Creation&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/groups/technical-functional/sap-r3-basis/please-how-to-create-an-authorization-object-386391" target="test_blank"&gt;http://sap.ittoolbox.com/groups/technical-functional/sap-r3-basis/please-how-to-create-an-authorization-object-386391&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Direct Link from SAP&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;1. Authorization fields are created under Tools -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; ABAP Workbench ---&amp;gt; Development -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Other tools -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Authorization objects -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; Fields (transaction SU20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455228#M215259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T13:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455229#M215260</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;Check this sap help..&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_crm50/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_crm50/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455229#M215260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455230#M215261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gauima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it goes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use ST01 to switch on the authorization trace. If you do not have access to ST01,&lt;/P&gt;&lt;P&gt; you could execute SU53 to check the authorization&lt;/P&gt;&lt;P&gt; objects being checked for a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg you execute MM01 and then you execute SU53 to see what authorization checks were &lt;/P&gt;&lt;P&gt;performed when you executed MM01.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT object &lt;/P&gt;&lt;P&gt;ID name1 FIELD f1 &lt;/P&gt;&lt;P&gt;ID name2 FIELD f2 &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ID name10 FIELD f10. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Explanation of IDs: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object &lt;/P&gt;&lt;P&gt;Field which contains the name of the object for which the authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the names of the &lt;/P&gt;&lt;P&gt;name10 &lt;/P&gt;&lt;P&gt;authorization fields defined in the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1 ... &lt;/P&gt;&lt;P&gt;Fields which contain the values for which the &lt;/P&gt;&lt;P&gt;f10 &lt;/P&gt;&lt;P&gt;authorization is to be checked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK checks for one object whether the user has an authorization that contains &lt;/P&gt;&lt;P&gt;all values of f (see SAP authorization concept). &lt;/P&gt;&lt;P&gt;You must specify all authorizations for an object and a also a value for each ID (or DUMMY). &lt;/P&gt;&lt;P&gt;The system checks the values for the IDs by AND-ing them together, i.e. all values must be part &lt;/P&gt;&lt;P&gt;of an authorization assigned to the user. &lt;/P&gt;&lt;P&gt;If a user has several authorizations for an object, the values are OR-ed together. &lt;/P&gt;&lt;P&gt;This means that if the CHECK finds all the specified values in one authorization, &lt;/P&gt;&lt;P&gt;the user can proceed. Only if none of the authorizations for a user contains all the required &lt;/P&gt;&lt;P&gt;values is the user rejected. &lt;/P&gt;&lt;P&gt;If the return code value in SY-SUBRC is 0, the user has the required authorization and may &lt;/P&gt;&lt;P&gt;continue. &lt;/P&gt;&lt;P&gt;The return code value changes according to the different error scenarios. The return code &lt;/P&gt;&lt;P&gt;values have the following meaning: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 &lt;/P&gt;&lt;P&gt;User has no authorization in the SAP System for such an action. If necessary, &lt;/P&gt;&lt;P&gt;change the user master record. &lt;/P&gt;&lt;P&gt;8 &lt;/P&gt;&lt;P&gt;Too many parameters (fields, values). Maximum allowed is 10. &lt;/P&gt;&lt;P&gt;12 &lt;/P&gt;&lt;P&gt;Specified object not maintained in the user master record. &lt;/P&gt;&lt;P&gt;16 &lt;/P&gt;&lt;P&gt;No profile entered in the user master record. &lt;/P&gt;&lt;P&gt;24 &lt;/P&gt;&lt;P&gt;The field names of the check call do not match those of an authorization. &lt;/P&gt;&lt;P&gt;Either the authorization or the call is incorrect. &lt;/P&gt;&lt;P&gt;28 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;32 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;36 &lt;/P&gt;&lt;P&gt;Incorrect structure for user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the return code value is 8 or 24, inform the person responsible for the program. &lt;/P&gt;&lt;P&gt;If the return code value is 4, 12, 16 or 24, consult your system administrator if &lt;/P&gt;&lt;P&gt;you think you should have the relevant authorization. In the case of errors 28 to 36, &lt;/P&gt;&lt;P&gt;contact SAP because authorizations have probably been destroyed. &lt;/P&gt;&lt;P&gt;Individual authorizations are assigned to users in their respective user profiles, &lt;/P&gt;&lt;P&gt;i.e. they are grouped together in profiles which are stored in the user master record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Instead of ID name FIELD f, you can also write ID name DUMMY. This means that no check &lt;/P&gt;&lt;P&gt;is performed for the field concerned. &lt;/P&gt;&lt;P&gt;The check can only be performed on CHAR fields. All other field types result in 'unauthorized'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Check whether the user is authorized for a particular plant. In this case, &lt;/P&gt;&lt;P&gt;the following authorization object applies: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table OBJ: Definition of authorization object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_EINF_WRK &lt;/P&gt;&lt;P&gt;ACTVT &lt;/P&gt;&lt;P&gt;WERKS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, M_EINF_WRK is the object name, whilst ACTVT and WERKS are authorization fields. &lt;/P&gt;&lt;P&gt;For example, a user with the authorizations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M_EINF_WRK_BERECH1 &lt;/P&gt;&lt;P&gt;ACTVT 01-03 &lt;/P&gt;&lt;P&gt;WERKS 0001-0003 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can display and change plants within the Purchasing and Materials Management areas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a user would thus pass the checks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;ID 'WERKS' FIELD '0002' &lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;ID 'WERKS' DUMMY &lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '01': &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but would fail the check &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'M_EINF_WRK' &lt;/P&gt;&lt;P&gt;ID 'WERKS' FIELD '0005' &lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '04'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To suppress unnecessary authorization checks or to carry out checks before the user &lt;/P&gt;&lt;P&gt;has entered all the values, use DUMMY - as in this example. You can confirm the &lt;/P&gt;&lt;P&gt;authorization later with another AUTHORITY-CHECK. &lt;/P&gt;&lt;P&gt;Authorization checks are a means of protecting functions or objects in the R/3 System. &lt;/P&gt;&lt;P&gt;The programmer of the function determines where and how these checks are made, while the &lt;/P&gt;&lt;P&gt;user administrator determines (within the framework defined by the programmer) who can &lt;/P&gt;&lt;P&gt;execute a function or access an object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The terms central to the SAP authorization concept are: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization field &lt;/P&gt;&lt;P&gt;This is the smallest unit against which checks can be made. The programmer can create &lt;/P&gt;&lt;P&gt;authorization fields by selecting Tools &amp;amp;#8594; ABAP Workbench &amp;amp;#8594; Development &amp;amp;#8594; &lt;/P&gt;&lt;P&gt;Other tools &amp;amp;#8594; Authorization objs &amp;amp;#8594; Fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: ACTVT and CUSTTYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization object &lt;/P&gt;&lt;P&gt;An authorization object groups together 1 to 10 authorization fields which can then be &lt;/P&gt;&lt;P&gt;checked as a combination. The programmer can create authorization fields by selecting &lt;/P&gt;&lt;P&gt;Tools &amp;amp;#8594; ABAP Workbench &amp;amp;#8594; Development &amp;amp;#8594; Other tools &amp;amp;#8594; Authorization &lt;/P&gt;&lt;P&gt;objs &amp;amp;#8594; Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: The authorization objekt S_TRVL_BKS groups together the authorization fields &lt;/P&gt;&lt;P&gt;ACTVT and CUSTTYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization &lt;/P&gt;&lt;P&gt;An authorization is a combination of permitted values for each authorization field of &lt;/P&gt;&lt;P&gt;an authorization object. The user administrator creates authorizations by selecting &lt;/P&gt;&lt;P&gt;Tools &amp;amp;#8594; Administration &amp;amp;#8594; Maintain users &amp;amp;#8594; Authorization. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_TRVL_CUS1 is an authorization for the authorization object S_TRVL_BKS with the values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for customer type (CUSTTYPE) and &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;02 for activity (ACTVT). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users who have this authorization are allowed to change the bookings of all customers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_TRVL_CUS2 is an authorization for the authorization object S_TRVL_BKS with the values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B for customer type (CUSTTYPE) and &lt;/P&gt;&lt;P&gt;03 for activity (ACTVT). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Users who have this authorization are allowed to display the postings of all customers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization profile &lt;/P&gt;&lt;P&gt;An authorization profile represents a simple workplace in the context of authorizations. &lt;/P&gt;&lt;P&gt;An authorization profile contains authorizations for the authorization objects a user &lt;/P&gt;&lt;P&gt;needs to operate effectively in a restricted task area. The user administrator creates &lt;/P&gt;&lt;P&gt;authorizations by selecting Tools &amp;amp;#8594; Administration &amp;amp;#8594; Maintain users &amp;amp;#8594; &lt;/P&gt;&lt;P&gt;Profiles. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User master record &lt;/P&gt;&lt;P&gt;Your user master record is checked when you logon to the R/3 system. Through the authorization &lt;/P&gt;&lt;P&gt;profiles, this provides restricted access to the functions and objects of the R/3 System. &lt;/P&gt;&lt;P&gt;The user administrator creates authorizations by selecting Tools &amp;amp;#8594; Administration &amp;amp;#8594;&lt;/P&gt;&lt;P&gt; Maintain users &amp;amp;#8594; Users. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization check &lt;/P&gt;&lt;P&gt;The programmer can perform authorization checks with the ABAP command AUTHORITY-CHECK by &lt;/P&gt;&lt;P&gt;specifying the value to be checked for each authorization field defined. The system then &lt;/P&gt;&lt;P&gt;scans the profiles in the user master record for the authorizations specified. If one of &lt;/P&gt;&lt;P&gt;the authorizations found for all fields of the authorization object covers the values &lt;/P&gt;&lt;P&gt;specified by AUTHORITY-CHECK, the check was successful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Check whether the user is allowed to change the postings of business customers: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TRVL_BKS' &lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02' &lt;/P&gt;&lt;P&gt;ID 'CUSTTYPE' FIELD 'B'. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the authorization S_TRVL_CUS1 exists in the user's master record, the authorization &lt;/P&gt;&lt;P&gt;check is successful. However, if the authorization S_TRVL_CUS2 exists, but not the &lt;/P&gt;&lt;P&gt;authorization S_TRVL_CUS1, the check fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization assignment &lt;/P&gt;&lt;P&gt;The system administrator is responsible for assigning user master records with the &lt;/P&gt;&lt;P&gt;correct authorizations. You should use the Profile Generator to maintain authorization &lt;/P&gt;&lt;P&gt;profiles. However, you can also change them manually. Each authorization object contains &lt;/P&gt;&lt;P&gt;authorizations. These are grouped together in authorization profiles such that each &lt;/P&gt;&lt;P&gt;authorization profile represents a job description, for example 'flight reservations clerk'. &lt;/P&gt;&lt;P&gt;You assign one or more authrization profiles to each user master record. You can assign an &lt;/P&gt;&lt;P&gt;authorization to as many authorization profiles as you like, and an authorization profile &lt;/P&gt;&lt;P&gt;to as many composite profiles and users as you like. Composite profiles are used in manual &lt;/P&gt;&lt;P&gt;authorization maintenance, and form a further division in the authorization structure. &lt;/P&gt;&lt;P&gt;However, they are not strictly necessary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u...&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Seema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455230#M215261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T13:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Auth Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455231#M215262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;look this link for authorization object concept:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d8/731d304b7511d1894b0000e8323c4f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d8/731d304b7511d1894b0000e8323c4f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and look this link for a simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Giulio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/auth-objects/m-p/1455231#M215262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T13:12:24Z</dc:date>
    </item>
  </channel>
</rss>

