<?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: Regarding Authority Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246523#M774896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

select * from TVKO into i_TVKO where vkorg in s_vkorg.

loop at i_TVKO.
AUTHORITY-CHECK OBJECT object
ID name1 FIELD in i_TVKO-vkorg. 
if sy-subrc ne 0.
  move 'Y' to v_noauth
endif.
endloop.
if v_noauth eq 'Y'.
  message e999 with 'Not Authorised'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2008 17:02:43 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-01-10T17:02:43Z</dc:date>
    <item>
      <title>Regarding Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246522#M774895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts!&lt;/P&gt;&lt;P&gt;Is there any way i can do&lt;/P&gt;&lt;P&gt;Authority-check for ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like i have range that is s_vkorg.&lt;/P&gt;&lt;P&gt;can i do a authority check against it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT object &lt;/P&gt;&lt;P&gt;    ID name1  FIELD in s_vkorg. &lt;/P&gt;&lt;P&gt;but it gives my an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anyway we can do that.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 16:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246522#M774895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246523#M774896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

select * from TVKO into i_TVKO where vkorg in s_vkorg.

loop at i_TVKO.
AUTHORITY-CHECK OBJECT object
ID name1 FIELD in i_TVKO-vkorg. 
if sy-subrc ne 0.
  move 'Y' to v_noauth
endif.
endloop.
if v_noauth eq 'Y'.
  message e999 with 'Not Authorised'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 17:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246523#M774896</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-10T17:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246524#M774897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for your reply.&lt;/P&gt;&lt;P&gt;just couple of question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is i_tvko is internal table of type tvko&lt;/P&gt;&lt;P&gt;or is just table with one field  vkorg.&lt;/P&gt;&lt;P&gt;and can we use same logic for other types like username and ...&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 17:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246524#M774897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T17:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Authority Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246525#M774898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;got it.&lt;/P&gt;&lt;P&gt;just over looke the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 17:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-authority-check/m-p/3246525#M774898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T17:14:25Z</dc:date>
    </item>
  </channel>
</rss>

