<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ABAP Tutorials &#187; Authorization</title>
	<atom:link href="http://www.abap-tutorials.com/tag/authorization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abap-tutorials.com</link>
	<description>ABAP Tutorials, Guides, Training, Manuals</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Applying Multiple Authority-checks in ABAP Program</title>
		<link>http://www.abap-tutorials.com/2009/07/22/multiple-authority-checks/</link>
		<comments>http://www.abap-tutorials.com/2009/07/22/multiple-authority-checks/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 23:10:21 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[authority-check]]></category>
		<category><![CDATA[authorization check]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[multiple checks]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=368</guid>
		<description><![CDATA[Multiple Authority-checks mainly depends on hierarchy of Authorizations apart from its dependency on the way pragrammer handles it. Multiple Authority-checks can be of two types depending upon the programming logic and needs. (a) A programmer can suppose, that if the first AUTHORITY-CHECK fails, the program shouldn&#8217;t test the others, but try to elaborate the next data: [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Multiple Authority-checks mainly depends on hierarchy of Authorizations apart from its dependency on the way pragrammer handles it.</p>
<p style="text-align:justify;">Multiple Authority-checks can be of two types depending upon the programming logic and needs.</p>
<p style="text-align:justify;"><span id="more-368"></span><br />
(a) A programmer can suppose, that if the first AUTHORITY-CHECK fails, the program shouldn&#8217;t test the others, but try to elaborate the next data:<br />
LOOP AT ITAB.<br />
 <br />
   AUTHORITY-CHECK OBJECT &lt;OBJ&gt;<br />
      ID &lt;FIELD&gt; FIELD &lt;VALUE&gt;.<br />
 IF SY-SUBRC  0.<br />
      CONTINUE. &#8221; Check next record<br />
 ELSE.<br />
         AUTHORITY-CHECK OBJECT &lt;OBJ2&gt;<br />
           ID &lt;FIELD&gt; FIELD &lt;VALUE&gt;.<br />
      IF SY-SUBRC  0.<br />
     CONTINUE. &#8221; Check next record<br />
      ELSE.<br />
          AUTHORITY-CHECK OBJECT &lt;OBJ3&gt;<br />
                 ID &lt;FIELD&gt; FIELD &lt;VALUE&gt;.<br />
         IF SY-SUBRC  0.<br />
      &#8230; Commands/Processing &#8230;<br />
       ENDIF.<br />
      ENDIF.<br />
 ENDIF.<br />
ENDLOOP.<br />
 <br />
In this situation it&#8217;s very important the user has all authorization objects of course.</p>
<p style="text-align:justify;">(b) In AUTHORITY-CHECK OBJECT statament only one value can be checked. So it can checks if the user has 02 or 03, not both together.</p>
<p style="text-align:justify;">So if you give 02, the AUTHORITY-CHECK will work for 02 only.</p>
<p style="text-align:justify;">Anway the developer can skip the check for a certain fields of a an authority object</p>
<p style="text-align:justify;">AUTHORITY-CHECK OBJECT &lt;OBJ&gt;<br />
        ID &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
        ID ACTIVITY FIELD DUMMY.</p>
<p style="text-align:justify;">In this situation the authority-check is not dependent on value of activity.</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2010/04/21/authority-check-trace-in-sap/' rel='bookmark' title='Authority Check Trace in SAP'>Authority Check Trace in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/' rel='bookmark' title='ABAP Program for Table Maintenance in SAP'>ABAP Program for Table Maintenance in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/05/user-exits-and-badi-list-for-a-t-code/' rel='bookmark' title='ABAP program to get User Exits and BADI List for a T-Code'>ABAP program to get User Exits and BADI List for a T-Code</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/22/multiple-authority-checks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Restricting SAP Queries from execution</title>
		<link>http://www.abap-tutorials.com/2009/07/21/restricting-sap-queries/</link>
		<comments>http://www.abap-tutorials.com/2009/07/21/restricting-sap-queries/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 01:48:38 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Authorization]]></category>
		<category><![CDATA[SAP Query]]></category>
		<category><![CDATA[authority]]></category>
		<category><![CDATA[queries]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[restrict]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=325</guid>
		<description><![CDATA[You can restrict users from executing your queries, by assigning  Authorization Group to Query Infoset. Now,  users having the authorization to the Authorization Group can execute the Query. The field &#8216;authorization group&#8217; allows you to enter an authorization group up to eight characters long. If you specify an authorization group, it is inherited as an [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">You can restrict users from executing your queries, by assigning  Authorization Group to Query Infoset. Now,  users having the authorization to the Authorization Group can execute the Query.</p>
<p style="text-align:justify;"><span id="more-325"></span></p>
<p style="text-align:justify;">The field <strong>&#8216;authorization group&#8217;</strong> allows you to enter an authorization group up to eight characters long. If you specify an authorization group, it is inherited as an attribute by every report generated for a query via this InfoSet. This means that only users authorized in their user master records to execute programs from this authorization group can execute these queries. Authorization groups thus provide a way of protecting reports generated by the query from unauthorized execution.</p>
<p style="text-align:justify;">In SQ02: Change InfoSet &gt; Goto Global Properties &gt; Enter in Authorization group<br />
In SQ01: Query &gt; More functions &gt; Generate program</p>
<p style="text-align:justify;"> </p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2010/02/11/unlocking-sap-query/' rel='bookmark' title='Unlocking SAP Query'>Unlocking SAP Query</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/16/assigncreate-authorization-group-for-a-table/' rel='bookmark' title='Assign/Create Authorization Group for a Table in SAP'>Assign/Create Authorization Group for a Table in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/18/create-a-tcode-for-an-abap-query/' rel='bookmark' title='Create a TCODE for an ABAP Query'>Create a TCODE for an ABAP Query</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/21/restricting-sap-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assign/Create Authorization Group for a Table in SAP</title>
		<link>http://www.abap-tutorials.com/2009/07/16/assigncreate-authorization-group-for-a-table/</link>
		<comments>http://www.abap-tutorials.com/2009/07/16/assigncreate-authorization-group-for-a-table/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 00:45:50 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[DDIC]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[assign]]></category>
		<category><![CDATA[Authorization group]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://naveenvishal.wordpress.com/?p=120</guid>
		<description><![CDATA[Many times an ABAPer or Functional consultant gets the Message &#8216;You are not authorized to display this table&#8217;, when viewing tables, even ZTables. Tables by defualt are created with Authorization Object S_TABU_DIS and Authorization Group &#38;NC&#38;. Basis Team, as part of Audit/security may not allow this authorization on Tables. To tackle the situation, you must [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Many times an ABAPer or Functional consultant gets the Message &#8216;You are not authorized to display this table&#8217;, when viewing tables, even ZTables. Tables by defualt are created with Authorization Object S_TABU_DIS and Authorization Group &amp;NC&amp;.</p>
<p style="text-align:justify;">Basis Team, as part of Audit/security may not allow this authorization on Tables.</p>
<p style="text-align:justify;"><span id="more-120"></span></p>
<p style="text-align:justify;">To tackle the situation, you must assign a different Authorization Group (apart from &amp;NC&amp;), and get viewing authorization on that Group from Basis Team.</p>
<p style="text-align:justify;">Steps:<br />
Go to SE54, Give the table name and choose authorization group and then click on create/change. You can create an authorization group.</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><img class="size-medium wp-image-121" title="authorization_group" src="http://naveenvishal.files.wordpress.com/2009/07/authorization_group.jpg?w=300" alt="Assign / Create Authorization Group" width="300" height="217" /></dt>
<dd class="wp-caption-dd">Assign / Create Authorization Group</dd>
</dl>
</div>
<p style="text-align:justify;">For Example:<br />
You can assign a table to authorization group Z001. (Use transaction SM30 for table TDDAT) A user that wants to access this table must have<br />
authorization object S_TABU_DIS in his or her profile with the value Z001<br />
in the field DICBERCLS (authorization group for ABAP Dictionary objects).</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/17/assign-a-t-code-to-maintenance-view/' rel='bookmark' title='Assign a T-code to Maintenance View in SAP'>Assign a T-code to Maintenance View in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/18/create-a-tcode-for-an-abap-query/' rel='bookmark' title='Create a TCODE for an ABAP Query'>Create a TCODE for an ABAP Query</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/21/restricting-sap-queries/' rel='bookmark' title='Restricting SAP Queries from execution'>Restricting SAP Queries from execution</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/07/16/assigncreate-authorization-group-for-a-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

