<?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: Authorization check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/9119250#M1707578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear Luca,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Authorization Object mechanism is used to inspect the current user’s privileges for specific data selection and activities from within a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Authorization Object is where Permitted Activity configurations are performed against specific fields. E.g. Change (being the activity) the material’s text – MAKTX (being the specific field), or Read (being the activity) a certain Customer (using Customer Number – KUNNR, as the specific field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the Authorization check with the syntax beginning AUTHORITY-CHECK and the checking of the sy-subrc. Also, the ‘03’ literal that is being passed into the Object check field “ACTVT” which denotes a “read”, and the p_tcode parameter being passed into the Object check field “ZTCODE” which represents the actual data, wishing to “read”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case if your company code is 200 , the sy-subrc become &amp;lt;&amp;gt; 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anoop Satheesan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 04:38:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-12-04T04:38:13Z</dc:date>
    <item>
      <title>Authorization check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/9119249#M1707577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have created two roles with one transaction each (FB03 and S_ALR_87012357) and assigned thi sroles to one user. Both transactions have object f_bkpf_buk.&lt;/P&gt;&lt;P&gt;I defined activity 03 and company code 1000,2000 for fb03 object and activity 03 and company code 1000 for s_alr_87012357.&lt;/P&gt;&lt;P&gt;The system let me execute s_alr_87012357 for company code 2000.&lt;/P&gt;&lt;P&gt;Does anybody mind to explain how it works exactly?&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 16:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/9119249#M1707577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-03T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/9119250#M1707578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear Luca,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Authorization Object mechanism is used to inspect the current user’s privileges for specific data selection and activities from within a program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Authorization Object is where Permitted Activity configurations are performed against specific fields. E.g. Change (being the activity) the material’s text – MAKTX (being the specific field), or Read (being the activity) a certain Customer (using Customer Number – KUNNR, as the specific field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the Authorization check with the syntax beginning AUTHORITY-CHECK and the checking of the sy-subrc. Also, the ‘03’ literal that is being passed into the Object check field “ACTVT” which denotes a “read”, and the p_tcode parameter being passed into the Object check field “ZTCODE” which represents the actual data, wishing to “read”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case if your company code is 200 , the sy-subrc become &amp;lt;&amp;gt; 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anoop Satheesan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 04:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/9119250#M1707578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-12-04T04:38:13Z</dc:date>
    </item>
  </channel>
</rss>

