<?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 Authorization Object Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493667#M840279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created my own Auth Field "MY_TCODE" of data element TCODE in su20. Then I created one Object Class and created one Auth Object "ZTCODE_AO" in su21 with 2 Auth. Fields: ACTVT and MY_TCODE. Also I set permitted activities as 01, 02, 03, 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created two users "USR1" and "USR2" in SU01. and I created 2 roles ZUSR1_ROLE and ZUSR2_ROLE in PFCG and assigned only these corr roles to the corr users. ( No other profiles or roles are assigned for the user )&lt;/P&gt;&lt;P&gt;1) for ZUSR1_ROLE, I assigned auth obj "ZTCODE_AO" with all activities for a user defined tcode "ZTR". So the user has all the rights.&lt;/P&gt;&lt;P&gt;2) for ZUSR2_ROLE, I dint assign the auth obj. So the user has no authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;In my code for transaction "ZTR":&lt;/U&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;DATA: p_tcode type sy-tcode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;p_tcode = sy-tcode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;AUTHORITY-CHECK OBJECT 'ZTCODE_AO'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ID 'ACTVT' FIELD '01' " Create or Generate access&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ID 'MY_TCODE' FIELD p_tcode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IF sy-subrc EQ 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;CALL SCREEN 100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ELSE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;MESSAGE 'You are not authorized to view this transaction' TYPE 'E'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is when I login with the user id "USR1", I am getting this msg: "No authorization to read file /usr/sap/trans70/sapnames/USR1". When I proceed and execute the tcode, I am unable to use the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me where I have done the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SAP Lover.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 15:22:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T15:22:22Z</dc:date>
    <item>
      <title>Authorization Object Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493667#M840279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created my own Auth Field "MY_TCODE" of data element TCODE in su20. Then I created one Object Class and created one Auth Object "ZTCODE_AO" in su21 with 2 Auth. Fields: ACTVT and MY_TCODE. Also I set permitted activities as 01, 02, 03, 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created two users "USR1" and "USR2" in SU01. and I created 2 roles ZUSR1_ROLE and ZUSR2_ROLE in PFCG and assigned only these corr roles to the corr users. ( No other profiles or roles are assigned for the user )&lt;/P&gt;&lt;P&gt;1) for ZUSR1_ROLE, I assigned auth obj "ZTCODE_AO" with all activities for a user defined tcode "ZTR". So the user has all the rights.&lt;/P&gt;&lt;P&gt;2) for ZUSR2_ROLE, I dint assign the auth obj. So the user has no authorization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;In my code for transaction "ZTR":&lt;/U&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;DATA: p_tcode type sy-tcode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;p_tcode = sy-tcode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;AUTHORITY-CHECK OBJECT 'ZTCODE_AO'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ID 'ACTVT' FIELD '01' " Create or Generate access&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ID 'MY_TCODE' FIELD p_tcode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IF sy-subrc EQ 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;CALL SCREEN 100.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ELSE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;MESSAGE 'You are not authorized to view this transaction' TYPE 'E'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is when I login with the user id "USR1", I am getting this msg: "No authorization to read file /usr/sap/trans70/sapnames/USR1". When I proceed and execute the tcode, I am unable to use the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me where I have done the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SAP Lover.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 15:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493667#M840279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493668#M840280</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;Specify a message class in the report heading and then call the messages using the same class. So that the processing will be more effective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As in ur example specified call the error message using a message class as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;message e000(zz) with 'You are not authorized to view this transaction'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 15:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493668#M840280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493669#M840281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kishore,&lt;/P&gt;&lt;P&gt;My prob is not about the message. I could not use the transaction. For USR1 it should allow to use and for user USR2, it should not allow. But for USR1, it is not allowing to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SAP LOver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 17:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493669#M840281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T17:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Object Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493670#M840282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For authorization on transaction code , please use S_TCODE authorization object .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The procedure you have used for authority check seems perfect to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message  "No authorization to read file /usr/sap/trans70/sapnames/USR1"  has something to be done with BASIS. Try resolving it with your BASIS team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;G@urav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 21:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-error/m-p/3493670#M840282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T21:28:45Z</dc:date>
    </item>
  </channel>
</rss>

