<?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/2215706#M475033</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;SY-SUBRC = 12 means you haven't the authorization object in your profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The profile SAP_ALL contains all standard authorization objects only, if you create new one, it can't be in SAP_ALL automatically, so your control is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to create a new (Z)profile where you have to insert your all new authorizations and then assign it to your user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way your profile will have SAP_ALL (with std authorizations) and Z&amp;lt;profile&amp;gt; (with custom authorization).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2007 08:12:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-11T08:12:07Z</dc:date>
    <item>
      <title>Authority check problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2215705#M475032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have to check auhorisation. I created in su20 2 authorization check fields (Z_UO and Z_ACT). In su21 I created an authorization object named Z_APO_MGTM. I assigned my two authorization check fields to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in an ABAP Program, i try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'Z_APO_MGTM' &lt;/P&gt;&lt;P&gt;                                ID 'Z_UO'     FIELD WS_T1-UO&lt;/P&gt;&lt;P&gt;                                ID 'Z_ACT'   FIELD  W_SENS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the program myself. My authorization are SAPALL. In the program, after AUTHORITY-CHECK sy-subrc = 12. Why? It should be equal to 0 since i'm am SAPALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did i forget something when i created the objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by advance,&lt;/P&gt;&lt;P&gt;LB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 08:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2215705#M475032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T08:05:27Z</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/2215706#M475033</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;SY-SUBRC = 12 means you haven't the authorization object in your profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The profile SAP_ALL contains all standard authorization objects only, if you create new one, it can't be in SAP_ALL automatically, so your control is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U have to create a new (Z)profile where you have to insert your all new authorizations and then assign it to your user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way your profile will have SAP_ALL (with std authorizations) and Z&amp;lt;profile&amp;gt; (with custom authorization).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 08:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2215706#M475033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T08:12:07Z</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/2215707#M475034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right. I forgot this &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 08:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2215707#M475034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-11T08:22:11Z</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/2215708#M475035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we assign SAP_NEW profile also to the user along with SAP_ALL. &lt;/P&gt;&lt;P&gt;Every time we no need to create a role for the newly created Tcodes ( authorization objects) .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;is this useful ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2007 11:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check-problem/m-p/2215708#M475035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-27T11:39:09Z</dc:date>
    </item>
  </channel>
</rss>

