<?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: Problem regarding Authorization object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141562#M990227</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;Refer this link,it may help you-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://articles.techrepublic.com.com/5100-10878_11-5110893.html" target="test_blank"&gt;http://articles.techrepublic.com.com/5100-10878_11-5110893.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/thread/871214 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 05:10:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T05:10:56Z</dc:date>
    <item>
      <title>Problem regarding Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141560#M990225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In occupancy tab of REBDRO transaction, there is a field vacancy reason whose F4 help gives the multiple values.&lt;/P&gt;&lt;P&gt;Now, the requirement is to restrict the user to enter only a particular value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To meet the above requirement, firstly I created an authorization object for the field Vacancy reason then in role i assigned the value '40' to the Vacancy reason field and '02' and '03' to the ACTVT field, then assigned the role to the user.&lt;/P&gt;&lt;P&gt;After that I created Enhancement implementation in which i wrote the code as-&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'Z_VAC'&lt;/P&gt;&lt;P&gt;         ID 'VACREASON'  field '40'&lt;/P&gt;&lt;P&gt;         ID 'ACTVT' FIELD '02' .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;message 'You are not authorized to change the Vacancy Reason' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;However, the SY-SUBRC remains zero for any value entered by the user i.e it does not restrict the user from entering value other than '40'.&lt;/P&gt;&lt;P&gt;Can somebody assist me regarding this, I will reward pts friends for the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 04:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141560#M990225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem regarding Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141561#M990226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sy-SUBRC is always zero because you have hardcoded value&lt;/P&gt;&lt;P&gt;of field VACREASON' as 40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of that give there screen  field name in which user is entering value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'Z_VAC'&lt;/P&gt;&lt;P&gt;ID 'VACREASON' field '&lt;STRONG&gt;fieldname'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02' .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;message 'You are not authorized to change the Vacancy Reason' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 04:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141561#M990226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T04:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem regarding Authorization object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141562#M990227</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;Refer this link,it may help you-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://articles.techrepublic.com.com/5100-10878_11-5110893.html" target="test_blank"&gt;http://articles.techrepublic.com.com/5100-10878_11-5110893.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/thread/871214 &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 05:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-authorization-object/m-p/4141562#M990227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T05:10:56Z</dc:date>
    </item>
  </channel>
</rss>

