<?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: SU21 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159820#M751694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SU20---Maintain Authorization Fields&lt;/P&gt;&lt;P&gt;SU21---Maintain Authorization Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we need to do a authority check by ourselves,we should define severial data fields we want to check,this can be done in se11 &amp;amp;SU20, then we consolidate these fields into one authority-check object using SU21,at the same time some permitted values will be defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the Z* program, we can use the following statement to do an authority-check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_CARRID' &lt;/P&gt;&lt;P&gt;    ID 'CARRID' FIELD carr &lt;/P&gt;&lt;P&gt;    ID 'ACTVT'  FIELD '03'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;    MESSAGE 'No authorization' TYPE 'E'. &lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 05:20:30 GMT</pubDate>
    <dc:creator>daixiong_jiang3</dc:creator>
    <dc:date>2007-12-10T05:20:30Z</dc:date>
    <item>
      <title>SU21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159819#M751693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the funcion module created in SU21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this funtion module is comparing checking the authorisation for the value that we pass through our program with the values of authorisation/ roles assigned to that user&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 04:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159819#M751693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T04:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: SU21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159820#M751694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SU20---Maintain Authorization Fields&lt;/P&gt;&lt;P&gt;SU21---Maintain Authorization Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we need to do a authority check by ourselves,we should define severial data fields we want to check,this can be done in se11 &amp;amp;SU20, then we consolidate these fields into one authority-check object using SU21,at the same time some permitted values will be defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the Z* program, we can use the following statement to do an authority-check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_CARRID' &lt;/P&gt;&lt;P&gt;    ID 'CARRID' FIELD carr &lt;/P&gt;&lt;P&gt;    ID 'ACTVT'  FIELD '03'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;    MESSAGE 'No authorization' TYPE 'E'. &lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 05:20:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159820#M751694</guid>
      <dc:creator>daixiong_jiang3</dc:creator>
      <dc:date>2007-12-10T05:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: SU21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159821#M751695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont have authorisation for accessing the SU20 and SU21 thats why i was asking the funcion module directly to see how the authority-check statement is workin comparing the values passed in the program with the user master data maintained already&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 05:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159821#M751695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T05:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: SU21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159822#M751696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you think an authorisation failure is happending in a transaction, run the transaction, then run transaction SU53, this will show any failures along with the authorisation object and value which failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 08:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/su21/m-p/3159822#M751696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T08:04:39Z</dc:date>
    </item>
  </channel>
</rss>

