<?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 with authorization in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822724#M351445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The auth object has field &amp;lt;b&amp;gt;BRGRU with value 0002&amp;lt;/b&amp;gt; for the user, but u are checking &amp;lt;b&amp;gt;for 0001&amp;lt;/b&amp;gt;. Then any way it will return sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether the object is correct and it may also hold '0002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value sy-subrc is returning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jan 2007 10:11:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-24T10:11:43Z</dc:date>
    <item>
      <title>problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822723#M351444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A test user id has been created which has been assigned a role with one of authorization objects as F_BKPF_BUP having field T001B-BRGRU = 0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have the following code in our program&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_BKPF_BUP'&lt;/P&gt;&lt;P&gt;      ID 'BRGRU' FIELD '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code returns Sy-SUBRC = 0 when we execute the program with the above test user, even though the auth object has field BRGRU with value 0002  for the user. Ideally the above code should return sy-subrc not equal to 0 as the user is not authorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any one know where can the problem be and why the authorization check is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822723#M351444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822724#M351445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The auth object has field &amp;lt;b&amp;gt;BRGRU with value 0002&amp;lt;/b&amp;gt; for the user, but u are checking &amp;lt;b&amp;gt;for 0001&amp;lt;/b&amp;gt;. Then any way it will return sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether the object is correct and it may also hold '0002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value sy-subrc is returning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822724#M351445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822725#M351446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check it in SU53.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822725#M351446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822726#M351447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Judith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is the code is returning SY_SUBRC = 0 while it should return sy-subrc not equal 0. I am stuck up as to why it is returning sy-subrc = 0 though the user is not authorized for 0001.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822726#M351447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822727#M351448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked whether they have maintained any other values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822727#M351448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822728#M351449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be that this user also has other roles attached which has authorization for 0002 as well. Did you check all the roles attached to this user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822728#M351449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822729#M351450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Could u plz clarify one thing. r u login with the new user id that u created for testing or u loged on with u r user id.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u loged on with u r user id, lets check the field for u r user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822729#M351450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822730#M351451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil, I am using the new test user id for testing.&lt;/P&gt;&lt;P&gt;Gururaj, there is only one role created for this user, but there are many auth objects under this role out of which F_BKPF_BUP is one of them with value BRGRU value 0002. But since I am specifying the authorization object this should not matter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822730#M351451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822731#M351452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the syntax written is wrong here.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_BKPF_BUP'&lt;/P&gt;&lt;P&gt;ID 'BRGRU' FIELD '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'F_BKPF_BUP'&lt;/P&gt;&lt;P&gt;ID 'BRGRU' &amp;lt;b&amp;gt;VALUE&amp;lt;/b&amp;gt; '0001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this way and it should work properly...We have implemented in our project and it is working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822731#M351452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with authorization</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822732#M351453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramesh, it's giving syntax error stating " FIELD expected after BRGRU ".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 10:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-authorization/m-p/1822732#M351453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-24T10:54:49Z</dc:date>
    </item>
  </channel>
</rss>

